MauryaHub PYQ Practice

Advanced Algorithms · End Term · Jan 2026 · FN

Advanced Algorithms · End Term · Jan 2026 FN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 47 published solutions

Question 2 MCQ · 1.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
Can the disk with dimensions [2,1,2] be placed above [3,2,3]?
6406536959292.
Yes
6406536959293.
No

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 1.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
Can the disk with dimensions [2,2,2] be placed above [3,2,3]?
6406536959294.
Yes
6406536959295.
No

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 NAT · 2.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
Suppose the input consists of the following triplets: [[3, 5, 7], [3, 2, 2], [3, 1, 1], [5, 5, 9]]. What's the answer?

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 2.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
Our approach will be to building a DP table of the same length as the array of disks. Let
Source diagram or notation
denote the
Source diagram or notation
disk in the input array. The value of DP
Source diagram or notation
will be the height of the tallest tower that can be created with
Source diagram or notation
the bottom. We initialize the value of DP
Source diagram or notation
to the height of
Source diagram or notation
. Consider the following approach. We process the DP array in increasing order of indices (i.e,
Source diagram or notation
to
Source diagram or notation
). We look at all disks
Source diagram or notation
where
Source diagram or notation
and
Source diagram or notation
can be placed on top of
Source diagram or notation
. If
Source diagram or notation
can be placed on top of
Source diagram or notation
, then DP
Source diagram or notation
is updated to be the maximum of DP
Source diagram or notation
and DP
Source diagram or notation
, where
Source diagram or notation
is the height of the disk
Source diagram or notation
. What can you say about this approach?
6406536959297.
This approach is correct.
6406536959298.
This approach is incorrect, because we might miss some disks that can be placed on top of
Source diagram or notation
, as the given array may not be sorted by height.
6406536959299.
This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 2.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
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,
Source diagram or notation
to
Source diagram or notation
). We look at all disks
Source diagram or notation
such that
Source diagram or notation
can be placed on top of
Source diagram or notation
. If
Source diagram or notation
can be placed on top of
Source diagram or notation
, then DP
Source diagram or notation
is updated to be the maximum of DP
Source diagram or notation
and DP
Source diagram or notation
, where
Source diagram or notation
is the height of the disk
Source diagram or notation
. Note that the DP array is initialized as before, that is, DP
Source diagram or notation
is initialized to the height of
Source diagram or notation
. What can you say about this approach?
6406536959300.
This approach is correct.
6406536959301.
This approach is incorrect, because we might miss some disks that can be placed on top of
Source diagram or notation
, as the given array may not be sorted by height.
6406536959302.
This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 2.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
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,
Source diagram or notation
is a disk that has the smallest height, while
Source diagram or notation
is a disk that has the largest height. We process the DP array in increasing order of indices (i.e,
Source diagram or notation
to
Source diagram or notation
). We look at all disks
Source diagram or notation
where
Source diagram or notation
such that
Source diagram or notation
can be placed on top of
Source diagram or notation
. If
Source diagram or notation
can be placed on top of
Source diagram or notation
, then DP
Source diagram or notation
is updated to be the maximum of DP
Source diagram or notation
and DP
Source diagram or notation
, where
Source diagram or notation
is the height of the disk
Source diagram or notation
. What can you say about this approach?
6406536959303.
This approach is correct.
6406536959304.
This approach is incorrect, because we might miss some disks that can be placed on top of
Source diagram or notation
, as the given array may not be sorted by height.
6406536959305.
This approach is incorrect because the values we are looking up may not be computed correctly when we need them.

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 2.0 marks

We are given a non-empty list of
Source diagram or notation
ordered triplets where each triplet holds three integers and represents a cuboid-shaped disk. These integers denote each disk's width, depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A disk must have a strictly smaller width, depth, and height than any other disk below it. Our goal is to design an algorithm that returns the total height of the optimal stack, starting with the top disk and ending with the bottom disk. Note that you can't rotate disks. You can assume that there will only be one stack with the greatest total height. We also use
Source diagram or notation
-based indexing in the subquestions given.
What is the complexity of this algorithm?
6406536959306.Source diagram or notation
6406536959307.Source diagram or notation
6406536959308.Source diagram or notation
6406536959309.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 3.0 marks

Answer the given subquestions about matroids.
The rank function of a matroid
Source diagram or notation
, denoted by either
Source diagram or notation
or
Source diagram or notation
, is defined by:
Source diagram or notation
Does the rank function satisfy the following property for any pair of subsets
Source diagram or notation
?
Source diagram or notation
6406536959310.
Yes
6406536959311.
No

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 2.0 marks

