Quiz Space

May 2023 term · Advanced Algorithms · BSCS4021

Advanced Algorithms End Term: 3 September 2023, Set QPE1-S2 (May 2023 term)

The IIT Madras BS Advanced Algorithms (Advanced Algorithms) End Term paper sat on 3 Sept 2023, in the May 2023 term, set QPE1-S2: 34 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
34
Marks
100
Duration
180 min
MCQ
27
Numerical
6
MSQ
1

Updated

Official paper: IIT M DEGREE ET1 EXAM QPE1 S2 03 Sep · No negative marking.

Question 1

+3 marksOne correct option

Recall the Dance Class problem:

Problem Definition

Dance Classes

Input: A collection of nn intervals given by their left and right endpoints (s1,f1),…,(sn,fn)(s_1, f_1), \ldots, (s_n, f_n), where si<fis_i < f_i for all 1⩽i⩽n1 \leqslant i \leqslant n.

Question: What is the size of the largest collection of mutually pairwise non-overlapping intervals?

Consider the greedy approach to the problem where we repeat the following until there are no intervals left:

select the shortest interval, eliminating ties arbitrarily, add it to our solution and eliminate all overlapping intervals.

On which of the following instances will this algorithm produce a suboptimal answer?

Instance 1:

The number of classes is N = 4
The timings of the classes are given by:
1 - 2
3 - 4
5 - 6
7 - 8

Instance 2:

The number of classes is N = 4
The timings of the classes are given by:
4 - 5
3 - 6
2 - 7
1 - 8

Instance 3:

The number of classes is N = 4
The timings of the classes are given by:
1 - 7
8 - 15
6 - 9
16 - 20

  1. A

    Instance 1

  2. B

    Instance 2

  3. C

    Instance 3

  4. D

    None of these

Show answer

Correct answer

  • C

    Instance 3

Question 2

+3 marksOne correct option

Let S be an NP-complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?

  1. A

    R is NP-complete

  2. B

    R is NP-hard

  3. C

    Q is NP-complete

  4. D

    Q is NP-hard

Show answer

Correct answer

  • B

    R is NP-hard

Question 3

+3 marksOne correct option

True or false?
It is possible that Independent-Set is in P and the problem of checking a graph has a Hamiltonian Path is not in P.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 4

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 5

+3 marksOne correct option

Raj and Lata both designed an algorithm for the same minimization problem.

Raj proved that his algorithm Alg1Alg1 is a 2-approximation algorithm.
Lata proved that her algorithm Alg2Alg2 is a 4-approximation algorithm.

Is the following statement true or false?

There must be an input II such that Alg1(I)<Alg2(I)Alg1(I) < Alg2(I).

Recall that to say that a problem has a cc-approximation algorithm for some constant cc means that the output of the algorithm is always at most c⋅OPT(I)c \cdot OPT(I) on all inputs II.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 6

