Cse102 Lec 08 01 Dijkstra Intro
Cse102 Lec 08 01 Dijkstra Intro
http://www.cs.utexas.edu/~EWD/
EDSGER WYBE DIJKSTRA
- May 11, 1930 – August 6, 2002
Approach: Greedy
O(|V|^2 + |E|)
For sparse graphs, or graphs with very few edges and many
nodes, it can be implemented more efficiently storing the
graph in an adjacency list using a binary heap or priority
queue. This will produce a running time of
¢ The
key
is
to
understand
why
we
can
claim
that
any?me
we
put
a
new
vertex
in
S,
we
can
say
that
we
already
know
the
shortest
path
to
it.
¢ Now,
back
to
the
example…
DIJKSTRA'S ALGORITHM - WHY USE IT?