Quiz Space

Advanced Algorithms · Quiz 2 · 4 Aug 2024 · May 2024 term

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

Question 4

+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

    Yes, this is a valid set of constraints.

  2. B

    No, the sum in the objective function should be taken only over neighbors of u.

  3. C

    No, the sum in the second constraint should be taken only over in-neighbors of v and out-neighbors of v, respectively.

Show answer

Correct answer

  • A

    Yes, this is a valid set of constraints.

Question 4 of 21 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term (IIT M DEGREE AN EXAM QDB2 4 Aug 2024). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following graph. A triangle-free subset of seven vertices is highlighted. Find the size of the largest tri…
  2. Q2The TRIANGLE-FREEDOM problem is the following: the input is a simple undirected graph G and a positive integer k. An in…
  3. Q3Figure question
  4. Q5Figure question
  5. Q6The worst-case running time and expected running time are equal to within constant factors for any randomized algorithm.
  6. Q7An adversary can provide randomized quicksort with an input array of length n that forces the algorithm to run in \omeg…
  7. Q8Figure question
  8. Q9Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  9. Q10Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  10. Q11Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  11. Q12Recall that in the vertex cover problem, we are trying to find a smallest subset S of vertices in a graph G such that G…
  12. Q13Based on the above data, answer the given subquestions.
  13. Q14Based on the above data, answer the given subquestions.
  14. Q15Based on the above data, answer the given subquestions.
  15. Q16The construction described here is a valid reduction from 3-SAT to 3-Coloring.
  16. Q17The construction described here is a valid reduction from 3-Coloring to 3-SAT.
  17. Q18Argue that to solve SCS, it is sufficient to find:
  18. Q19Observe that for a given \pi, the length of the corresponding superstring s(\pi), which is obtained by writing the inpu…
  19. Q20We define an overlap graph OG(\mathcal{S}) associated with \mathcal{S} as follows: OG(\mathcal{S}) is a complete direct…
  20. Q21Does the greedy algorithm always produce the right answer?