Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : ADVANCED ALGORITHMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Can the disk with dimensions [2,1,2] be placed above [3,2,3]?
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Can the disk with dimensions [2,2,2] be placed above [3,2,3]?
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Suppose the input consists of the following triplets: [[3, 8, 8], [2, 1, 9], [4, 1, 1], [2, 3, 6]]. What’s the answer?
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
We are given a non-empty list of N 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 1-based indexing in the
Based on the above data, answer the given subquestions.
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 1-based indexing in the
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
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?
Solution
Comprehension Passage
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?
Solution
Comprehension Passage
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?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
In which of the following scenarios will the answer be zero?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If we have one die with six sides, what are the achievable targets?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What is the value of DP[0, 0]?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What is the complexity of this algorithm?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
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.
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
Solution
Comprehension Passage
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.
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.
Solution
Comprehension Passage
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.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
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.
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.
Solution
Comprehension Passage
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.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
The ILP is guaranteed to be feasible.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
The final answer is
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Shape
Thickness [ / ]
3
All colors