Answer the given subquestions about matroids.
Let
Source diagram or notation
be a matroid and let
Source diagram or notation
where
Source diagram or notation
. This is the set system obtained by "removing" an element
Source diagram or notation
from
Source diagram or notation
. Is
Source diagram or notation
also a matroid?
6406536959312.
True
6406536959313.
False

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 2.0 marks

Answer the given subquestions about matroids.
Choose the correct option(s):
6406536959314.
Let
Source diagram or notation
. Let
Source diagram or notation
. Then,
Source diagram or notation
is a matroid.
6406536959315.
Let
Source diagram or notation
and
Source diagram or notation
be the collection of all subsets of
Source diagram or notation
with at least
Source diagram or notation
elements. Then
Source diagram or notation
together form a matroid.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 1.0 marks

Consider a universe
Source diagram or notation
of
Source diagram or notation
couples. A subset
Source diagram or notation
is good if it has at most three couples in it. Consider the family of all good sets. What can you say about this family? Based on the above data, answer the given subquestions.
The family satisfies the heriditary property, that is, if
Source diagram or notation
is a good set and
Source diagram or notation
, then
Source diagram or notation
is also a good set.
6406536959316.
True
6406536959317.
False

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 2.0 marks

Consider a universe
Source diagram or notation
of
Source diagram or notation
couples. A subset
Source diagram or notation
is good if it has at most three couples in it. Consider the family of all good sets. What can you say about this family? Based on the above data, answer the given subquestions.
Consider two good sets
Source diagram or notation
and
Source diagram or notation
where
Source diagram or notation
and
Source diagram or notation
. Then there exists an element
Source diagram or notation
such that
Source diagram or notation
is a good set.
6406536959318.
True
6406536959319.
False

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 2.0 marks

Consider a universe
Source diagram or notation
of
Source diagram or notation
couples. A subset
Source diagram or notation
is good if it has at most three couples in it. Consider the family of all good sets. What can you say about this family? Based on the above data, answer the given subquestions.
Recall that the exchange property is the following. If
Source diagram or notation
and
Source diagram or notation
are good sets and
Source diagram or notation
then there exists an element
Source diagram or notation
such that
Source diagram or notation
is a good set. The family of all good sets satisfies the exchange property. Note that we make no assumption about
Source diagram or notation
unlike the previous question.
6406536959320.
True
6406536959321.
False

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MSQ · 3.0 marks

In this question, we will examine the relationship of treewidth with other graph parameters.
Let
Source diagram or notation
be an undirected connected graph and
Source diagram or notation
be a depth-first search (DFS) tree of
Source diagram or notation
rooted at a vertex
Source diagram or notation
. Depth of
Source diagram or notation
is the length of a longest path from root to a leaf. Let
Source diagram or notation
be the depth of
Source diagram or notation
. Which of the following statements are true?
6406536959329.
Treewidth of
Source diagram or notation
is at most
Source diagram or notation
.
6406536959330.
Pathwidth of
Source diagram or notation
is at most
Source diagram or notation
.
6406536959331.
There is no relation between
Source diagram or notation
and the treewidth of
Source diagram or notation
.
6406536959332.
Maximum Independent Set can be solved in time
Source diagram or notation
.

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 2.0 marks

In this question, we will examine the relationship of treewidth with other graph parameters.
What is the treewidth of
Source diagram or notation
, a simple cycle on
Source diagram or notation
vertices?
6406536959333.
One
6406536959334.
Two
6406536959335.
One if
Source diagram or notation
is odd and two if
Source diagram or notation
is even
6406536959336.Source diagram or notation
6406536959337.Source diagram or notation
6406536959338.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 3.0 marks

