GATE CSE Dynamic Programming – Algorithms Practice Test | Set 1

Questions 1-5 of 100

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

Question 1

MCQ · Single Correct 1 mark

In Dynamic Programming, what are the two essential properties a problem must possess to be efficiently solved using DP?

Answers for question 1

Question 2

MCQ · Single Correct 1 mark

What is the time complexity of the standard Dynamic Programming solution for the 0/1 Knapsack problem with n items and knapsack capacity W?

Answers for question 2

Question 3

MCQ · Single Correct 2 mark

Why is the O(n * W) Dynamic Programming algorithm for 0/1 Knapsack classified as PSEUDO-POLYNOMIAL time?

Answers for question 3

Question 4

MCQ · Single Correct 1 mark

In 0/1 Knapsack DP table K[i][w], what does cell K[i][w] represent?

Answers for question 4

Question 5

MCQ · Single Correct 2 mark

What is the standard recurrence relation for 0/1 Knapsack K[i][w] when considering item i with weight $w_{i}$ and value $v_{i}$ (for w >= $w_{i}$)?

Answers for question 5
Scroll to Top