uiz Space

May 2024 term · Advanced Algorithms · BSCS4021

Advanced Algorithms End Term: 1 September 2024, Set QDB1 (May 2024 term)

The IIT Madras BS Advanced Algorithms (Advanced Algorithms) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDB1: 53 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
53
Marks
100
Duration
180 min
MCQ
42
Numerical
8
MSQ
3

Updated

Official paper: IIT M DEGREE AN EXAM QDB3 01 Sep 2024 · No negative marking.

Question 1

+2 marksOne correct option
  1. A

    At each iteration, pick the remaining request with the fewest number of conflicts with other remaining requests (breaking ties arbitrarily).

  2. B

    At each iteration, pick the remaining request with the earliest start time.

  3. C

    At each iteration, pick the remaining request with the earliest finish time.

  4. D

    At each iteration, pick the remaining request which requires the least time (i.e., has the smallest value of ti — si) (breaking ties arbitrarily).

Show answer

Correct answer

  • C

    At each iteration, pick the remaining request with the earliest finish time.

Question 2

+2 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
Show answer

Correct answer

  • B

Question 3

+3 marksOne correct option

In this problem you are given as input a graph T=(V,E)T = (V, E) that is a tree (that is, TT is undirected, connected, and acyclic). A perfect matching of TT is a subset F⊂EF \subset E of edges such that every vertex v∈Vv \in V is the endpoint of exactly one edge of FF.

Equivalently, FF matches each vertex of TT with exactly one other vertex of TT. For example, a path graph has a perfect matching if and only if it has an even number of vertices.

Consider the following two algorithms that attempt to decide whether or not a given tree has a perfect matching. The degree of a vertex in a graph is the number of edges incident to it.

Algorithm A:

text
1 While T has at least one vertex:
2 If T has no edges:
3 halt and output ”T has no perfect matching.”
4 Else:
5 Let v be a vertex of T with maximum degree.
6 Choose an arbitrary edge e incident to v.
7 Delete e and its two endpoints from T.
8 (end of while loop]
9 Halt and output ”T has a perfect matching.”

Algorithm B:

text
1 While T has at least one vertex:
2 If T has no edges:
3 halt and output ”T has no perfect matching.”
4 Else:
5 Let v be a vertex of T with minimum non-zero
6 Choose an arbitrary edge e incident to v.
7 Delete e and its two endpoints from T.
8 (end of while loop]
9 Halt and output ”T has a perfect matching.”

Is either algorithm correct?

Hint: Recall that every tree with at least two vertices has at least one degree one vertex.

  1. A

    Neither algorithm always correctly determines whether or not a given tree graph has a perfect matching.

  2. B

    Both algorithms always correctly determine whether or not a given tree graph has a perfect matching.

  3. C

    Algorithm B always correctly determines whether or not a given tree graph has a perfect matching; algorithm A does not.

  4. D

    Algorithm A always correctly determines whether or not a given tree graph has a perfect matching; algorithm B does not.

Show answer

Correct answer

  • C

    Algorithm B always correctly determines whether or not a given tree graph has a perfect matching; algorithm A does not.

Question 4

+3 marksOne correct option

Which of the following statements is true?
Statement 1: For every graph G and every maximum flow on G, there always exists an edge such that increasing the capacity on that edge will increase the maximum flow that’s possible in the graph.
Statement 2: Suppose the maximum (s,t)-flow of some graph has value f. Now we increase the capacity of every edge by 1. Then the maximum (s,t)-flow in this modified graph will have value at most f + 1.

  1. A

    Statement 1

  2. B

    Statement 2

  3. C

    Both statements

  4. D

    Neither statement

Show answer

Correct answer

  • D

    Neither statement

Question 5

+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))=∑(u,v)∈Ef((v,u))v \in V, \sum_{(u,v) \in E} f((u,v)) = \sum_{(u,v) \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 6

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

Correct answer

  • C

Question 7

+3 marksOne correct option

A subset S of vertices in an undirected graph G is half-independent if each vertex in S is adjacent to at most one other vertex in S. Is it true that finding the size of the largest half-independent set of vertices in a given undirected graph is NP-hard?

  1. A

    Yes, this can be shown by a reduction from the standard maximum independent set problem.

  2. B

    Yes, and this can be shown by reducing the half-independent set problem to the standard maximum independent set problem.

  3. C

    No, the problem of finding a largest half-independent set of vertices is in P since it can be reduced to the problem of finding a maximum matching.

Show answer

Correct answer

  • A

    Yes, this can be shown by a reduction from the standard maximum independent set problem.

Question 8

+1 markOne correct option

Can the disk with dimensions [2,1,2] be placed above [3,2,3]?

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • A

    YES

Question 9

+1 markOne correct option

Can the disk with dimensions [2,2,2] be placed above [3,2,3]?

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • B

    NO

Question 10

+2 marksNumerical answer

Suppose the input consists of the following triplets: [[3, 5, 7], [3, 2, 2], [3, 1, 1], [5, 5, 9]]. What’s the answer?

Show answer

Correct answer: 11

Question 11

+2 marksOne correct option

Our approach will be to building a DP table of the same length as the array of disks. Let did_i denote the ithi^{th} disk in the input array.

The value of DP[i]\text{DP}[i] will be the height of the tallest tower that can be created with did_i the bottom. We initialize the value of DP[i]\text{DP}[i] the height of did_i.

Consider the following approach. We process the DP array in increasing order of indices (i.e, i=1i = 1 to i=Ni = N). We look at all disks djd_j where j<ij < i and djd_j can be placed on top of did_i. If djd_j can be placed on top of did_i, then DP[i]\text{DP}[i] is updated to be the maximum of DP[i]\text{DP}[i] and DP[j]+H\text{DP}[j] + H, where HH is the height of the disk did_i. What can you say about this approach?

  1. A

    This approach is correct.

  2. B

    This approach is incorrect, because we might miss some disks that can be placed on top of di,as the given array may not be sorted by height.

  3. C

    This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

Show answer

Correct answer

  • B

    This approach is incorrect, because we might miss some disks that can be placed on top of di,as the given array may not be sorted by height.

Question 12

+2 marksOne correct option

With the same notation as in the previous question, consider the following alternate approach. We process the DP array in increasing order of indices (i.e, i=1i = 1 to i=Ni = N). We look at all disks djd_j such that djd_j can be placed on top of did_i. If djd_j can be placed on top of did_i, then DP[i]\text{DP}[i] is updated to be the maximum of DP[i]\text{DP}[i] and DP[j]+H\text{DP}[j] + H, where HH is the height of the disk did_i.

Note that the DP array is initialized as before, that is, DP[i]\text{DP}[i] is initialized to the height of did_i.

What can you say about this approach?

  1. A

    This approach is correct.

  2. B

    This approach is incorrect, because we might miss some disks that can be placed on top of di, as the given array may not be sorted by height.

  3. C

    This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

Show answer

Correct answer

  • C

    This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

Question 13

+2 marksOne correct option

With the same notation as in the previous questions, consider the following alternate approach. We first organize the disks in non-decreasing order of heights, that is, d1d_1 is a disk that has the smallest height, while dNd_N is a disk that has the largest height.

We process the DP array in increasing order of indices (i.e, i=1i = 1 to i=Ni = N). We look at all disks djd_j where j<ij < i such that djd_j can be placed on top of did_i.

If djd_j can be placed on top of did_i, then DP[i]\text{DP}[i] is updated to be the maximum of DP[i]\text{DP}[i] and DP[j]+H\text{DP}[j] + H, where HH is the height of the disk did_i.

What can you say about this approach?

  1. A

    This approach is correct.

  2. B

    This approach is incorrect, because we might miss some disks that can be placed on top of di, as the given array may not be sorted by height.

  3. C

    This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

Show answer

Correct answer

  • A

    This approach is correct.

Question 14

+2 marksOne correct option

What is the complexity of this algorithm?

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

Correct answer

  • B

Question 15

+1 markOne correct option

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

If we have 1 die with 6 sides, how many ways can we achieve a target sum of 4?

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    3

Show answer

Correct answer

  • B

    1

Question 16

+1 markOne correct option

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

If we have 3 dice with 17 sides each, how many ways can we achieve a target sum of 7?

  1. A

    10

  2. B

    15

  3. C

    17

  4. D

    18

Show answer

Correct answer

  • B

    15

Question 17

+1 markNumerical answer

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

Suppose the input consists of 3 dice, each with 4 sides, and the target sum is 9. What’s the answer?

Show answer

Correct answer: 10

Question 18

+1 markOne or more correct options

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

In which of the following scenarios will the answer be zero?

Select all that apply.

  1. A

    The target sum is less than the number of dice.

  2. B

    The target sum is greater than SN, the product of the number of dice and the number of sides.

  3. C

    The target sum is not divisible by the number of dice.

  4. D

    The target sum is equal to the number of dice.

Show answer

Correct answers

  • A

    The target sum is less than the number of dice.

  • B

    The target sum is greater than SN, the product of the number of dice and the number of sides.

Question 19

+1 markOne correct option

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

If we have one die with six sides, what are the achievable targets?

  1. A

    0, 1, 2, 3, 4, 5, 6

  2. B

    1, 2, 3, 4, 5, 6

  3. C

    1, 2, 3, 4, 5, 6, 7

  4. D

    0, 1, 2, 3, 4, 5, 6, 7

Show answer

Correct answer

  • B

    1, 2, 3, 4, 5, 6

Question 20

+2 marksOne correct option

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

Let DP[N,T ] denote the number of ways to achieve a target sum of T > 0 using N > 0 dice. Which of the following recursive formulas is correct if all the dice have S sides?

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

Correct answer

  • C

Question 21

+1 markNumerical answer

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

What is the value of DP[0, 0]?

Show answer

Correct answer: 1

Question 22

+1 markNumerical answer

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

What is the value of DP[0, T ] for any T > 0?

Show answer

Correct answer: 0

Question 23

+1 markNumerical answer

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

What is the value of DP[N , 0] for any N > 0?

Show answer

Correct answer: 0

Question 24

+1 markNumerical answer

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

What is the value of DP[N , T ] if T < N ?

Show answer

Correct answer: 0

Question 25

+1 markOne correct option

We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.

What is the complexity of this algorithm ?

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

Correct answer

  • A

Question 26

+1 markOne correct option

Based on the above data, answer the given subquestions.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 27

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 28

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 29

+2 marksOne or more correct options

In this given subquestion, we will examine the relationship of treewidth with other graph parameters.

Let G be an undirected connected graph and T be a depth-first search (DFS) tree of G rooted at a vertex r. An edge of G is called a back edge if the endpoints of the edge are on the same root to leaf path in T . That is, an edge is from a vertex to one of its ancestors in the DFS tree. An edge that is not a back edge is called a cross edge. Indeed, such an edge points from a vertex to a previously visited vertex that is neither an ancestor nor a descendant. Which of the following statements are true?

Select all that apply.

  1. A

    There are no back edges in G.

  2. B

    There are no cross edges in G.

  3. C

    DFS can be used to test whether G has a Hamiltonian path.

  4. D

    The set of leaves of T forms an independent set in G.

Show answer

Correct answers

  • B

    There are no cross edges in G.

  • D

    The set of leaves of T forms an independent set in G.

Question 30

+3 marksOne or more correct options

In this given subquestion, we will examine the relationship of treewidth with other graph parameters.

Let G be an undirected connected graph and T be a depth-first search (DFS) tree of G rooted at a vertex r. Depth of T is the length of a longest path from root to a leaf. Let q be the depth of T . Which of the following statements are true?

Select all that apply.

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

Correct answers

  • A
  • B
  • D

Question 31

+3 marksOne correct option

In this given subquestion, we will examine the relationship of treewidth with other graph parameters.

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

Correct answer

  • A

Question 32

+2 marksOne correct option

Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3. What can you say about the original ILP?
Based on the above data, answer the given subquestions.

If the ILP is feasible, its optimal solution must be greater than or equal to 54.3

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 33

+2 marksOne correct option

Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3. What can you say about the original ILP?
Based on the above data, answer the given subquestions.

If the ILP is feasible, its optimal solution must be less than or equal to 54.3.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 34

+2 marksOne correct option

Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3. What can you say about the original ILP?
Based on the above data, answer the given subquestions.

It is possible that the ILP’s optimal solution (if it exists) will be 50 ×10²³³¹.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 35

+2 marksOne correct option

Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3. What can you say about the original ILP?
Based on the above data, answer the given subquestions.

It is possible that the ILP’s optimal solution (if it exists) will also be 54.3.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 36

+2 marksOne correct option

Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3. What can you say about the original ILP?
Based on the above data, answer the given subquestions.

The ILP is guaranteed to be feasible.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 37

+2 marksOne correct option

Based on the above data, answer the given subquestions.

What is the size of each Ai?

  1. A

    3ⁿ

  2. B

    2ⁿ

  3. C

    n³

  4. D

    n²

Show answer

Correct answer

  • B

    2ⁿ

Question 38

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    2ⁿ

  2. B

    n

  3. C

    1

  4. D

    0

Show answer

Correct answer

  • C

    1

Question 39

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    3ⁿ

  2. B

    2ⁿ

  3. C

    1

  4. D

    0

Show answer

Correct answer

  • D

    0

Question 40

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

For n = 4, calculate the number of sequences of length 3 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.

Show answer

Correct answer: 36

Question 41

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

For n = 6, calculate the number of sequences of length 5 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.

Show answer

Correct answer: 540

Question 42

+2 marksOne correct option

Based on the above data, answer the given subquestions.

How many numbers in the interval [1; r] are divisible by pi ? The answer to this question is:

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

Correct answer

  • B

Question 43

+2 marksOne correct option

Based on the above data, answer the given subquestions.

The final answer is:

  1. A
  2. B
  3. C
Show answer

Correct answer

  • A

Question 44

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

A graph G is a cluster graph if and only if it does not have an induced path on 3 vertices.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 45

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on S is not a cluster graph, we can immediately return YES.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 46

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on the vertices of S is not a cluster graph, we can immediately return NO.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 47

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

If the subgraph induced on the vertices of S is a cluster graph and a vertex in V(G)\S is adjacent to at least two vertices in S which are in different cliques, then we can delete it and leave the parameter unchanged.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 48

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

If the subgraph induced on the vertices of S is a cluster graph and a vertex in V(G)\S is adjacent to at least two vertices in S which are in different cliques, then we can delete it and decrease the parameter by 1.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 49

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

If the subgraph induced on the vertices of S is a cluster graph and a vertex in V(G)\S is adjacent to some but not all vertices in a clique of G[S], then we can delete it and leave the parameter unchanged.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 50

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

If the subgraph induced on the vertices of S is a cluster graph and a vertex in V(G)\S is adjacent to some but not all vertices in a clique of G[S], then we can delete it and decrease the parameter by 1.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 51

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

After modifying the input instance, we can solve DISJOINT CLUSTER VERTEX DELETION by solving a matching problem on a bipartite graph.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 52

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

DISJOINT CLUSTER VERTEX DELETION is NP-Hard.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 53

+2 marksOne correct option

A graph is called a cluster graph if and only if it is a disjoint union of cliques. Recall that a clique is a graph where every vertex is adjacent to every other vertex.

The CLUSTER VERTEX DELETION problem is the following: Given an input graph GG and a parameter kk, does there exist a set SS of at most kk vertices of GG such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph.

In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph GG, parameter kk and a set SS of vertices of GG of size k+1k+1 such that the subgraph induced on V(G)∖SV(G) \setminus S is a cluster graph. We need to find if there exists a subset T⊂V(G)T \subset V(G) of size at most kk which is disjoint from SS such that the subgraph induced on V(G)∖TV(G) \setminus T is a cluster graph.

Determine, for each statement given , if it is true or false.

Based on the above data, answer the given subquestions.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE