Skip to content
New issue

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

[FEA] Travelling Salesman Problem (TSP) and/or Hamiltonian path #1185

Closed
jannisborn opened this issue Oct 3, 2020 · 4 comments
Closed

[FEA] Travelling Salesman Problem (TSP) and/or Hamiltonian path #1185

jannisborn opened this issue Oct 3, 2020 · 4 comments
Milestone

Comments

@jannisborn
Copy link

Is your feature request related to a problem? Please describe.
Is there any plan to integrate NP algorithms like finding Hamiltonian paths or solving the TSP?

Describe the solution you'd like
A function that you can call with an undirected, possibly weighted graph and a starting node that returns the solution to the TSP.

Additional context
networkx implementation of TSP is pretty slow, so this would be a great feature, I think.

@jannisborn jannisborn added the ? - Needs Triage Need team to review and classify label Oct 3, 2020
@BradReesWork
Copy link
Member

@jannisborn TSP is on the roadmap for roughly the January 2021 release. We have been doing a lot of research in that areas and are now ready to make it available.

Hamiltonian paths is something that we have discussed but has not made it onto the roadmap for a specific release

@BradReesWork BradReesWork removed the ? - Needs Triage Need team to review and classify label Oct 3, 2020
@BradReesWork BradReesWork added this to the 0.18 milestone Oct 3, 2020
@jannisborn
Copy link
Author

jannisborn commented Oct 3, 2020

@BradReesWork that sounds fantastic!
for the TSP, I think it would be great if an option would be included to, unlike the original TSP, not return to the source node. This would be identical to finding the shortest Hamiltonian path for a given source node. Similar to here.
Otherwise thanks a lot for the great work! Loooking forward to the 2021 release and please feel free to close if applicable.

@BradReesWork
Copy link
Member

@jannisborn breaking your feature request into two part - TSP will be in the current 0.18 release that we are workign on. Hamilton paths a little later

@hlinsen hlinsen mentioned this issue Jan 27, 2021
rapids-bot bot pushed a commit that referenced this issue Feb 11, 2021
This PR implements an approximated solution to the Traveling Salesperson Problem (TSP).
The algorithm is exposed under ```traversal``` through a Python API taking 2D pos as input and returning a route.
This PR relies on RAFT KNN: rapidsai/raft#126
Solves: #1185

Authors:
  - Hugo Linsenmaier (@hlinsen)

Approvers:
  - AJ Schmidt (@ajschmidt8)
  - Brad Rees (@BradReesWork)
  - Rick Ratzel (@rlratzel)
  - Alex Fender (@afender)
  - Andrei Schaffer (@aschaffer)

URL: #1360
@BradReesWork
Copy link
Member

closed by #1360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants