We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this line:
https://github.com/cfld/simple_tsp/blob/master/simple_tsp/lk.py#L141
we should only be checking the old edges up to the current depth. Otherwise, you could get something like this which is incorrect
pre filter 33 32 36 35 old = [(32, 33), (35, 36)] pass filter pre filter 33 32 36 37 old = [(32, 33), (35, 36)] no pass filter
The text was updated successfully, but these errors were encountered:
I think the fix is if contains(cp1, cp2, old[:depth]): continue
if contains(cp1, cp2, old[:depth]): continue
Likewise, I think should also change
if contains(act, cp1, new): continue
to
if contains(act, cp1, new[:depth - 1]): continue
Sorry, something went wrong.
No branches or pull requests
In this line:
https://github.com/cfld/simple_tsp/blob/master/simple_tsp/lk.py#L141
we should only be checking the old edges up to the current depth. Otherwise, you could get something like this which is incorrect
The text was updated successfully, but these errors were encountered: