GATE CSE Dynamic Programming – Algorithms Practice Test | Set 1

Questions 31-35 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 31

MCQ · Single Correct 1 mark

What is the recurrence for 0/1 Knapsack K[i][w] when weight $w_{i}$ > w?

Answers for question 31

Question 32

MCQ · Single Correct 2 mark

In Unbounded Knapsack (where items have infinite supply), what is the DP recurrence for K[w]?

Answers for question 32

Question 33

MCQ · Single Correct 1 mark

What is the time complexity of Unbounded Knapsack for capacity W and n items?

Answers for question 33

Question 34

MCQ · Single Correct 1 mark

Which of the following Dynamic Programming problems has a polynomial-time algorithm in the standard input-size model (rather than a pseudo-polynomial one)?

Answers for question 34

Question 35

MCQ · Single Correct 1 mark

What is the number of subproblems in the DP formulation of Matrix Chain Multiplication for n matrices?

Answers for question 35
Scroll to Top