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

https://github.com/mfurmanczyk/dijkstra

Implementation of Dijkstra Shortest Path algorithm with C++ and SFML.
https://github.com/mfurmanczyk/dijkstra

algorithms-and-data-structures cpp dijkstra-algorithm dijkstra-shortest-path

Last synced: 6 months ago
JSON representation

Implementation of Dijkstra Shortest Path algorithm with C++ and SFML.

Awesome Lists containing this project

README

          

# Dijsktra's algorithm
Implementation of Dijkstra's SP algorithm.

## Data structures and algorithms
- K-d tree - finds nearest vertex in a graph for start point and end point.
- Dijkstra's algorithm - finds shortest path in graph.
- Priority indexed queue - used in egde relaxation.
- Directed graph with weighted edges.

## Libraries
One of the goals of the project was to use the standard library in as many cases as possible. Visual side of this application is coded with [SFML](https://www.sfml-dev.org/).

## Controlls
| Action | Button |
| ------- | --- |
| Set start point | **LMB** |
| Set end point | **RMB** |
| Quit | **Esc** |
| Reset | **R** |

In order to find path user needs to:
1. Set start point.
2. Set end point.
3. If user wants to find another path Reset action is required.

## Screenshots
![Scr2](https://github.com/MFurmanczyk/edurithm_dijkstra/assets/46996333/4f711c98-98f5-45f3-8551-1b51ec438d77)

## Literature
Literature and sites I used while coding this application:
- [Algorithms, 4th edition](https://algs4.cs.princeton.edu/home/) by Robert Sedgewick and Kevin Wayne
- [C++ documentation](https://en.cppreference.com/w/)