DSA_Unit4

DSA_Unit4

University

25 Qs

quiz-placeholder

Similar activities

DAA Quiz AIML '26

DAA Quiz AIML '26

University

25 Qs

Algorithm questions

Algorithm questions

12th Grade - University

20 Qs

Algorithm Exam

Algorithm Exam

University

20 Qs

DSA_Unit2

DSA_Unit2

University

25 Qs

Algorithms final

Algorithms final

University

26 Qs

Graph Data Structure - 01

Graph Data Structure - 01

University

26 Qs

Dynamic Programming and Greedy Techniques Quiz

Dynamic Programming and Greedy Techniques Quiz

University

26 Qs

Design and Analysis of Algorithm

Design and Analysis of Algorithm

University

30 Qs

DSA_Unit4

DSA_Unit4

Assessment

Quiz

Computers

University

Medium

Created by

Amal Redge

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithmic paradigm follows the approach of making the locally optimal choice at each stage with the hope of finding a global optimum?

Dynamic Programming

Divide and Conquer

Greedy Algorithm

Backtracking

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Greedy Algorithm is useful for which of the following problems?

0/1 Knapsack Problem

Fractional Knapsack Problem

Longest Common Subsequence

Matrix Chain Multiplication

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems can be solved efficiently using a greedy algorithm?

All-Pairs Shortest Path

Job Sequencing with Deadlines

Longest Common Subsequence

Traveling Salesman Problem

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Fractional Knapsack problem, the time complexity of the greedy approach is:

O(n)

O(n²)

O(n log n)

O(2ⁿ)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about the 0/1 Knapsack problem?

It can be solved optimally using the greedy method.

It requires dynamic programming for an optimal solution.

It can be solved in polynomial time using a greedy approach.

It does not have a solution.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems does NOT use a greedy approach?

Huffman Coding

Kruskal’s Algorithm

Bellman-Ford Algorithm

Prim’s Algorithm

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Job Sequencing with Deadlines, the main objective is to:

Maximize the number of jobs scheduled

Minimize the number of jobs scheduled

Minimize the completion time of jobs

Maximize profit by scheduling jobs within their deadlines

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?