Recall the max-flow problem: for a directed graph
Source diagram or notation
with non-negative capacities
Source diagram or notation
for every
Source diagram or notation
and two special vertices
Source diagram or notation
(source, with no incoming edges) and
Source diagram or notation
(sink, with no outgoing edges), a flow in
Source diagram or notation
is an assignment
Source diagram or notation
such that
Source diagram or notation
for every edge and for every vertex
Source diagram or notation
. The task is to find a maximum flow (f) i.e., a flow (f) such that
Source diagram or notation
is maximized. Given an instance
Source diagram or notation
, we attempt here to design a LP whose optimal value is equal to the maximum flow in the graph
Source diagram or notation
. There is a variable
Source diagram or notation
for all
Source diagram or notation
. Note that for any pair of vertices that is not an edge, we do not introduce any variable corresponding to it.
Source diagram or notation
Is the LP above a valid formulation for computing the maximum flow in
Source diagram or notation
?
6406536959322.
Yes, this is a valid set of constraints.
6406536959323.
No, the sum in the objective function should be taken only over neighbors of
Source diagram or notation
.
6406536959324.
No, the sum in the second constraint should be taken only over in-neighbors of
Source diagram or notation
and out-neighbors of
Source diagram or notation
, respectively.

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 3.0 marks

Given a flow network
Source diagram or notation
and a flow
Source diagram or notation
, how will you determine if
Source diagram or notation
is maximum flow?
6406536959325.
If there is any edge that is not saturated to full capacity, then we can conclude that
Source diagram or notation
is not a maximum flow.
6406536959326.
If the residual graph does not have any augmenting paths then
Source diagram or notation
is a maximum flow.
6406536959327.
If the value of the flow
Source diagram or notation
is not the sum of the capacities of the edges coming out of the source
Source diagram or notation
then
Source diagram or notation
is not a maximum flow.
6406536959328.
If the value of the flow
Source diagram or notation
is not the sum of the capacities of the edges coming into the sink
Source diagram or notation
then
Source diagram or notation
is not a maximum flow.

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 2.0 marks

Consider the LP for vertex cover for the graph
Source diagram or notation
shown in the figure below.
Source diagram or notation
Based on the above data, answer the given subquestions.
The value of the optimal solution for the Vertex Cover LP corresponding to
Source diagram or notation
is less than 2.
6406536959339.
True
6406536959340.
False

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 2.0 marks

Consider the LP for vertex cover for the graph
Source diagram or notation
shown in the figure below.
Source diagram or notation
Based on the above data, answer the given subquestions.
The value of the optimal solution for the Vertex Cover LP corresponding to
Source diagram or notation
is 2.
6406536959341.
True
6406536959342.
False

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MCQ · 2.0 marks

Consider the LP for vertex cover for the graph
Source diagram or notation
shown in the figure below.
Source diagram or notation
Based on the above data, answer the given subquestions.
The size of the smallest vertex cover of
Source diagram or notation
is 2.
6406536959343.
True
6406536959344.
False

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MCQ · 2.0 marks

Consider the LP for vertex cover for the graph
Source diagram or notation
shown in the figure below.
Source diagram or notation
Based on the above data, answer the given subquestions.
The all-
Source diagram or notation
solution is optimal for the Vertex Cover LP corresponding to
Source diagram or notation
.
6406536959345.
True
6406536959346.
False

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 MCQ · 2.0 marks

Consider the LP for vertex cover for the graph
Source diagram or notation
shown in the figure below.
Source diagram or notation
Based on the above data, answer the given subquestions.
After deleting the vertex
Source diagram or notation
from
Source diagram or notation
, the value of the optimal LP solution decreases by 1.
6406536959347.
True
6406536959348.
False

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 MCQ · 2.0 marks

Let
Source diagram or notation
be a graph with positive edge weights. Then its aspect ratio is the quantity
Source diagram or notation
. Given a graph
Source diagram or notation
, a reweighted graph on the same vertex and edge set
Source diagram or notation
is **shortest-paths preserving** if, for every shortest path
Source diagram or notation
in
Source diagram or notation
, the sequence of nodes and edges along
Source diagram or notation
is also a shortest path in
Source diagram or notation
. Based on the above data, answer the given subquestions.
Consider the following graphs
Source diagram or notation
and
Source diagram or notation
. Note that
Source diagram or notation
has aspect ratio
Source diagram or notation
and
Source diagram or notation
has aspect ratio
Source diagram or notation
. Is
Source diagram or notation
shortest-paths preserving with respect to
Source diagram or notation
?
Source diagram or notation
6406536959353.
Yes
6406536959354.
No

A published solution is not available for this question yet.

Report a correction for Q24

Question 25 MCQ · 2.0 marks

Let
Source diagram or notation
be a graph with positive edge weights. Then its aspect ratio is the quantity
Source diagram or notation
. Given a graph
Source diagram or notation
, a reweighted graph on the same vertex and edge set
Source diagram or notation
is **shortest-paths preserving** if, for every shortest path
Source diagram or notation
in
Source diagram or notation
, the sequence of nodes and edges along
Source diagram or notation
is also a shortest path in
Source diagram or notation
. Based on the above data, answer the given subquestions.
Suppose you reweight the graph
Source diagram or notation
shown below on the left to the graph (H) on the right. Suppose
Source diagram or notation
is shortest-paths preserving. Then what can you say about
Source diagram or notation
?
Source diagram or notation
6406536959355.Source diagram or notation
6406536959356.Source diagram or notation
6406536959357.Source diagram or notation
6406536959358.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q25

Question 26 MCQ · 2.0 marks

Let
Source diagram or notation
be a graph with positive edge weights. Then its aspect ratio is the quantity
Source diagram or notation
. Given a graph
Source diagram or notation
, a reweighted graph on the same vertex and edge set
Source diagram or notation
is **shortest-paths preserving** if, for every shortest path
Source diagram or notation
in
Source diagram or notation
, the sequence of nodes and edges along
Source diagram or notation
is also a shortest path in
Source diagram or notation
. Based on the above data, answer the given subquestions.
Consider any reweighted graph
Source diagram or notation
of
Source diagram or notation
that is shortest-paths preserving, where
Source diagram or notation
is the graph from part (b). Then the aspect ratio of
Source diagram or notation
:
6406536959359.
is strictly more than
Source diagram or notation
for any reweighting
6406536959360.
can be made at most
Source diagram or notation
for some reweighting

A published solution is not available for this question yet.

Report a correction for Q26

Question 27 MCQ · 2.0 marks

Let
Source diagram or notation
be a graph with positive edge weights. Then its aspect ratio is the quantity
Source diagram or notation
. Given a graph
Source diagram or notation
, a reweighted graph on the same vertex and edge set
Source diagram or notation
is **shortest-paths preserving** if, for every shortest path
Source diagram or notation
in
Source diagram or notation
, the sequence of nodes and edges along
Source diagram or notation
is also a shortest path in
Source diagram or notation
. Based on the above data, answer the given subquestions.
Consider the following claim: for any DAG
Source diagram or notation
, it is possible to always find a re-weighting that is shortest-paths preserving such that the aspect ratio with the new weight function is at most
Source diagram or notation
, where
Source diagram or notation
is the number of vertices in
Source diagram or notation
. Is this claim true?
6406536959361.
True
6406536959362.
False

A published solution is not available for this question yet.

Report a correction for Q27

Question 28 MCQ · 2.0 marks

Let
Source diagram or notation
be a graph with positive edge weights. Then its aspect ratio is the quantity
Source diagram or notation
. Given a graph
Source diagram or notation
, a reweighted graph on the same vertex and edge set
Source diagram or notation
is **shortest-paths preserving** if, for every shortest path
Source diagram or notation
in
Source diagram or notation
, the sequence of nodes and edges along
Source diagram or notation
is also a shortest path in
Source diagram or notation
. Based on the above data, answer the given subquestions.
Consider the following claim: for any DAG
Source diagram or notation
, it is possible to always find a re-weighting that is shortest-paths preserving such that the aspect ratio with the new weight function is at most
Source diagram or notation
, where
Source diagram or notation
is the number of vertices in
Source diagram or notation
. Is this claim true?
6406536959363.
True
6406536959364.
False

A published solution is not available for this question yet.

Report a correction for Q28

Question 29 MCQ · 2.0 marks

Suppose we are given an ILP which seeks to minimize an objective function subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to
Source diagram or notation
.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
Source diagram or notation
.
6406536959393.
True
6406536959394.
False

A published solution is not available for this question yet.

Report a correction for Q29

Question 30 MCQ · 2.0 marks

Suppose we are given an ILP which seeks to minimize an objective function subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to
Source diagram or notation
.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
Source diagram or notation
.
6406536959395.
True
6406536959396.
False

A published solution is not available for this question yet.

Report a correction for Q30

Question 31 MCQ · 2.0 marks

Suppose we are given an ILP which seeks to minimize an objective function subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to
Source diagram or notation
.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
Source diagram or notation
.
6406536959397.
True
6406536959398.
False

A published solution is not available for this question yet.

Report a correction for Q31

Question 32 MCQ · 2.0 marks

Suppose we are given an ILP which seeks to minimize an objective function subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to
Source diagram or notation
.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
Source diagram or notation
.
6406536959399.
True
6406536959400.
False

