Sorting Algorithms – Bubble and Merge (AQA A-Level Computer Science): Flashcards

📚Flashcards
Sorting Algorithms – Bubble and Merge
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Sorting (definition)

Arranging data in a specific sequence/order

Bubble sort mechanism

Compares adjacent elements, swaps if in wrong order

Origin of 'bubble sort' name

Larger values 'bubble up' to one end

Result after 1 bubble sort pass

Largest value moves to correct position at end

CompletedFlag purpose (bubble sort)

Tracks if swaps occurred; allows early termination

Merge sort strategy

Divide & conquer: split to singles, merge back sorted

Recursion (definition)

When a subroutine calls itself

Why merge sort is efficient

Repeatedly halves lists, reducing comparisons needed

Memory: bubble vs merge sort

Bubble works in-place; merge needs extra memory

When to use bubble vs merge

Bubble: small/limited memory; Merge: large data

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

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