Quiz Space

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

Question 20: We define an overlap graph OG(\mathcal{S}) associated wi…

Question 20

+3 marksOne correct option

Based on the above data, answer the given subquestions.

We define an overlap graph OG(S)OG(\mathcal{S}) associated with S\mathcal{S} as follows: OG(S)OG(\mathcal{S}) is a complete directed graph (V,E)(V, E) (that is, for every s,t∈Vs, t \in V there are edges (s,t)(s, t) and (t,s)(t, s)), where V=SV = \mathcal{S}, and the weight of an edge (s,t)(s, t) is ∣ov(s,t)∣|\text{ov}(s, t)|.

Let us say that an edge (u,v)(u, v) dominates another edge (u′,v′)(u', v'), if they share head or tail (that is, u=u′u = u' or v=v′v = v') and ∣ov(u,v)∣⩾∣ov(u′,v′)∣|\text{ov}(u, v)| \geqslant |\text{ov}(u', v')|.

In terms of the overlap graph, the greedy algorithm goes through a list of all edges in OG(S)OG(\mathcal{S}) in the nonincreasing order of their overlap and includes some of them in a solution. Specifically, the greedy algorithm does not include another edge if and only if

R1. it is dominated by an already chosen edge,
R2. it is not dominated but it would form a cycle.

What is the structure of the set of edges returned by the greedy algorithm?

  1. A

    A Hamiltonian cycle, i.e, a cycle that visits every vertex in the graph exactly once

  2. B

    A Hamiltonian path, i.e, a path that visits every vertex in the graph exactly once

  3. C

    A regular graph, i.e, a graph where every vertex has the same degree

Show answer

Correct answer

  • B

    A Hamiltonian path, i.e, a path that visits every vertex in the graph exactly once

Question 20 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. Q4Recall the max-flow problem: for a directed graph G(V, E) with non-negative capacities c_e for every e \in E and two sp…
  5. Q5Figure question
  6. Q6The worst-case running time and expected running time are equal to within constant factors for any randomized algorithm.
  7. Q7An adversary can provide randomized quicksort with an input array of length n that forces the algorithm to run in \omeg…
  8. Q8Figure question
  9. 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…
  10. 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…
  11. 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…
  12. 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…
  13. Q13Based on the above data, answer the given subquestions.
  14. Q14Based on the above data, answer the given subquestions.
  15. Q15Based on the above data, answer the given subquestions.
  16. Q16The construction described here is a valid reduction from 3-SAT to 3-Coloring.
  17. Q17The construction described here is a valid reduction from 3-Coloring to 3-SAT.
  18. Q18Argue that to solve SCS, it is sufficient to find:
  19. Q19Observe that for a given \pi, the length of the corresponding superstring s(\pi), which is obtained by writing the inpu…
  20. Q21Does the greedy algorithm always produce the right answer?