home page ->
teaching ->
graph algorithms ->
minimum cost path
Graph algorithms - minimum cost path
Algorithms for finding the minimum cost path between two given vertices.
Example with positive costs:
Example with some negative costs:
Issues:
- Execute Dijkstra's algorithm on the two examples above;
- Implement Dijkstra's algorithm (start from BFS from last time and replace the FIFO queue with a priority queue);
- Analyse its behavior on the two examples above;
Sample partial implementations: parse.py, dijkstra.py and bellman.py
Radu-Lucian LUPŞA
2020-04-10