Code Monkey home page Code Monkey logo

anurag-kuswaha / advance-shortest-path Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1.8 MB

. implement Bidirectional Dijkstra and use it to compute distances in social networks very quickly; 2. implement A* search algorithm and apply it to compute distances in road networks faster than the classic algorithms do; 3. implement Contraction Hierarchies algorithm and apply it to preprocess large road networks and then compute distances in them much faster;

C++ 96.23% Python 3.77%
bidirectional-dijkstra compute-distances road-networks contraction-hierarchies-algorithm social-networks astar-algorithm astar-search-algorithm

advance-shortest-path's Introduction

Advance Shortest Path

1. implemented Bidirectional Dijkstra and use it to compute distances in social networks very quickly;

2. implemented A* search algorithm and apply it to compute distances in road networks faster than the classic algorithms do.

    1- Implemented the Single Direction A* alogirthm.                                        ( ## Faster than all)  ( Max time used: 21.91/50.00) 
    2- Implemented the Bidirectional A* alogirthm                                            ( ## slower than 1st)  ( Max time used: 24.32/50.00)
    3- Implemented the Single Direction A* alogirthm with pre-computed potential function    ( ## sloweset of all)  ( ## Max time used: 26.40/50.00) 
 Conclusion- The overall complexity is depending upon calculating the euclid distance as we have to calculate the square root in the euclid distance and Bidirectional A* is   calculating the double the amount of euclid distance as compared to single A* because we have to balance the potential in the Birectional A*.

3. implemented Contraction Hierarchies algorithm and apply it to preprocess large road networks and then compute distances in them much faster;

advance-shortest-path's People

Contributors

anurag-kuswaha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.