Dynamic Programming In Data Structures - Study Mode

[#116] In the brute force implementation to find the longest increasing subsequence, all the subsequences of a given sequence are found. All the increasing subsequences are then selected and the length of the longest subsequence is found. What is the time complexity of this brute force implementation?
Correct Answer

(D) O(2 n )

[#117] Consider the expression T & F ∧ T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?
Correct Answer

(C) 2

[#118] What is the sum of each of the balanced partitions for the array {5, 6, 7, 10, 3, 1}?
Correct Answer

(A) 16

[#119] If an optimal solution can be created for a problem by constructing optimal solutions for its subproblems, the problem possesses . . . . . . . . property.
Correct Answer

(B) Optimal substructure

[#120] Consider the following array: {1, 3, 5, 8, 9, 2, 6, 7, 6} What is the minimum number of jumps required to reach the end of the array?
Correct Answer

(C) 3