← Greedy Algorithms Quiz: all 8 questions
Greedy Algorithms Quiz · Question 1 of 8
A greedy algorithm…
A greedy algorithm…
- A.Makes the best-looking choice at each step and never revisits it
- B.Tries every possible combination
- C.Always gives the optimal answer
- D.Requires recursion
Answer & explanation
Correct answer: Makes the best-looking choice at each step and never revisits it
Fast and simple — but only correct when local choices lead to a global optimum.
Can you get the rest right without peeking?
Take the timed Greedy Algorithms Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →