MauryaHub PYQ Practice

Advanced Algorithms · End Term · May 2024 · AN

Advanced Algorithms · End Term · May 2024 AN

← 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 / 54 published solutions

Question 194 MCQ · 1.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Can the disk with dimensions [2,1,2] be placed above [3,2,3]?
6406533044876.
Yes
6406533044877.
No

A published solution is not available for this question yet.

Report a correction for Q194

Question 195 MCQ · 1.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Can the disk with dimensions [2,2,2] be placed above [3,2,3]?
6406533044878.
Yes
6406533044879.
No

A published solution is not available for this question yet.

Report a correction for Q195

Question 196 NAT · 2.0 marks

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 subquestions. 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?

A published solution is not available for this question yet.

Report a correction for Q196

Question 197 MCQ · 2.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044881.Source diagram or notation
6406533044882.Source diagram or notation
6406533044883.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q197

Question 198 MCQ · 2.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044884.Source diagram or notation
6406533044885.Source diagram or notation
6406533044886.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q198

Question 199 MCQ · 2.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044887.Source diagram or notation
6406533044888.Source diagram or notation
6406533044889.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q199

Question 200 MCQ · 2.0 marks

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 subquestions. Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044890.Source diagram or notation
6406533044891.Source diagram or notation
6406533044892.Source diagram or notation
6406533044893.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q200

Question 201 MCQ · 1.0 marks

Source diagram or notation
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?
6406533044894.
0
6406533044895.
1
6406533044896.
2
6406533044897.
3

A published solution is not available for this question yet.

Report a correction for Q201

Question 202 MCQ · 1.0 marks

Source diagram or notation
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?
6406533044898.
10
6406533044899.
15
6406533044900.
17
6406533044901.
18

A published solution is not available for this question yet.

Report a correction for Q202

Question 203 NAT · 1.0 marks

Source diagram or notation
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?

A published solution is not available for this question yet.

Report a correction for Q203

Question 204 MSQ · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
In which of the following scenarios will the answer be zero?
6406533044903.
The target sum is less than the number of dice.
6406533044904.
The target sum is greater than SN , the product of the number of dice and the number of sides.
6406533044905.
The target sum is not divisible by the number of dice.
6406533044906.
The target sum is equal to the number of dice.

A published solution is not available for this question yet.

Report a correction for Q204

Question 205 MCQ · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If we have one die with six sides, what are the achievable targets?
6406533044907.
0, 1, 2, 3, 4, 5, 6
6406533044908.
1, 2, 3, 4, 5, 6
6406533044909.
1, 2, 3, 4, 5, 6, 7
6406533044910.
0, 1, 2, 3, 4, 5, 6, 7

A published solution is not available for this question yet.

Report a correction for Q205

Question 206 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044911.Source diagram or notation
6406533044912.Source diagram or notation
6406533044913.Source diagram or notation
6406533044914.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q206

Question 207 NAT · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
What is the value of DP[0, 0]?

A published solution is not available for this question yet.

Report a correction for Q207

Question 208 NAT · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q208

Question 209 NAT · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q209

Question 210 NAT · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q210

Question 211 MCQ · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
What is the complexity of this algorithm?
6406533044919.Source diagram or notation
6406533044920.Source diagram or notation
6406533044921.Source diagram or notation
6406533044922.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q211

Question 212 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044937.
Yes
6406533044938.
No

A published solution is not available for this question yet.

Report a correction for Q212

Question 213 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044939.
Yes
6406533044940.
No

A published solution is not available for this question yet.

Report a correction for Q213

Question 214 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044941.
Yes
6406533044942.
No

A published solution is not available for this question yet.

Report a correction for Q214

Question 215 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044943.
Yes
6406533044944.
No

A published solution is not available for this question yet.

Report a correction for Q215

Question 216 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044945.
Yes
6406533044946.
No

A published solution is not available for this question yet.

Report a correction for Q216

Question 217 MCQ · 2.0 marks

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
6406533044958.
TRUE
6406533044959.
FALSE

A published solution is not available for this question yet.

Report a correction for Q217

Question 218 MCQ · 2.0 marks

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.
6406533044960.
TRUE
6406533044961.
FALSE

A published solution is not available for this question yet.

Report a correction for Q218

Question 219 MCQ · 2.0 marks

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.
Source diagram or notation
6406533044962.
TRUE
6406533044963.
FALSE

A published solution is not available for this question yet.

Report a correction for Q219

Question 220 MCQ · 2.0 marks

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.
6406533044964.
TRUE
6406533044965.
FALSE

A published solution is not available for this question yet.