A published solution is not available for this question yet.

Report a correction for Q32

Question 33 MCQ · 2.0 marks

Suppose we are given an ILP which seeks to minimize an objective function subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to
Source diagram or notation
.What can you say about the original ILP? Based on the above data, answer the given subquestions.
The ILP is guaranteed to be feasible.
6406536959401.
True
6406536959402.
False

A published solution is not available for this question yet.

Report a correction for Q33

Question 34 MCQ · 3.0 marks

Consider the given statements and answer if they are true or false.
The worst-case running time and expected running time are equal to within constant factors for any randomized algorithm.
6406536959349.
True
6406536959350.
False

A published solution is not available for this question yet.

Report a correction for Q34

Question 35 MCQ · 3.0 marks

Consider the given statements and answer if they are true or false.
An adversary can provide randomized quicksort with an input array of length
Source diagram or notation
that forces the algorithm to run in
Source diagram or notation
time on that input. (If you are not familiar with the
Source diagram or notation
asymptotic notation, it roughly translates as "at least". For example, we can say that it is possible to come up with an input that forces insertion sort to run for
Source diagram or notation
steps.)
6406536959351.
True
6406536959352.
False

A published solution is not available for this question yet.

Report a correction for Q35

Question 36 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
A graph
Source diagram or notation
is a cluster graph if and only if it does not have an induced path on
Source diagram or notation
vertices.
6406536959365.
True
6406536959366.
False

A published solution is not available for this question yet.

Report a correction for Q36

Question 37 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on
Source diagram or notation
is not a cluster graph, we can immediately return YES.
6406536959367.
True
6406536959368.
False

A published solution is not available for this question yet.

Report a correction for Q37

Question 38 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on the vertices of
Source diagram or notation
is not a cluster graph, we can immediately return NO.
6406536959369.
True
6406536959370.
False

A published solution is not available for this question yet.

Report a correction for Q38

Question 39 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
If the subgraph induced on the vertices of
Source diagram or notation
is a cluster graph and a vertex in
Source diagram or notation
is adjacent to at least two vertices in
Source diagram or notation
which are in different cliques, then we can delete it and leave the parameter unchanged.
6406536959371.
True
6406536959372.
False

A published solution is not available for this question yet.

Report a correction for Q39

Question 40 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
If the subgraph induced on the vertices of
Source diagram or notation
is a cluster graph and a vertex in
Source diagram or notation
is adjacent to at least two vertices in
Source diagram or notation
which are in different cliques, then we can delete it and decrease the parameter by
Source diagram or notation
.
6406536959373.
True
6406536959374.
False

A published solution is not available for this question yet.

Report a correction for Q40

Question 41 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
If the subgraph induced on the vertices of
Source diagram or notation
is a cluster graph and a vertex in
Source diagram or notation
is adjacent to some but not all vertices in a clique of
Source diagram or notation
, then we can delete it and leave the parameter unchanged.
6406536959375.
True
6406536959376.
False

A published solution is not available for this question yet.

Report a correction for Q41

Question 42 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
If the subgraph induced on the vertices of
Source diagram or notation
is a cluster graph and a vertex in
Source diagram or notation
is adjacent to some but not all vertices in a clique of
Source diagram or notation
, then we can delete it and decrease the parameter by
Source diagram or notation
.
6406536959377.
True
6406536959378.
False

A published solution is not available for this question yet.

Report a correction for Q42

Question 43 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
After modifying the input instance, we can solve DISJOINT CLUSTER VERTEX DELETION by solving a matching problem on a bipartite graph.
6406536959379.
True
6406536959380.
False

A published solution is not available for this question yet.

Report a correction for Q43

Question 44 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
DISJOINT CLUSTER VERTEX DELETION is NP-Hard.
6406536959381.
True
6406536959382.
False

A published solution is not available for this question yet.

Report a correction for Q44

Question 45 MCQ · 2.0 marks

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
Source diagram or notation
and a parameter
Source diagram or notation
, does there exist a set
Source diagram or notation
of at most
Source diagram or notation
vertices of
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
Source diagram or notation
, parameter
Source diagram or notation
and a set
Source diagram or notation
of vertices of
Source diagram or notation
of size
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. We need to find if there exists a subset
Source diagram or notation
of size at most
Source diagram or notation
which is disjoint from
Source diagram or notation
such that the subgraph induced on
Source diagram or notation
is a cluster graph. Determine, for each statement given in the subquestion, if it is true or false.
There exists a
Source diagram or notation
algorithm for CLUSTER VERTEX DELETION.
6406536959383.
True
6406536959384.
False

