Giter Club home page Giter Club logo

a-star-path-planning's Introduction

A* Path Planning Project

Overview

This project focuses on A* Path Planning, a popular pathfinding algorithm used in robotics and artificial intelligence. A* is known for its efficiency and optimality in finding the shortest path from a start point to a goal point on a grid or graph.

The project includes an implementation of the A* algorithm and visualization of its performance on various maps, making it a valuable resource for understanding path planning in a simulated environment.

A* Algorithm

The A* algorithm is a search algorithm used to find the optimal path from a start node to a goal node in a weighted graph. It combines two essential components:

  • G-Cost (Actual Cost): The cost to reach the current node from the start node.
  • H-Cost (Heuristic Cost): An estimation of the cost from the current node to the goal node.

A* selects nodes to expand based on their total cost, which is the sum of G-Cost and H-Cost. By exploring nodes with lower total cost first, A* efficiently finds the shortest path while considering a heuristic to guide its search.

Flowchart

Algorithm Flowchart

The flowchart above illustrates the key steps of the A* algorithm:

  1. Start at the initial node.
  2. Expand the node with the lowest total cost (G-Cost + H-Cost).
  3. Add neighboring nodes to the open list.
  4. Calculate G-Cost and H-Cost for each neighbor.
  5. Repeat steps 2-4 until the goal node is reached or no more nodes are available.

Different Maps

map.png map1.png map2.png

Results

A* algorithm has been evaluated on each map, demonstrating its ability to find optimal paths in various scenarios. The results are visualized in the following images:

map.png map1.png map2.png
<"GOAL IS UNREACHABLE">

Usage

  1. Clone this repository:

    git clone https://github.com/MostafaELFEEL/A-star-path-planning.git

a-star-path-planning's People

Contributors

mostafaelfeel avatar

Watchers

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