09.07.2015 Views

slides - Computer Science - University of San Francisco

slides - Computer Science - University of San Francisco

slides - Computer Science - University of San Francisco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

17-52: Improving DijkstraCan we do better than Θ(V 2 )For dense graphs, we can’t do betterTo ensure that the shortest path to all verticesis computed, need to look at all edges in thegraphA dense graph can have Θ(V 2 ) edgesFor sparse graphs, we can do betterWhere should we focus our attention?Finding the unknown vertex with minimum cost!

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!