wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Dynamic Programming_CSE

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is/are property/properties of a dynamic programming problem?

a)

Optimal substructure

b)

Overlapping subproblems

c)

Greedy approach

d)

d) Both optimal substructure and overlapping subproblems

2.

If an optimal solution can be created for a problem by constructing optimal solutions for its subproblems, the problem possesses ____________ property.

a)

Overlapping subproblems


b)

Optimal substructure

c)

Memoization

d)

Greedy

3.

If a problem can be broken into subproblems which are reused several times, the problem possesses ____________ property.

a)

Overlapping subproblems


b)

Optimal substructure

c)

Memoization

d)

Greedy

4.

If a problem can be solved by combining optimal solutions to non-overlapping problems, the strategy is called _____________

a)

Dynamic programming

b)

Greedy

c)

Divide and conquer

d)

Recursion

5.

When dynamic programming is applied to a problem, it takes far less time as compared to other methods that don’t take advantage of overlapping subproblems.

a)

True

b)

False

6.

A greedy algorithm can be used to solve all the dynamic programming problems.

a)

True

b)

False

7.

Which of the following problems is NOT solved using dynamic programming?

a)

0/1 knapsack problem


b)

Matrix chain multiplication problem

c)

Edit distance problem

d)

Fractional knapsack problem

8.

Dynamic programming divides problems into a number of

a)

conflicting objective functions.

b)

decision stages.

c)

unrelated constraints.

d)

policies.

9.

The relationship between stages of a dynamic programming problem is called a(n)

a)

state.

b)

random variable.

c)

node.

d)

Transformation.

10.

In dynamic programming, the output to stage n become the input to

a)

stage n-1.

b)

stage n itself.

c)

stage n+1.

d)

stage n-2.