Coder Social home page Coder Social logo

Shortest path about c HOT 11 CLOSED

thealgorithms avatar thealgorithms commented on May 10, 2024
Shortest path

from c.

Comments (11)

HybridDog avatar HybridDog commented on May 10, 2024 1

In practice, e.g. in a car navigation system, the graph is preprocessed so that the distance between two cities can later be queried in e.g. O(sqrt(n) log(n)), which is a lot faster than Dijkstra's algorithm (excluding the preprocessing time).
https://en.wikipedia.org/wiki/Contraction_hierarchies

from c.

 avatar commented on May 10, 2024

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

from c.

 avatar commented on May 10, 2024

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.

from c.

deadshotsb avatar deadshotsb commented on May 10, 2024

@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/

from c.

Manavpreeet avatar Manavpreeet commented on May 10, 2024

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

from c.

plongueira avatar plongueira commented on May 10, 2024

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

from c.

deadshotsb avatar deadshotsb commented on May 10, 2024

@manavpreetsingh Yes sure

from c.

ashwinshaji6679 avatar ashwinshaji6679 commented on May 10, 2024

Can I take up this issue

from c.

Panquesito7 avatar Panquesito7 commented on May 10, 2024

Can I take up this issue

Thank you for your interest in contributing. 👍
Before submitting a PR, please ensure the following:

  • The algorithm isn't a duplicate in this repository.
  • Make your code as per the repository standards.
  • Ensure that all the automated-tests pass.

I'll look forward to reviewing your pull request as soon as I can. Thanks. 🙂

from c.

github-actions avatar github-actions commented on May 10, 2024

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from c.

github-actions avatar github-actions commented on May 10, 2024

Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

from c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.