Dijkstra's Algorithm
Status: #triage
Tags: #programming, #data-structures
Date: 2022-07-05
Type:
Related: Graphs in C++
Notes
For finding the lowest cost path in a weighted graph.
D is the distance from the source to the current path.
P is the path from the previous vertex that we've visited
In class review page
Dijkstra's Time Complexity = V Log(V) + E Log(V) where E is edges and V is vertices
OR V+E log(V)
Questions
For homework, write down the path like this
Does Dijkstra's work with negative weight?
No, we must use Bellman-Ford
Snippets
Pseudocode
Terms
Resources
Dijkstra's Algo Notes
Dijkstra's Algorithm Wiki
Related Notes
Hash Tables
CSS 343 - Data Structures, Algorithms, and Discrete Math II