A published solution is not available for this question yet.

Report a correction for Q45

Question 46 MCQ · 3.0 marks

**Marbles** is a solitaire game played on an undirected graph
Source diagram or notation
, where each vertex has zero or more marbles. A single move in this game consists of removing two marbles from a vertex
Source diagram or notation
and adding one marble to an arbitrary neighbor of
Source diagram or notation
. Note that the vertex
Source diagram or notation
must have at least two marbles on it before the move. The **Marbles Elimination** problem asks: given a graph
Source diagram or notation
and a marble count
Source diagram or notation
for each vertex
Source diagram or notation
, is there a sequence of valid moves that removes all but one marble? **Example.** Consider a triangle graph with vertices
Source diagram or notation
and edges
Source diagram or notation
. If we start with marbles
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
(total
Source diagram or notation
): 1. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 2. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 3. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. We end with exactly
Source diagram or notation
marble. Based on the above data, answer the given subquestions.
Consider a path graph
Source diagram or notation
with vertices
Source diagram or notation
(edges
Source diagram or notation
). Starting configuration:
Source diagram or notation
(total
Source diagram or notation
marbles). Can the game be won (reduced to exactly
Source diagram or notation
marble)?
6406536959385.
Yes
6406536959386.
No

A published solution is not available for this question yet.

Report a correction for Q46

Question 47 MCQ · 3.0 marks

**Marbles** is a solitaire game played on an undirected graph
Source diagram or notation
, where each vertex has zero or more marbles. A single move in this game consists of removing two marbles from a vertex
Source diagram or notation
and adding one marble to an arbitrary neighbor of
Source diagram or notation
. Note that the vertex
Source diagram or notation
must have at least two marbles on it before the move. The **Marbles Elimination** problem asks: given a graph
Source diagram or notation
and a marble count
Source diagram or notation
for each vertex
Source diagram or notation
, is there a sequence of valid moves that removes all but one marble? **Example.** Consider a triangle graph with vertices
Source diagram or notation
and edges
Source diagram or notation
. If we start with marbles
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
(total
Source diagram or notation
): 1. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 2. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 3. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. We end with exactly
Source diagram or notation
marble. Based on the above data, answer the given subquestions.
Consider a cycle graph
Source diagram or notation
with vertices
Source diagram or notation
(edges
Source diagram or notation
). Starting configuration:
Source diagram or notation
(total
Source diagram or notation
marbles). Can the game be won (reduced to exactly
Source diagram or notation
marble)?
6406536959387.
Yes
6406536959388.
No

A published solution is not available for this question yet.

Report a correction for Q47

Question 48 MCQ · 3.0 marks

**Marbles** is a solitaire game played on an undirected graph
Source diagram or notation
, where each vertex has zero or more marbles. A single move in this game consists of removing two marbles from a vertex
Source diagram or notation
and adding one marble to an arbitrary neighbor of
Source diagram or notation
. Note that the vertex
Source diagram or notation
must have at least two marbles on it before the move. The **Marbles Elimination** problem asks: given a graph
Source diagram or notation
and a marble count
Source diagram or notation
for each vertex
Source diagram or notation
, is there a sequence of valid moves that removes all but one marble? **Example.** Consider a triangle graph with vertices
Source diagram or notation
and edges
Source diagram or notation
. If we start with marbles
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
(total
Source diagram or notation
): 1. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 2. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. 3. Move from
Source diagram or notation
to
Source diagram or notation
: now
Source diagram or notation
,
Source diagram or notation
,
Source diagram or notation
. We end with exactly
Source diagram or notation
marble. Based on the above data, answer the given subquestions.
Consider the general **Marbles Elimination** decision problem with the following setup: • Input: A graph
Source diagram or notation
with
Source diagram or notation
vertices, where one designated vertex
Source diagram or notation
has
Source diagram or notation
marbles and all other vertices have
Source diagram or notation
marble each. • Output: TRUE if we can reduce to exactly
Source diagram or notation
marble, FALSE otherwise. What is the complexity of this problem?
6406536959389.
The problem is solvable in polynomial time.
6406536959390.
The problem is NP-complete.
6406536959391.
The problem is in P but not known to be NP-complete.
6406536959392.
The problem is not in NP.

A published solution is not available for this question yet.

Report a correction for Q48