Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a greedy algorithm?
Consider what type of choices it emphasizes.
Name one greedy algorithm discussed in class.
Think of algorithms used for finding the shortest path.
What is the main objective of greedy algorithms?
Think about what drives decisions in greedy approaches.
True or False: Greedy algorithms are guaranteed to find the global optimum in all problems.
Consider the conditions under which greedy strategies succeed.
You are organizing a conference with 8 sessions, where each session overlaps with others. Given the start and end times, outline a schedule that maximizes the number of sessions using a greedy algorithm.
Remember to focus on the session that finishes earliest.
Given a set of intervals with various overlaps, can you propose an alternative method to a greedy algorithm that might offer a better solution? Discuss possible algorithms.
Think of how you could assess every interval's choices comprehensively rather than greedily.
6 more questions in this section. Enroll free to practise them all.
Enroll free