Greedy Algorithms Quiz

Greedy Algorithms Quiz

University

44 Qs

quiz-placeholder

Similar activities

Accounting Plus (1st exam)

Accounting Plus (1st exam)

University

40 Qs

PSY THEORIES: CHAPT 4

PSY THEORIES: CHAPT 4

University

43 Qs

DIESEL POWER PLANT

DIESEL POWER PLANT

University

39 Qs

Economics Cumulative Review

Economics Cumulative Review

KG - University

48 Qs

Power & Privilege Exercise

Power & Privilege Exercise

University

40 Qs

Aptitude Test 9 (10th July 2021)

Aptitude Test 9 (10th July 2021)

University

46 Qs

LAP 4 Cardiac Review

LAP 4 Cardiac Review

11th Grade - University

48 Qs

Quants

Quants

University

40 Qs

Greedy Algorithms Quiz

Greedy Algorithms Quiz

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Sanzana Karim Lora

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the greedy coin change algorithm to always produce an optimal solution, what must be true about the coin denominations?

Arithmetic progression

Geometric progression

Greedy choice property (canonical set)

Prime numbers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of greedy coin change assuming sorted coins?

O(n²)

O(n log n)

O(n)

O(1)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is FALSE about greedy coin change?

Always minimal coins for any coin set

Picks largest coin possible each step

May fail for some coin sets

Efficient in time complexity

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using coins {25,10,5,1}, how many coins does greedy pick to make 30?

3

2

4

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does the greedy coin change fail?

Coins {1,3,4}, amount 6

Coins {1,5,10}, amount 15

Coins {1,2,5,10}, amount 7

Coins {1,10,25}, amount 35

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If coin denominations are unsorted, what is the impact?

No effect

May not pick largest coin first

Algorithm runs faster

Algorithm is always incorrect

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Greedy coin change picks coins in what order?

Ascending by value

Descending by value

Random order

Based on frequency

Create a free account and access millions of resources

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?