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.
Define input size in relation to algorithms.
Think about how you measure data for sorting or searching.
What is the worst case for a linear search in an unsorted array?
Consider how many items need to be checked.
What does worst case analysis measure?
Think about the definition of worst case.
True or False? Average case analysis is easier to compute than worst case analysis.
Which analysis is usually more straightforward?
Consider two sorting algorithms: one with an average case of O(n log n) and another with a worst case of O(n^2). Describe a scenario where the better average case algorithm might perform worse in execution.
Think about how the size of the dataset affects performance.
Given an unsorted list of numbers, develop an algorithm to find the maximum number. Analyze its worst case and average case performance.
What happens if the maximum number is always at the end?
4 more questions in this section. Enroll free to practise them all.
Enroll free