GATE CSE Dynamic Programming – Algorithms Practice Test | Set 1

Questions 41-45 of 100

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

Question 41

MCQ · Single Correct 2 mark

What is the cost recurrence for Edit Distance E[i][j] when S1[i-1] != S2[j-1]?

Answers for question 41

Question 42

MCQ · Single Correct 1 mark

What is the space complexity of standard Edit Distance DP table for strings of length m and n?

Answers for question 42

Question 43

MCQ · Single Correct 1 mark

Which algorithm solves Single-Source Shortest Paths on arbitrary graphs (including negative edge weights) in O(V * E) time?

Answers for question 43

Question 44

MCQ · Single Correct 1 mark

How many iterations of edge relaxation are performed in the main loop of Bellman-Ford for V vertices?

Answers for question 44

Question 45

MCQ · Single Correct 1 mark

In Floyd-Warshall algorithm, what is the outer loop variable k representing?

Answers for question 45
Scroll to Top