Giter VIP home page Giter VIP logo

a-star-search-algorithm-python-implementation's Introduction

Unidirectional-&-Bidirectional-A-Star-Search-Algorithm-Python-Implementation

This is the Unidirectional and Bidirectional A Star Search Algorithm Python Implementation. For more info about this algorithm: https://en.wikipedia.org/wiki/A*_search_algorithm

Important Details Regarding the Implementation (Unidirectional A star search Algorithm):

  1. For the heuristic, Euclidean distance/octile have been used to get an estimate from the given node to the goal node.

  2. In order to address the ties (nodes having the same F value in our (discovered) heap, then we prefer using that node whihc are closer to the goal node i.e. node having higher H value.)

Important Details Regarding the Implementation (Bidirectional A star search Algorithm):

  1. For the heuristic, Euclidean distance/octile have been used to get an estimate from the given node to the goal node.

  2. The node selction policy that is being used here is : we select that frontier which offers us the node with minimum f-value.

  3. The stopping condition that is being used here is: we stop as soon as we come across such a node from either of the frontiers, that happens to be in the closed list of the opposite frontier.

NOTE:

  1. If the source/target node happens to be such a node which is not walkable, then the algorithm will return an empty path with a total cost of 0.

  2. This particular implementation will only work for 2D maps.

  3. In order to get more test cases, please refer to https://www.movingai.com/benchmarks/grids.html

a-star-search-algorithm-python-implementation's People

Contributors

anonsar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.