Comparison of the Complexity of Algorithms (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What does the best-case complexity of an algorithm represent?
What does the best-case complexity of an algorithm represent?
Minimum number of operations
What does the worst-case complexity of an algorithm represent?
What does the worst-case complexity of an algorithm represent?
Maximum number of operations
What is the worst-case complexity of Linear Search?
What is the worst-case complexity of Linear Search?
What is the average-case complexity of Binary Search?
What is the average-case complexity of Binary Search?
What data requirement does Binary Search have?
What data requirement does Binary Search have?
Data must be sorted
What is the best-case complexity of Bubble Sort?
What is the best-case complexity of Bubble Sort?
What is the worst-case complexity of Quick Sort?
What is the worst-case complexity of Quick Sort?
When does Quick Sort's worst case occur?
When does Quick Sort's worst case occur?
Pivot is smallest/largest repeatedly
What complexity does Merge Sort have in all cases?
What complexity does Merge Sort have in all cases?
What is the complexity of Selection Sort in all cases?
What is the complexity of Selection Sort in all cases?
What characteristic does Merge Sort have regarding memory?
What characteristic does Merge Sort have regarding memory?
Uses significant extra memory
What is a common mistake students make about algorithm complexity?
What is a common mistake students make about algorithm complexity?
Average case = worst case