+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,f(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, f(x_{uv}) \geq 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 7

+3 marksOne correct option
  1. A
  2. B
  3. C
Show answer

Correct answer

  • C

Question 8

+2 marksOne correct option

Recall the Dance Class problem:

Problem Definition

Dance Classes

Input: A collection of nn intervals given by their left and right endpoints (s1,f1),…,(sn,fn)(s_1, f_1), \ldots, (s_n, f_n), where si<fis_i < f_i for all 1⩽i⩽n1 \leqslant i \leqslant n.

Question: What is the size of the largest collection of mutually pairwise non-overlapping intervals?

Consider the greedy approach to the problem where we repeat the following until there are no intervals left:

select the interval with ---------, eliminating ties arbitrarily; add it to our solution and eliminate all overlapping intervals.

Which of the following strategies guarantees an optimal result?

  1. A

    the shortest duration

  2. B

    the fewest overlaps with other intervals

  3. C

    the smallest left endpoint (i.e, a class that starts earliest)

  4. D

    the smallest right endpoint (i.e, a class that finishes earliest)

Show answer

Correct answer

  • D

    the smallest right endpoint (i.e, a class that finishes earliest)

Question 9

+5 marksOne correct option

Recall the Stable Matching problem:

Stable Matching

Input: Two sets given by

  • M={m1,…,mn}M = \{m_1, \ldots, m_n\} (the men) and
  • W={w1,…,wn}W = \{w_1, \ldots, w_n\} (the women);

and two collections of rankings

  • {σ1,…,σn}\{\sigma_1, \ldots, \sigma_n\} (the ranking of the men over the women) and
  • {τ1,…,τn}\{\tau_1, \ldots, \tau_n\} (the ranking of the women over the men),

where for all 1⩽i⩽n1 \leqslant i \leqslant n, σi\sigma_i is a strict ranking over WW and τi\tau_i is a strict ranking over MM.

Question: Find a permutation π\pi over {1,…,n}\{1, \ldots, n\} such that {mi,wπ(i)}i∈[n]\{m_i, w_{\pi(i)}\}_{i \in [n]} is a stable matching.

For completeness, we recall the definition of a stable matching.

Consider the matching M:={mi,wπ(i)}M := \{m_i, w_{\pi(i)}\} given by a permutation π\pi of [n][n]. A pair (mk,wℓ)(m_k, w_\ell) is said to be a blocking pair with respect to MM if:

  • ℓ≠π(k)\ell \neq \pi(k),
  • wℓw_\ell is ranked higher than wπ(k)w_{\pi(k)} in σi\sigma_i,
  • mkm_k is ranked higher than mqm_q in τℓ\tau_\ell, where π(q)=ℓ\pi(q) = \ell;

in other words, mkm_k and wℓw_\ell are not matched by MM, and they rank each other higher than their respective matched partners in MM.

If MM is a matching for which there are no blocking pairs with respect to MM, then MM is said to be a stable matching.

Consider the following instance of the stable matching problem for 4 men (PQRS) and 4 women (WXYZ).

P: W > X > Y > Z
Q: X > Y > Z > W
R: W > X > Z > Y
S: X > Y > W > Z

and

W: S > Q > R > P
X: P > S > Q > R
Y: R > P > Q > S
Z: R > P > S > Q

Consider the following matching: M = {(P, W), (Q, X), (R, Z), (S, Y)}.

Which of the following is a blocking pair in the matching above?

  1. A

    (P-X)

  2. B

    (Q-Y)

  3. C

    (R-W)

  4. D

    (S-X)

Show answer

Correct answer

  • D

    (S-X)

Question 10

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Is the collection of outgoing 1/2-factors over the set A a matroid?

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 11

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Is the collection of incoming 1/2-factors over the set A a matroid?

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 12

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Is the collection of 1-factors over the set A a matroid?

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 13

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Can the collection of 1-factors be defined as the intersection of two matroids?

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 14

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 15

+2 marksNumerical answer

The memory of Bob's computer contains two interesting things: an array of integers and a virus. Each midnight the virus becomes active. It takes each array in memory and replaces it with a bunch of new arrays: one for each contiguous subarray of the original array.

For example, if today the memory contains a single array (1,2,1,3), tomorrow it will contain the following arrays: (1), (2), (1), (3), (1,2), (2, 1), (1, 3), (1,2,1), (2, 1,3), (1,2, 1, 3).

As another example, if today the memory contains a single array {(7,7)},tomorrow it will contain the following arrays: {(7), (7), (7,7)}, and the day after tomorrow it will contain the following arrays: {(7), (7), (7), (7), (7,7)}, and so on.

You are given Bob's original array A and the number of days D. Let f(A,D)f(A, D) be the sum of all elements of all arrays that will be in the memory of Bob's computer after D days. Our goal is to calculate f(A,D)f(A, D). You may assume that the memory of Bob's computer is sufficiently large to accommodate all the arrays.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 34

Question 16

+2 marksNumerical answer

The memory of Bob's computer contains two interesting things: an array of integers and a virus. Each midnight the virus becomes active. It takes each array in memory and replaces it with a bunch of new arrays: one for each contiguous subarray of the original array.

For example, if today the memory contains a single array (1,2,1,3), tomorrow it will contain the following arrays: (1), (2), (1), (3), (1,2), (2, 1), (1, 3), (1,2,1), (2, 1,3), (1,2, 1, 3).

As another example, if today the memory contains a single array {(7,7)},tomorrow it will contain the following arrays: {(7), (7), (7,7)}, and the day after tomorrow it will contain the following arrays: {(7), (7), (7), (7), (7,7)}, and so on.

You are given Bob's original array A and the number of days D. Let f(A,D)f(A, D) be the sum of all elements of all arrays that will be in the memory of Bob's computer after D days. Our goal is to calculate f(A,D)f(A, D). You may assume that the memory of Bob's computer is sufficiently large to accommodate all the arrays.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 500

Question 17

+2 marksNumerical answer

The memory of Bob's computer contains two interesting things: an array of integers and a virus. Each midnight the virus becomes active. It takes each array in memory and replaces it with a bunch of new arrays: one for each contiguous subarray of the original array.

For example, if today the memory contains a single array (1,2,1,3), tomorrow it will contain the following arrays: (1), (2), (1), (3), (1,2), (2, 1), (1, 3), (1,2,1), (2, 1,3), (1,2, 1, 3).

As another example, if today the memory contains a single array {(7,7)},tomorrow it will contain the following arrays: {(7), (7), (7,7)}, and the day after tomorrow it will contain the following arrays: {(7), (7), (7), (7), (7,7)}, and so on.

You are given Bob's original array A and the number of days D. Let f(A,D)f(A, D) be the sum of all elements of all arrays that will be in the memory of Bob's computer after D days. Our goal is to calculate f(A,D)f(A, D). You may assume that the memory of Bob's computer is sufficiently large to accommodate all the arrays.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 33

Question 18

+2 marksNumerical answer

The memory of Bob's computer contains two interesting things: an array of integers and a virus. Each midnight the virus becomes active. It takes each array in memory and replaces it with a bunch of new arrays: one for each contiguous subarray of the original array.

For example, if today the memory contains a single array (1,2,1,3), tomorrow it will contain the following arrays: (1), (2), (1), (3), (1,2), (2, 1), (1, 3), (1,2,1), (2, 1,3), (1,2, 1, 3).

As another example, if today the memory contains a single array {(7,7)},tomorrow it will contain the following arrays: {(7), (7), (7,7)}, and the day after tomorrow it will contain the following arrays: {(7), (7), (7), (7), (7,7)}, and so on.

You are given Bob's original array A and the number of days D. Let f(A,D)f(A, D) be the sum of all elements of all arrays that will be in the memory of Bob's computer after D days. Our goal is to calculate f(A,D)f(A, D). You may assume that the memory of Bob's computer is sufficiently large to accommodate all the arrays.

Based on the above data, answer the given subquestions.

If A has four elements, how many arrays of length one are there after two steps?

Show answer

Correct answer: 20

Question 19

+2 marksOne correct option

The memory of Bob's computer contains two interesting things: an array of integers and a virus. Each midnight the virus becomes active. It takes each array in memory and replaces it with a bunch of new arrays: one for each contiguous subarray of the original array.

For example, if today the memory contains a single array (1,2,1,3), tomorrow it will contain the following arrays: (1), (2), (1), (3), (1,2), (2, 1), (1, 3), (1,2,1), (2, 1,3), (1,2, 1, 3).

As another example, if today the memory contains a single array {(7,7)},tomorrow it will contain the following arrays: {(7), (7), (7,7)}, and the day after tomorrow it will contain the following arrays: {(7), (7), (7), (7), (7,7)}, and so on.

You are given Bob's original array A and the number of days D. Let f(A,D)f(A, D) be the sum of all elements of all arrays that will be in the memory of Bob's computer after D days. Our goal is to calculate f(A,D)f(A, D). You may assume that the memory of Bob's computer is sufficiently large to accommodate all the arrays.

Based on the above data, answer the given subquestions.

Suppose we store, for every pair of indices 1≤i≤j≤N1 \leq i \leq j \leq N, the number of times the subarray A[i:j]A[i:j] (i, j inclusive) appears in the memory of Bob's computer on a particular day. Specifically, let T[i,j,d]T[i, j, d] denote the number of occurrences of A[i:j]A[i:j] in the set of arrays generated after dd days. Then:

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 20

+5 marksNumerical answer

Consider the network given below with source s and sink t, with the numbers on the edges denoting maximum capacity across a particular edge.

The value of the maximum flow in the given network is: ______________

Show answer

Correct answer: 23

Question 21

+5 marksNumerical answer

You are supposed to start at the top of a number triangle and chose your passage all the way down by selecting between the numbers below you to the immediate left or right. Your goal is to maximize the sum of the elements lying in your path.
For example, in the triangle below, the red path maximizes the sum.

Show answer

Correct answer: 19

Question 22

+5 marksOne correct option

Consider the following orientation problem.

We are given an undirected graph G=(V,E)G = (V, E) and integer values p(v)p(v) for every vertex v∈Vv \in V. We would like to know if we can orient the edges of GG such that the directed graph we obtain has at most p(v)p(v) arcs incoming to vv (the 'in-degree requirements').

In other words, for each edge {u,v}\{u, v\}, we have to decide whether to orient it as (u,v)(u, v) or as (v,u)(v, u), and we would like at most p(v)p(v) arcs to be oriented towards vv.

This problem is:

  1. A

    NP-hard because there is a polynomial-time reduction to SAT

  2. B

    NP-hard because there is a polynomial-time reduction to MaxFlow

  3. C

    in P because there is a polynomial-time reduction to MaxFlow

  4. D

    in P because there is a polynomial-time reduction to SAT

Show answer

Correct answer

  • C

    in P because there is a polynomial-time reduction to MaxFlow

Question 23

+5 marksOne or more correct options

Consider the network given below with source s and sink t, with the numbers on the edges denoting maximum capacity across a particular edge.

Which of the following edges form a valid min-cut in the given network?

Select all that apply.

  1. A

    Edges {ij, ik}

  2. B

    Edges {fi, hi, ij}

  3. C

    Edges {ce, df, de}

  4. D

    Edges {fg, fi, hi}

Show answer

Correct answers

  • A

    Edges {ij, ik}

  • D

    Edges {fg, fi, hi}

Question 24

+3 marksOne correct option

Based on the above data, answer the given subquestions.

Consider the partially carefully properly 5-colored graph below. What color should we give the vertex in the center to extend this to a complete careful proper 5-coloring?

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    3

  5. E

    4

Show answer

Correct answer

  • A

    0

Question 25

+3 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 26

+4 marksOne correct option

In the Uncapacitated Facility Location (UCFL) problem, we are given (F⊎D,d)(\mathcal{F} \uplus \mathcal{D}, d) as well auxiliary information which specifies the cost fif_i of opening a facility at location i∈Fi \in \mathcal{F}. The goal is to open a subset of facilities in F\mathcal{F} to minimize the sum of the cost of the opened facilities and the total distance traveled by the clients to their nearest open facility.

In other words we want to solve

min⁡F′⊆F(∑i∈Ffi+∑j∈Dd(j,F′)).\min_{\mathcal{F}' \subseteq \mathcal{F}} \left( \sum_{i \in \mathcal{F}} f_i + \sum_{j \in \mathcal{D}} d\left(j, \mathcal{F}'\right) \right).

