This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: true or false. 4. Suppose that e is a minimum weight edge G , and all the edge weights are distinct. Then e is always contained in the minimum spanning tree of G . True. Kruskal’s algorithm will start with this edge. 5. The path between a pair of vertices in a minimum spanning tree for G must be a shortest (i.e., leastcost) path between the two vertices in G . False. Note the difference between Prim’s algorithm and Dijkstra’s algorithm. You can create a counterexample. 6. Suppose we run Dijsktra's algorithm on G starting at some vertex, s . Recall that at each step of the algorithm, we add another vertex to the set S . Suppose we add vertex u to S before we add the vertex v to S . Then the distance from s to u in G is no greater than the distance from s to v . True. Note the proof of Dijkstra’s algorithm....
View
Full
Document
This note was uploaded on 02/10/2012 for the course CSE 5211 taught by Professor Dmitra during the Spring '12 term at FIT.
 Spring '12
 Dmitra
 Algorithms

Click to edit the document details