retagged by
867 views
0 votes
0 votes

Consider a weighted undirected graph $G$ with positive edge weights. Let $(u, v)$ be an edge in the graph. It is known that the shortest path from a vertex $s$ to $u$ has weight $53$ and the shortest path from $s$ to $v$ has weight $65.$ Which of the statements is always true?

  1. Weight of $(u, v) \leq 12$
  2. Weight of $(u, v) = 12$
  3. Weight of $(u, v) \geq 12$
  4. Nothing can be said about the weight of $(u, v)$
retagged by

2 Answers

0 votes
0 votes

There are two cases
I) let s to v contains u in between (s - u - v)
this means weight of edge (u, v) is 65 - 53 = 12

II) s to v doesn't contain u 
this means edge (u, v) is not choosen for shortest path from s to v
this makes weight of (u, v) > 12

So ans is option C

Answer:

Related questions

1 votes
1 votes
2 answers
2
1 votes
1 votes
2 answers
3
go_editor asked Dec 30, 2016
573 views
A dodecahedron is a regular solid with $12$ faces, each face being a regular pentagon. How many edges are there? And how many vertices?$60$ edges and $20$ vertices$30$ ed...
1 votes
1 votes
2 answers
4
go_editor asked Dec 30, 2016
781 views
An undirected graph can be converted into a directed graph by choosing a direction for every edge. Here is an example:Show that for every undirected graph, there is a way...