Quick Sort (OCR A-Level Computer Science): Flashcards

📚Flashcards
Quick Sort
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Quick Sort strategy

Divide-and-conquer

Quick Sort algorithm type

Comparison-based sorting

Quick Sort pivot purpose

Splits array: smaller left, larger right

Quick Sort in-place meaning

Minimal additional memory required

Quick Sort best/avg case complexity

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

Quick Sort worst case complexity

O(n2)O(n^2)

Quick Sort worst case trigger

Pivot divides array poorly

Quick Sort first step

Choose a pivot

Quick Sort second step

Partition array around pivot

Quick Sort third step

Recursively apply to sub-arrays

Common Quick Sort pivot choices

First, last, or middle element

Improve Quick Sort pivot: strategies

Random pivot or median-of-three

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 Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

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

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