





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Relaxing an edge d [ v ]: upper bound on the weight of a shortest path from
s^ to^ v
Relaxation: an operation that tightens an upper bound
Dijkstra’s algorithm
Comparing BFS,Prim,Dijkstra
Greedy {^ Use min-priority queue to find the‘lightest’ vertex outside^ S (Dijkstra);
tree being grown (Prim) { Add this vertex to the set { Adjust the weights of the remainingvertices outside the set