You are given an undirected graph G = (V,E) along with its minimum spanning tree T*. Now a new edge e' (which was not part of G) is added to the graph. Our task is to update the minimum spanning tree. Check all statements below that are true: If weight of e' is less than the cheapest edge in T*, then 7* remains the correct MST. We add e' to the tree, and remove the largest weight edge of 7*. We must rerun Kruskal or Prim algorithm; there is no more efficient method for updating the MST. Let emax be the largest weight edge in the cycle created by adding e' to 7*. If e' is cheaper than emax, swap emax for e'.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

show work

You are given an undirected graph G = (V,E) along with its minimum spanning tree T*. Now a
new edge e' (which was not part of G) is added to the graph. Our task is to update the minimum
spanning tree. Check all statements below that are true:
If weight of e' is less than the cheapest edge in T*, then 7* remains the correct MST.
We add e' to the tree, and remove the largest weight edge of 7*.
We must rerun Kruskal or Prim algorithm; there is no more efficient method for updating the
MST.
Let emax be the largest weight edge in the cycle created by adding e' to 7*. If e' is cheaper than
emax, swap emax for e'.
Transcribed Image Text:You are given an undirected graph G = (V,E) along with its minimum spanning tree T*. Now a new edge e' (which was not part of G) is added to the graph. Our task is to update the minimum spanning tree. Check all statements below that are true: If weight of e' is less than the cheapest edge in T*, then 7* remains the correct MST. We add e' to the tree, and remove the largest weight edge of 7*. We must rerun Kruskal or Prim algorithm; there is no more efficient method for updating the MST. Let emax be the largest weight edge in the cycle created by adding e' to 7*. If e' is cheaper than emax, swap emax for e'.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT