Skip to content

About

A Java implementation of A* (A star) and Dijkstra search algorithm for comparison.

Resources

Stars

122 stars

Watchers

10 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project contains a Java implementation of A* (A star) search algorithm
that is widely used in path finding and graph traversal, and Dijkstra algorithm
that is used in Cisco router shortest path finding.

There are great similarities in the two algorithms, with the difference being that
A* has a heuristic mechanism while Dijkstra does not. With the heuristic, A* 
usually outperforms Dijkstra in speed in finding a path, however, unlike Dijkstra,
the path A* finds may not always be the optimal one.

A Java/Swing graphical demo program is provided to animate the progress of
path searching, and the two resulted paths side by side for comparison.

# Build jar file: mvn package
# Run jar file: java -jar target/pathfinder-1.0.jar

About

A Java implementation of A* (A star) and Dijkstra search algorithm for comparison.

Resources

Stars

122 stars

Watchers

10 watching

Forks

Releases

Packages

Contributors

Languages