116 - Unidirectional TSP

In this problem you are going to find the path that has minimal weight and is lexicographically smallest.

You may construct such solution from backward, in a dynamic programming fashion. A reference solution is here

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.