Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rellermeyer/99tsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry committed Dec 9, 2016
2 parents fd4569b + 06b0360 commit b4191fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/DP/TSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def solveTSP(nodes):
for k in range(n-1):
path.append(previous)
bits2 = bits & ~(1 << previous)
_, parent = C[(bits, previous)]
_, previous = C[(bits, previous)]
bits = bits2

path.append(0)
Expand Down

0 comments on commit b4191fb

Please sign in to comment.