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 what it means to take the best option right now.
In the interval scheduling problem, what is the goal?
Consider the constraints set by overlapping time slots.
What is a characteristic of greedy algorithms?
Think about the nature of decisions made at each stage.
True or False: Choosing the booking with the earliest start time is always optimal.
Reflect on how overlaps can affect choices.
Create a new algorithm for interval scheduling that selects bookings not only by finish time but also considers potential overlaps in a different way.
Look into grouping similar bookings based on their time ranges.
Prove that your algorithm produces an optimal solution by comparing it with another known successful greedy algorithm.
Case studies can help corroborate how different paths lead to the same positive end.
5 more questions in this section. Enroll free to practise them all.
Enroll free