|
Algorithm 6 Next node selection in the solution to the traveling salesman problem (TSP) |
|
Require: , the reference node’s ID
|
|
Ensure:
|
| 1: function
Find-Next-Node-In-TSP-Solution() |
| 2:
|
| 3:
|
| 4: if
then
|
▹N: the number of components in
|
| 5: component of
|
| 6: else
|
| 7: the first component of
|
| 8: end if
|
| 9: return
|
| 10: end function
|