close
The Wayback Machine - https://web.archive.org/web/20200916133008/https://github.com/TheAlgorithms/C/issues/487
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

Shortest path #487

Open
Shreya2704 opened this issue Oct 28, 2019 · 6 comments
Open

Shortest path #487

Shreya2704 opened this issue Oct 28, 2019 · 6 comments

Comments

@Shreya2704
Copy link

@Shreya2704 Shreya2704 commented Oct 28, 2019

To find the shortest path between 2 cities

@sagnik-chatterjee
Copy link
Contributor

@sagnik-chatterjee sagnik-chatterjee commented Feb 2, 2020

Hi can i take up this issue ?
Plus any specific algortihm you have in mind ?

@sagnik-chatterjee
Copy link
Contributor

@sagnik-chatterjee sagnik-chatterjee commented Feb 3, 2020

hi @Shreya2704 can you verify if the issue is resolved ? I have done a pull request for this ...if you find this solves your problem kindly merge it or if further additions need to be made ,please list them here.

@deadshotsb
Copy link
Member

@deadshotsb deadshotsb commented May 18, 2020

@sagnik-chatterjee Well the Djikstra's algorithm can be used to find a single source shortest path, but as "To find the shortest path between 2 cities", I find it more like applying an all pair Shortest path (floyd warshall algorithm) You may consider adding a dynamic programming approach for that, you may refer to: https://www.geeksforgeeks.org/floyd-warshall-algorithm-dp-16/

@Manavpreeet
Copy link

@Manavpreeet Manavpreeet commented May 20, 2020

Can i take this issue ? Let me know if you have any particular choice !

@plongueira
Copy link

@plongueira plongueira commented May 20, 2020

Maybe use discrete mathematics theory for example directed graphs and weighted graphs could solve the problem (i.e) the distance between 2 cities without a direct connection is unknown so in order to get a close reflect of the reality you could check different paths between those two cities,then adding the weights between each pair of cities from city source to destiny and that'd be all

@deadshotsb
Copy link
Member

@deadshotsb deadshotsb commented May 24, 2020

@ManavpreetSingh Yes sure

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.