Search Header Logo

II CSE B DP

Authored by Dr.L.Josephine Dept

Computers

University

Used 2+ times

II CSE B DP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Optimal substructure

Overlapping subproblems

Greedy approach

Both optimal substructure and overlapping subproblems

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Overlapping subproblems

Optimal substructure

Memoization

Greedy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Dynamic programming

Greedy

Divide and conquer

Recursion

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a top-down approach of dynamic programming is applied to a problem, it usually _____________

Decreases both, the time complexity and the space complexity

Decreases the time complexity and increases the space complexity

Increases the time complexity and decreases the space complexity

Increases both, the time complexity and the space complexity

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following standard algorithms is not Dynamic Programming based?

Bellman–Ford Algorithm for single source shortest path

Floyd Warshall Algorithm for all pairs shortest paths

0-1 Knapsack problem

Prim’s Minimum Spanning Tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems should be solved using dynamic programming?

Merge sort

Binary search

Longest common subsequence

Quicksort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dijkstra’s Algorithm is the prime example for ___________

Dynamic programming

Back tracking

Branch and bound

Greedy algorithm

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?