GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A directed graph has edges s→a, s→b, s→c, s→d, a→m, b→m, c→m, m→p, m→q, m→r, p→t, q→t, r→t, d→t. Let E be the maximum number of edge-disjoint s–t paths and V the maximum number of s–t paths that share no vertex other than s and t. What is (E, V)?

  1. A. (4, 4)
  2. B. (3, 2)
  3. C. (4, 2)
  4. D. (2, 2)

Correct answer: C. (4, 2)

Edge-disjoint: s–a–m–p–t, s–b–m–q–t, s–c–m–r–t and s–d–t use distinct edges (m has 3 in- and 3 out-edges), and s has only 4 out-edges, so E = 4. Vertex-disjoint: every path goes through m or uses s–d–t, so {m, d} is a vertex cut and V = 2 (Menger).

More Algorithms questions

Exams that ask this topic