Consider the following LP formulation for the problem. We use a variable yiy_i for i∈Fi \in \mathcal{F} to indicate whether ii is opened or not. We use a variable xi,jx_{i,j} to indicate whether jj is assigned to ii. One set of constraints are natural here: each client has to be assigned/connected to a facility. The other constraint requires that jj is assigned to ii only if ii is open.

Consider the LP below:

min⁡∑i∈Ffiyi+∑j∈D∑i∈Fd(i,j)xi,j∑ixi,j=Q∀j∈Dxi,j⩽yii∈F,j∈Dx,y⩾0\begin{aligned} &\min \sum_{i \in \mathcal{F}} f_i y_i + \sum_{j \in \mathcal{D}} \sum_{i \in \mathcal{F}} d(i,j) x_{i,j} \\ &\qquad \sum_i x_{i,j} = Q \quad \forall j \in \mathcal{D} \\ &\qquad x_{i,j} \leqslant y_i \quad i \in \mathcal{F}, j \in \mathcal{D} \\ &\qquad x, y \geqslant 0 \end{aligned}

What is the correct value of Q?

  1. A

    0

  2. B

    1

  3. C

    2

Show answer

Correct answer

  • B

    1

Question 27

+3 marksOne correct option

Consider the followed randomized algorithm, which prints out some number of smiley faces (:)) and some number of asterisks (*) :

