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

📚Flashcards
Merge 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

Approach used by Merge Sort

Divide-and-conquer

3 main steps of Merge Sort

Divide, Conquer, Merge

What the Divide step does in Merge Sort

Split the array into two halves

What the Conquer step does in Merge Sort

Recursively sort each half

What the Merge step does in Merge Sort

Combine two sorted halves into single sorted array

Merge Sort time complexity (best, worst, average)

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

Merge Sort space complexity

O(n)O(n)

Is Merge Sort stable

Yes

What 'stable' means for sorting algorithms

Maintains relative order of equal elements

Base case for Merge Sort recursion

Array size is 1 or less

Memory requirement of Merge Sort

Requires additional memory for temporary arrays

Merge Sort effectiveness on large data sets

Particularly effective/works well

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.