Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a greedy algorithm?
Think about local versus global solutions.
Why is interval scheduling important?
Consider scenarios in classrooms or project management.
What is the main goal of a greedy algorithm?
Think about how we summarize our choices.
Selecting the earliest finishing time is a common strategy for what problem?
Reflect on the main discussion around scheduling.
Create a scenario with ten intervals and demonstrate how to apply the greedy algorithm to select non-overlapping intervals. Explain why they are optimal.
Focus on finishing times to guide your choices.
Design a set of intervals where the greedy approach leads to a less than optimal number of bookings made. Explain why that is the case.
Remember to include a counterexample.
4 more questions in this section. Enroll free to practise them all.
Enroll free