Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let G be a weighted graph with positive unique (no repetitions) edge weights, and let G0 be the the graph which has exactly the same

Let G be a weighted graph with positive unique (no repetitions) edge weights, and let G0 be the the graph which has exactly the same vertices and edges as G, except that for every edge (u, v) in G0 , weight(u, v) in G0 = weight(u, v) in G +4. For example, if we start with the graph G shown in Fig HW2Q3(i), we will end up with the graph G0 shown in Fig HW2Q3(ii). Suppose the path P = s, x1, x2, . . . , xk, t is the shortest path from s to t in G. Is it always the case that P is also a shortest path from s to t in G0 ? For instance, on the graphs above, the shortest path from 1 to 2 in G is 1-3-2, which is also the shortest path from 1 to 2 in G0 . The question is whether this will be true no matter what graph we start with.

(a) 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 G will always also be a shortest path in G0 . If you said NO, give a counterexample i.e.

show the graphs G and G0 in your counterexample

state what are the vertices s and t in your counterexample

calculate the shortest path from s to t in G

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

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions