Quiz Space

Advanced Algorithms · Quiz 2 · 3 Dec 2023 · September 2023 term

Question 17: Recall the max-flow problem: for a directed graph G(V, E…

Question 17

+3 marksOne correct option

Recall the max-flow problem: for a directed graph G(V,E)G(V, E) with non-negative capacities cec_e for every e∈Ee \in E and two special vertices ss (source, with no incoming edges) and tt (sink, with no outgoing edges), a flow in GG is an assignment f:E→R≥0f : E \rightarrow \mathbb{R}_{\geq 0} such that fe≤cef_e \leq c_e for every edge and for every vertex v∈V,∑(u,v)∈Ef((u,v))=∑(v,u)∈Ef((v,u))v \in V, \sum_{(u,v) \in E} f((u,v)) = \sum_{(v,u) \in E} f((v,u)). The task is to find a maximum flow ff i.e., a flow ff such that ∑(s,u)∈Ef((s,u))\sum_{(s,u) \in E} f((s,u)) is maximized.

Given an instance (G;s,t,c)(G; s, t, c), we attempt here to design a LP whose optimal value is equal to the maximum flow in the graph GG. There is a variable xuvx_{uv} for all (u,v)∈E(u, v) \in E. Note that for any pair of vertices that is not an edge, we do not introduce any variable corresponding to it.

max⁡∑uxut∀e=(u,v)∈E,xuv⩽ce∀v∉{s,t},∑uxuv=∑wxvw∀e=(u,v)∈E,xuv⩾0\begin{aligned} &\max \sum_u x_{ut} \\ &\forall e = (u,v) \in E, x_{uv} \leqslant c_e \\ &\forall v \notin \{s,t\}, \sum_u x_{uv} = \sum_w x_{vw} \\ &\forall e = (u,v) \in E, x_{uv} \geqslant 0 \end{aligned}

Is the LP above a valid formulation for computing the maximum flow in GG?

  1. A
  2. B
  3. C
Show answer

Correct answer

  • A

Question 17 of 20 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 2 paper sat on 3 Dec 2023, in the September 2023 term (IIT M DEGREE AN2 EXAM QDB2 03 Dec 2023). It carries 3 marks.

More questions from this paper

  1. Q1You are given a sequence of integers a of length 2n. You have to split these 2n integers into n pairs; each pair will r…
  2. Q2You are given a sequence of integers a of length 2n. You have to split these 2n integers into n pairs; each pair will r…
  3. Q3You are given a sequence of integers a of length 2n. You have to split these 2n integers into n pairs; each pair will r…
  4. Q4You are given a sequence of integers a of length 2n. You have to split these 2n integers into n pairs; each pair will r…
  5. Q5You are given a sequence of integers a of length 2n. You have to split these 2n integers into n pairs; each pair will r…
  6. Q6Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  7. Q7Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  8. Q8Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  9. Q9Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  10. Q10Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  11. Q11Tina stumbles upon a lottery chart dropped by a time traveler from the future, which lists winning lottery numbers and …
  12. Q12Let G = (V, E) be a graph. A cut in G is a partition of V into two sets. Let S \subseteq V be a subset of vertices. The…
  13. Q13Let G = (V, E) be a graph. A cut in G is a partition of V into two sets. Let S \subseteq V be a subset of vertices. The…
  14. Q14Let G = (V, E) be a graph. A cut in G is a partition of V into two sets. Let S \subseteq V be a subset of vertices. The…
  15. Q15Let G = (V, E) be a graph. A cut in G is a partition of V into two sets. Let S \subseteq V be a subset of vertices. The…
  16. Q16Let G = (V, E) be a graph. A cut in G is a partition of V into two sets. Let S \subseteq V be a subset of vertices. The…
  17. Q18The EXACT-COVER-BY-3-SETS problem is defined as the following: given a finite set X with |X| = 3q and a collection C of…
  18. Q19Figure question
  19. Q20Say problem X reduces to problem Y. Which of the following can we infer?