Comparison of the Complexity of Algorithms (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
Best case complexity
Best case complexity
Minimum number of operations
Average case complexity
Average case complexity
Expected performance across all possible inputs
Worst case complexity
Worst case complexity
Maximum number of operations
Linear Search worst case
Linear Search worst case
Binary Search average case
Binary Search average case
Binary Search data requirement
Binary Search data requirement
Requires sorted data
Bubble Sort best case
Bubble Sort best case
Merge Sort worst case
Merge Sort worst case
Quick Sort worst case
Quick Sort worst case
Quick Sort worst case occurs when
Quick Sort worst case occurs when
Pivot is smallest or largest element repeatedly
Selection Sort all cases complexity
Selection Sort all cases complexity
Insertion Sort best case
Insertion Sort best case
Why Bubble Sort best case is
Why Bubble Sort best case is
Data already sorted, only one pass needed
What affects algorithm performance
What affects algorithm performance
Input characteristics: sorted, unsorted, reversed, random data
Merge Sort space complexity issue
Merge Sort space complexity issue
Requires significant extra memory
