DP to TSP