An open API service indexing awesome lists of open source software.

https://github.com/giridharrnair/a-star-algorithm-visualizer

A* algorithm visualizer in Java using the Java Swing framework
https://github.com/giridharrnair/a-star-algorithm-visualizer

astar-algorithm java javaswing

Last synced: 23 days ago
JSON representation

A* algorithm visualizer in Java using the Java Swing framework

Awesome Lists containing this project

README

        

# A* Algorithm Visualizer

Screenshot

## Introduction

A * algorithm is a searching algorithm that searches for the shortest path between the initial and the final state.
The algorithm used in various applications, such as maps, in which the A* algorithm calculates the shortest distance
between the source (initial state) and the destination (final state).

https://www.educative.io/answers/what-is-the-a-star-algorithm

## Features

- Interactive grid-based environment
- Place obstacles on the grid
- Visualize the A* algorithm in action
- Pause and resume the visualization
- Modify the iteration speed
- See optimal path highlighted

## Prerequisites

- Java Development Kit (JDK) installed
- Java Swing library

## Running The Program Through Command Line (Double Click Alternative)

1. Download AStarVisualizer.jar from this repository's releases.

Screenshot

2. In the terminal, enter the directory where the AStarVisualizer.jar is downloaded.

For example, all my downloaded files are inside the downloads folder, so I would enter the downloads directory.
``` bash
cd downloads
```
3. Then run the command below to run the AStarVisualizer.jar file.
``` bash
java -jar AStarVisualizer.jar
```

## License
This project is licensed under the MIT License. Feel free to use and modify the code for your own purposes.