Dijkstraalgoritmi
Dijkstra's algorithm is a greedy algorithm that solves the single-source shortest path problem for a graph with non-negative edge weights. Developed by computer scientist Edsger W. Dijkstra in 1956, it finds the shortest path from a designated starting node to all other nodes in a weighted graph.
The algorithm works by maintaining a set of visited nodes and a set of unvisited nodes. It
Dijkstra's algorithm is widely used in various applications, including network routing protocols (like OSPF), GPS navigation