• retagged by
1,286 views
0 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)$

2 Answers

0 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:
Position:
Show:

Related questions

2 2 votes
2 2 answers
1.4k
1.4k views
go_editor asked Dec 30, 2016
1,447 views
In a connected undirected graph, the distance between two vertices is the number of edges in the shortest path between them. Suppose we denote by $P$ the following proper...
2 2 votes
2 answers 2 answers
1.3k
1.3k views
go_editor asked Dec 30, 2016
1,318 views
ScamTel has won a state government contract to connect $17$ cities by high-speed fibre optic links. Each link will connect a pair of cities so that the entire network is ...
2 2 votes
2 answers 2 answers
928
928 views
go_editor asked Dec 30, 2016
928 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...
2 2 votes
2 answers 2 answers
1.2k
1.2k views
go_editor asked Dec 30, 2016
1,206 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...