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
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
-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.
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
-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.
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
-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.
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
-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
denote
the
disk in the input array. The value of DP
will be the height of the tallest tower that can be
created with
the bottom. We initialize the value of DP
to the height of
.
Consider the following approach. We process the DP array in increasing order of indices (i.e,
to
). We look at all disks
where
and
can be placed on top of
. If
can be
placed on top of
, then DP
is updated to be the maximum of DP
and DP
, where
is
the height of the disk
.
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
, 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.
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
-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,
to
). We look at all disks
such that
can be placed on top of
. If
can be placed on top of
, then DP
is updated to
be the maximum of DP
and DP
, where
is the height of the disk
.
Note that the DP array is initialized as before, that is, DP
is initialized to the height of
.
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
, 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.
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
-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,
is a disk that has the
smallest height, while
is a disk that has the largest height.
We process the DP array in increasing order of indices (i.e,
to
). We look at all disks
where
such that
can be placed on top of
. If
can be placed on top of
, then DP
is
updated to be the maximum of DP
and DP
, where
is the height of the disk
.
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
, 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.
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
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
is a good set and
, then
is also a
good set.
6406536959316.
True
6406536959317.
False
A published solution is not available for this question yet.
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
and
where
and
. Then there exists an element
such that
is a good set.
6406536959318.
True
6406536959319.
False
A published solution is not available for this question yet.
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
and
are good sets and
then
there exists an element
such that
is a good set. The family of all good sets
satisfies the exchange property. Note that we make no assumption about
unlike the
previous question.
6406536959320.
True
6406536959321.
False
A published solution is not available for this question yet.
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
.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
.
6406536959393.
True
6406536959394.
False
A published solution is not available for this question yet.
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
.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
.
6406536959395.
True
6406536959396.
False
A published solution is not available for this question yet.
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
.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
.
6406536959397.
True
6406536959398.
False
A published solution is not available for this question yet.
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
.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
.
6406536959399.
True
6406536959400.
False
A published solution is not available for this question yet.
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
.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.
Consider the given statements and answer if they are true or false.
An adversary can provide randomized quicksort with an input array of length
that forces the
algorithm to run in
time on that input. (If you are not familiar with the
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
steps.)
6406536959351.
True
6406536959352.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
is a cluster graph.
Determine, for each statement given in the subquestion, if it is true or false.
A graph
is a cluster graph if and only if it does not have an induced path on
vertices.
6406536959365.
True
6406536959366.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is not a cluster
graph, we can immediately return YES.
6406536959367.
True
6406536959368.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is not a cluster graph, we can immediately return NO.
6406536959369.
True
6406536959370.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is a cluster graph and a vertex in
is
adjacent to at least two vertices in
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.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is a cluster graph and a vertex in
is
adjacent to at least two vertices in
which are in different cliques, then we can delete it and
decrease the parameter by
.
6406536959373.
True
6406536959374.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is a cluster graph and a vertex in
is
adjacent to some but not all vertices in a clique of
, then we can delete it and leave the
parameter unchanged.
6406536959375.
True
6406536959376.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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
is a cluster graph and a vertex in
is
adjacent to some but not all vertices in a clique of
, then we can delete it and decrease the
parameter by
.
6406536959377.
True
6406536959378.
False
A published solution is not available for this question yet.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
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.
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
and a
parameter
, does there exist a set
of at most
vertices of
such that the subgraph induced
on
is a cluster graph.
In the DISJOINT CLUSTER VERTEX DELETION problem we are given an input graph
, parameter
and a set
of vertices of
of size
such that the subgraph induced on
is a cluster
graph. We need to find if there exists a subset
of size at most
which is disjoint from
such that the subgraph induced on
is a cluster graph.
Determine, for each statement given in the subquestion, if it is true or false.
There exists a
algorithm for CLUSTER VERTEX DELETION.
6406536959383.
True
6406536959384.
False
A published solution is not available for this question yet.