Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 : 2 0 points You are given a weighted, undirected graph G = ( V , E ) and a minimum spanning tree

Question 1: 20 points
You are given a weighted, undirected graph G=(V,E) and a minimum spanning tree (MST)
T of the graph G. Answer the following questions about G and T.
(a)[10 points] Suppose we decrease the weight of an edge e where einG and e!inT. Let the
new graph be denoted by G'. Suggest an algorithm, in plain English bullet points, that
checks whether T is an MST of G'. If not, the algorithm calculates the new MST T' of
G'. Also, analyse your algorithm's time complexity.
(Note: Suggest an algorithm that do not require rerunning Prim's or Kruskal's algorithm)
(b)[10 points] Consider the following algorithm's pseudocode. Is it a correct MST algorithm?
If YES, explain why. If NO, explain why. Regardless of the algorithm's correctness,
calculate the time complexity of the algorithm.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Use the given graph of f to find a number δ such that 0

Answered: 1 week ago

Question

develop ideas for a research project;

Answered: 1 week ago