Comparison of the Complexity of Algorithms (OCR A-Level Computer Science): Quizzes

📚Quizzes
Comparison of the Complexity of Algorithms
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What does the best-case complexity of an algorithm represent?

Minimum number of operations

What does the worst-case complexity of an algorithm represent?

Maximum number of operations

What is the worst-case complexity of Linear Search?

O(n)O(n)

What is the average-case complexity of Binary Search?

O(log⁡n)O(\log n)

What data requirement does Binary Search have?

Data must be sorted

What is the best-case complexity of Bubble Sort?

O(n)O(n)

What is the worst-case complexity of Quick Sort?

O(n2)O(n^2)

When does Quick Sort's worst case occur?

Pivot is smallest/largest repeatedly

What complexity does Merge Sort have in all cases?

O(nlog⁡n)O(n \log n)

What is the complexity of Selection Sort in all cases?

O(n2)O(n^2)

What characteristic does Merge Sort have regarding memory?

Uses significant extra memory

What is a common mistake students make about algorithm complexity?

Average case = worst case

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Flashcards by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.