Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does it mean for an algorithm to be correct?
Think about output consistency.
Define asymptotic complexity.
Focus on growth behavior.
What is asymptotic complexity used for?
Consider how we compare algorithms.
True or False: Greedy algorithms always guarantee the best solution.
Think about their local vs global approach.
Propose a divide and conquer solution for finding the maximum element in an unsorted array. Explain how it would work.
Think about dividing the problem into two smaller arrays.
Create a scenario where a greedy algorithm would fail to find the optimal solution. Explain why it fails.
Consider the context of making change.
5 more questions in this section. Enroll free to practise them all.
Enroll free