in Algorithms edited by
501 views
0 votes
0 votes
How many of following are correct statements ?

(i) A graph where all edge weights are distinct can have more than one shortest path between  two vertices u and v

(ii)adding a number w on weight of every edge of graph might change the graph’s minimum spanning tree(Assume that all edge weights of graph are distinct)

(iii)multiplying all edge weights by a positive number might change the shortest path between  two vertices u and v (Assume that all edge weights of graph are distinct)
in Algorithms edited by
501 views

10 Comments

edited by
.1
0
0
bro are you sure about it  ??
0
0
edited by

@Magma haaa 1) will be true 2) and 3) will be false as all the edges have distinct edge weights.

2
2
thanks
0
0
Arvin for second can you show any example i got only 1
0
0
suppose we have a triangle having ab=1,bc=2,ac=3 and distance between ac=3 either u choose ab+bc or ac and u took ab+bc as shortest path for your case. now if u add all three sides by +1 then ab=2 bc=3 ac=4 so ab+bc=5>4 (ac).

so your shortest path changed na now as you have to go by ac..
1
1
@Arvin YEAH  GOT IT
0
0
Option 2 is talking about minimum spanning tree not the shortest path
0
0

@Registered user 48 thanku brother yes there will be only one true statement..

1
1
Yeah it's minimum spanning tree means only 1 is correct
0
0

Please log in or register to answer this question.

Related questions