Merge Sort, Knowledge Organiser

Knowledge Organiser: Merge Sort

Key Terms

  • Merge sort: Splits the list into single items, then merges them back in order
  • Divide and conquer: Splitting a problem into smaller parts and solving each part
  • Merge step: Combines two sorted lists into one sorted list

Must-Know Facts

  • Merge sort has two stages: divide, then merge
  • Splitting stops when every list holds one item
  • The merge step compares the front items of two sorted lists and takes the smaller
  • An 8 item list is divided three times to reach single items
  • Merge sort is much faster than bubble sort on large lists
  • Its main drawback is the extra memory needed for the merged lists

Key Concepts

  • Split, split, split to single items, then merge in order
  • Each merge builds a bigger sorted list from two smaller sorted lists
  • Bubble sort and insertion sort work in place, but merge sort does not
  • For a large list, merge sort is the better choice despite the memory cost
  • In exams: show every divide step and every merge step

Common Mistakes

  • Swapping neighbours: That is bubble sort. Merge sort splits and merges
  • Taking the larger front item first: For ascending order the merge step takes the smaller item
  • Saying merge sort needs no extra memory: It needs space to hold the lists it merges
  • Forgetting to show the divide stage: Marks are given for both the divide and the merge steps
  • Saying merge sort is always best: It is faster on large lists, but for a short list a simple sort is fine and uses less memory

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.