Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sorry for vartical figures ,Top figure is HWQ#(i) and bottom one is HWQ3(ii) 3.Let G be a weighted graph with positive unique (no repetitions) edge

image text in transcribedSorry for vartical figures ,Top figure is HWQ#(i) and bottom one is HWQ3(ii)

3.Let G be a weighted graph with positive unique (no repetitions) edge weights, and let T1 be a MST of G. For example, if we start with the graph G shown in Fig HW2Q3(i), we will end up with the MST T1 shown in Fig HW2Q3(ii).

Suppose the path P = s, x1, x2, . . . , xk, t is the shortest path from s to t in T1. Is it always the case that P is also a shortest path from s to t in G? For instance, on the graphs above, the shortest path from a to b in T1 is a-c-b, which is also the shortest path from a to b in G. The question is whether this will be true no matter what graph we start with, or is it possible that in G there is a shorter path.

(a) Will a shortest path from s to t in T1 also always be the shortest path from s to t in G? Give a YES/NO answer to the above question.

(b) If you said YES, give a brief explanation i.e. explain why a shortest path in T1 will also be a shortest path in G.

(c) If you said NO, give a counterexample i.e. show

i. show the graphs G and the MST T1 in your counterexample

ii. state what are the vertices s and t in your counterexample

iii. show the shortest path from s to t in T1

iv. show that this path is not the shortest path from s to t in G by finding another path from s to t in G which is shorter.

6 CA 5 5 Fig HW2Q3(i) and Fig HW2Q3(i)

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

=+Currently, the demand and supply schedules are as follows:

Answered: 1 week ago