Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Greedy Matching
Why this order
Check Your Understanding
Why do we match the smallest cookie to the least greedy child first?
- A.It is faster to process
- B.Using a large cookie on an easy child wastes potential for harder children
- C.Children prefer smaller cookies
- D.It simplifies the implementation