python
def randomizedSmiles (A):
n = len(A)
if n ≤ 1:
print ":)"
return
for i in {0,...,n-1}:
print "*"
Choose a uniformly random integer p in {1, \ldots, n-1}
randomizedSmiles(A[:p])
randomizedSmiles (A[p:])

For the following parts, choose the tightest big-Oh bound that applies.

Based on the above data, answer the given subquestions.

What is the expected number of :)'s that randomizedSmiles prints out?

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • C

Question 28

+3 marksOne correct option

Consider the followed randomized algorithm, which prints out some number of smiley faces (:)) and some number of asterisks (*) :

python
def randomizedSmiles (A):
n = len(A)
if n ≤ 1:
print ":)"
return
for i in {0,...,n-1}:
print "*"
Choose a uniformly random integer p in {1, \ldots, n-1}
randomizedSmiles(A[:p])
randomizedSmiles (A[p:])

For the following parts, choose the tightest big-Oh bound that applies.

Based on the above data, answer the given subquestions.

What is the maximum number of :)'s that randomizedSmiles can print out, if you got to choose how p is selected?

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • C

Question 29

+3 marksOne correct option

Consider the followed randomized algorithm, which prints out some number of smiley faces (:)) and some number of asterisks (*) :

python
def randomizedSmiles (A):
n = len(A)
if n ≤ 1:
print ":)"
return
for i in {0,...,n-1}:
print "*"
Choose a uniformly random integer p in {1, \ldots, n-1}
randomizedSmiles(A[:p])
randomizedSmiles (A[p:])

