• edited by
22,352 views
55 55 votes

Let $s$ and $t$ be two vertices in a undirected graph $G=(V,E)$ having distinct positive edge weights. Let $[X,Y]$ be a partition of $V$ such that $s \in X$ and $t \in Y$. Consider the edge $e$ having the minimum  weight amongst all those edges that have one vertex in $X$ and one vertex in $Y$.

The edge $e$ must definitely belong to:

  1. the minimum weighted spanning tree of $G$

  2. the weighted shortest path from $s$ to $t$

  3. each path from $s$ to $t$

  4. the weighted longest path from $s$ to $t$

11 Answers

1 1 vote

Correct answer : A

Explanation:-

Option A: e is the minimum weight edge among all the edges connecting X and Y, so there may be some other edge having weight less than e but belonging to X or Y. However, some edge connecting X and Y has to be included in the MST (otherwise the MST will become disconnected) and this edge will be e because it is the minimum among all the edges connecting X and Y.

Option B: There are two ways to view this option -

i) The path(s) between s and t containing e may not be the shortest path(s) between s and t

ii) The shortest path between s and t may not necessarily contain e.

This is because a path s->x->y->t connecting s and t, (where x->y is an edge connecting the partitions X and Y, s->x is a path from s to x and similarly y->t is a path from y to t) is not depending solely upon x->y. It is also depending upon s->x and y->t. Now even if we minimize x->y by choosing e, there is no guarantee that the other two paths are also minimized. So the minimum path will not necessarily contain e

Option C: e is not the only edge containing X and Y and hence a path from s to t can contain another edge.

Option D: Again, there can be paths from s to t which do not contain e but are more expensive.

0 0 votes

Every light edge which crosses the cut will defenitely be present in the minimum spanning tree.(Refer Cormen exercise 23.1-6)….Therefore we can parition in such a way that there is cut present and e crosses it.also s on one side and t on other side.….

(Light edge means the edge with least weight that crosses the cut…)

For Option B,Cand D :

 

0 0 votes

Answer: A. the minimum weighted spanning tree of G

Reason:
The edge eee is defined as the minimum-weight edge across the cut [X,Y][X, Y][X,Y], where s∈Xs \in Xs∈X and t∈Yt \in Yt∈Y.
By the Cut Property of MSTs

For any cut in a graph, the minimum-weight edge crossing that cut must belong to the Minimum Spannig Tree (MST).

Since edge weights are distinct, the minimum edge across any cut definitely belongs to the MST.

Why the other options are wrong:

  • B: Weighted shortest path from sss to ttt
    The shortest path from sss to ttt does not have to use this edge. Shortest paths do not obey the cut property.

  • C: Each path from sss to ttt
    Obviously false — there can be many paths between sss and ttt, and most will not include this specific edge.

  • D: Weighted longest path from sss to ttt
    Longest path in a weighted graph is not well-defined unless constraints are given; even then this edge is not guaranteed to appear.

✔ Correct answer: A

Answer:
Position:
Show:

Related questions

199 199 votes
9 answers 9 answers
79.2k
79.2k views
Kathleen asked Sep 22, 2014
79,162 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
60 60 votes
6 answers 6 answers
12.0k
12.0k views
go_editor asked Nov 14, 2016
11,957 views
Let $s$ and $t$ be two vertices in a undirected graph $G=(V,E)$ having distinct positive edge weights. Let $[X,Y]$ be a partition of $V$ such that $s \in X$ and $t \in Y$...
75 75 votes
3 answers 3 answers
26.3k
26.3k views
Kathleen asked Sep 22, 2014
26,290 views
Let $G(V,E)$ be an undirected graph with positive edge weights. Dijkstra’s single source shortest path algorithm can be implemented using the binary heap data structure w...
32 32 votes
3 answers 3 answers
15.5k
15.5k views
gatecse asked Sep 21, 2014
15,510 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...