Shortest Path Finder
This project allows you to find the shortest path in a graph using two algorithms: AStar and AntColony. It provides additional features such as:
- Creating a default graph
- Creating a graph based on user requirements
- Creating a complete graph
- Selecting the algorithm for traversing the graph
- User-friendly console interface
To use this project, follow these steps:
- Clone the repository:
git clone https://github.com/DevSMike/java-antcolony-astar-algorithm.git
- Navigate to the project directory:
cd shortest-path-finder
- Compile the Java source files:
javac *.java
The project utilizes two algorithms for finding the shortest path:
-
A* Algorithm: A heuristic search algorithm that guarantees finding the optimal path by considering both the actual cost from the start node and the estimated cost to the goal node.
-
Ant Colony Optimization: An algorithm inspired by the foraging behavior of ants. It uses artificial ants to explore the graph, leaving pheromone trails that influence subsequent ant movements.
The project is developed using the following technologies:
- Java 11
Contributions to this project are welcome. To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-branch
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-branch
- Submit a pull request.