
Greedy Algorithms Quiz

Quiz
•
Other
•
University
•
Medium
Sanzana Karim Lora
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University