Report a correction for Q220

Question 221 MCQ · 2.0 marks

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.
6406533044966.
TRUE
6406533044967.
FALSE

A published solution is not available for this question yet.

Report a correction for Q221

Question 222 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044975.Source diagram or notation
6406533044976.Source diagram or notation
6406533044977.Source diagram or notation
6406533044978.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q222

Question 223 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044979.Source diagram or notation
6406533044980.Source diagram or notation
6406533044981.Source diagram or notation
6406533044982.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q223

Question 224 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044983.Source diagram or notation
6406533044984.Source diagram or notation
6406533044985.Source diagram or notation
6406533044986.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q224

Question 225 NAT · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q225

Question 226 NAT · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q226

Question 227 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044968.Source diagram or notation
6406533044969.Source diagram or notation
6406533044970.Source diagram or notation
6406533044971.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q227

Question 228 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
The final answer is
6406533044972.Source diagram or notation
6406533044973.Source diagram or notation
6406533044974.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q228

Question 229 MCQ · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044931.
TRUE
6406533044932.
FALSE

A published solution is not available for this question yet.

Report a correction for Q229

Question 230 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044933.
TRUE
6406533044934.
FALSE

A published solution is not available for this question yet.

Report a correction for Q230

Question 231 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044935.
TRUE
6406533044936.
FALSE

A published solution is not available for this question yet.

Report a correction for Q231

Question 232 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044989.
TRUE
6406533044990.
FALSE

A published solution is not available for this question yet.

Report a correction for Q232

Question 233 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044991.
TRUE
6406533044992.
FALSE

A published solution is not available for this question yet.

Report a correction for Q233

Question 234 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044993.
TRUE
6406533044994.
FALSE

A published solution is not available for this question yet.

Report a correction for Q234

Question 235 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044995.
TRUE
6406533044996.
FALSE

A published solution is not available for this question yet.

Report a correction for Q235

Question 236 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044997.
TRUE
6406533044998.
FALSE

A published solution is not available for this question yet.

Report a correction for Q236

Question 237 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533044999.
TRUE
6406533045000.
FALSE

A published solution is not available for this question yet.

Report a correction for Q237

Question 238 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533045001.
TRUE
6406533045002.
FALSE

A published solution is not available for this question yet.

Report a correction for Q238

Question 239 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533045003.
TRUE
6406533045004.
FALSE

A published solution is not available for this question yet.

Report a correction for Q239

Question 240 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533045005.
TRUE
6406533045006.
FALSE

A published solution is not available for this question yet.

Report a correction for Q240

Question 241 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406533045007.
TRUE
6406533045008.
FALSE

A published solution is not available for this question yet.

Report a correction for Q241

Question 242 MCQ · 3.0 marks

Source diagram or notation
6406533044923.
Neither algorithm always correctly determines whether or not a given tree graph has a perfect matching.
6406533044924.
Both algorithms always correctly determine whether or not a given tree graph has a perfect matching.
6406533044925.
Algorithm B always correctly determines whether or not a given tree graph has a perfect matching; algorithm A does not.
6406533044926.
Algorithm A always correctly determines whether or not a given tree graph has a perfect matching; algorithm B does not.

A published solution is not available for this question yet.

Report a correction for Q242

Question 243 MCQ · 3.0 marks

Source diagram or notation
6406533044947.Source diagram or notation
6406533044948.Source diagram or notation
6406533044949.Source diagram or notation
6406533044950.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q243

Question 244 MCQ · 3.0 marks

Source diagram or notation
6406533044951.Source diagram or notation
6406533044952.Source diagram or notation
6406533044953.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q244

Question 245 MCQ · 3.0 marks

Source diagram or notation
6406533044954.Source diagram or notation
6406533044955.Source diagram or notation
6406533044956.Source diagram or notation
6406533044957.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q245

Question 246 MCQ · 3.0 marks

Source diagram or notation
6406533045009.
Yes, this is true
6406533045010.
No, the Careful 5-coloring problem is in P.
6406533045011.
No, the Careful 5-coloring problem is NP-hard, but this has to be shown by reducing the problem to the standard 5COLOR problem.

A published solution is not available for this question yet.

Report a correction for Q246

Question 247 MCQ · 2.0 marks

Source diagram or notation
6406533044927.Source diagram or notation
6406533044928.Source diagram or notation
6406533044929.Source diagram or notation
6406533044930.Source diagram or notation
      **DL(CV)** **Section Id :** 64065364138 **Section Number :** 10 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 25 **Number of Questions to be attempted :** 25 **Section Marks :** 50 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q247