For the following parts, choose the tightest big-Oh bound that applies.

Based on the above data, answer the given subquestions.

What is the expected number of 's that randomizedSmiles prints out?

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • D

Question 30

+3 marksOne correct option

Consider the followed randomized algorithm, which prints out some number of smiley faces (:)) and some number of asterisks (*) :

python
def randomizedSmiles (A):
n = len(A)
if n ≤ 1:
print ":)"
return
for i in {0,...,n-1}:
print "*"
Choose a uniformly random integer p in {1, \ldots, n-1}
randomizedSmiles(A[:p])
randomizedSmiles (A[p:])

For the following parts, choose the tightest big-Oh bound that applies.

Based on the above data, answer the given subquestions.

What is the maximum number of 's that randomizedSmiles can print out, if you got to choose how p is selected?

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • E

Question 31

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    0

  2. B

    1

Show answer

Correct answer

  • A

    0

Question 32

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
Show answer

Correct answer

  • A

Question 33

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
Show answer

Correct answer

  • B

Question 34

+4 marksOne correct option

Recall the Traveling Salesman Problem:

Definition

Traveling Salesman Problem

Input: A set of distinct cities {c1,c2,…,cn}\{c_1, c_2, \ldots, c_n\} and for each pair ci≠cjc_i \neq c_j the distance between cic_i and cjc_j, denoted by d(ci,cj)d(c_i, c_j), and a budget kk.

Question: Determine if there is a permutation π\pi of {1,2,…,n}\{1, 2, \ldots, n\}, such that the following sum:

∑i=1n−1d(cπ(i),cπ(i+1))+d(cπ(n),cπ(1))\sum_{i=1}^{n-1} d\left(c_{\pi(i)}, c_{\pi(i+1)}\right) + d\left(c_{\pi(n)}, c_{\pi(1)}\right)

is at most kk.

The dynamic programming algorithm for TSP computes for every pair (S,ci)(S, c_i), where SS is a nonempty subset of {c2,c3,…,cn}\{c_2, c_3, \ldots, c_n\} and ci∈Sc_i \in S, the value OPT[S,ci]OPT[S, c_i] which is the minimum length of a tour which starts in c1c_1, visits all cities from SS and ends in cic_i. We compute the values OPT[S,ci]OPT[S, c_i] in order of increasing cardinality of SS. The computation of OPT[S,ci]OPT[S, c_i] in the case SS contains only one city is trivial, because in this case, OPT[S,ci]=d(c1,ci)OPT[S, c_i] = d(c_1, c_i). For the case ∣S∣>1|S| > 1, observe that if in some optimal tour in SS terminating in cic_i, the city cjc_j immediately precedes cic_i, then

OPT[S,ci]=OPT[S∖{ci},cj]+d(cj,ci).OPT[S, c_i] = OPT[S \setminus \{c_i\}, c_j] + d(c_j, c_i).

This leads us to expressing the value of OPT[S,ci]OPT[S, c_i] in terms of subsets of SS as follows.

OPT[S,ci]=min⁡{OPT[S∖{ci},cj]+⋆:cj∈S∖{ci}}.OPT[S, c_i] = \min\{OPT[S \setminus \{c_i\}, c_j] + \star : c_j \in S \setminus \{c_i\}\}.

Note that the minimum is taken over cj∈S∖{ci}c_j \in S \setminus \{c_i\}. What is the missing term?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A