Dynamic Programming In Data Structures - Study Mode

[#176] What is the edit distance between the strings "abcd" and "acbd" when the allowed operations are insertion, deletion and substitution?
Correct Answer

(B) 2

[#177] In the dynamic programming implementation of the assembly line scheduling problem, how many lookup tables are required?
Correct Answer

(C) 2

[#178] What is the space complexity of the recursive implementation used to find the nth fibonacci term?
Correct Answer

(A) O(1)

[#179] Find the length of the longest increasing subsequence for the given sequence: {-10, 24, -9, 35, -21, 55, -41, 76, 84}
Correct Answer

(D) 6

[#180] In which of the following cases will the edit distance between two strings be zero?
Correct Answer

(C) When the two strings are equal