GATE CSE Dynamic Programming – Algorithms Practice Test | Set 1

Questions 6-10 of 100

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

Question 6

MCQ · Single Correct 2 mark

How can the auxiliary space complexity of 0/1 Knapsack DP be optimized from O(n * W) down to O(W)?

Answers for question 6

Question 7

MCQ · Single Correct 2 mark

In Matrix Chain Multiplication, given a sequence of matrices <A1, A2, A3, A4> with dimensions 10x30, 30x5, 5x60, and 60x8, what is the minimum number of scalar multiplications required?

Answers for question 7

Question 8

MCQ · Single Correct 1 mark

What is the time complexity of the Dynamic Programming algorithm for Matrix Chain Multiplication of n matrices?

Answers for question 8

Question 9

MCQ · Single Correct 2 mark

What is the recurrence relation for the minimum scalar multiplications m[i, j] in Matrix Chain Multiplication for matrices $A_{i}$ through $A_{j}$ with dimension array p?

Answers for question 9

Question 10

MCQ · Single Correct 2 mark

What is the length of the Longest Common Subsequence (LCS) of strings X = 'ABCBDAB' and Y = 'BDCABA'?

Answers for question 10
Scroll to Top