Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto iterator = tabuList.begin();
- while (iterator != tabuList.end()) {
- if (neighborhoodCities.first == iterator->first.second ||
- neighborhoodCities.second == iterator->first.first) {
- if (neighborhoodCost > length) {
- return false;
- }
- }
- iterator++;
- }
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement