slides - Computer Science - University of San Francisco
slides - Computer Science - University of San Francisco
slides - Computer Science - University of San Francisco
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!