Merge Sort Flashcards

1️⃣ Familiarise yourself with the flashcards:

  • Look through all the flashcards to see what's on both sides.
  • Make sure you understand the information on each card. If something's unclear, click the link to the revision notes at the bottom of the page for more details.

2️⃣ Test yourself:

  • Look at the question or prompt on each card and try to remember the answer before flipping it over.
  • Check the answer and make a note of any cards you find challenging and need to go over more.

3️⃣ Consistently Review and Practice:

  • Use spaced repetition: spend more time on the cards you struggle with and go over them more often.
  • Regularly review all the flashcards to help you better understand and retain the information over time.

Note: We may include questions that have multiple correct answers. It's useful to remember specific examples to understand these concepts better.

PERSONALISED 1-TO-1 TUTORING

Need more help on this topic? Get 1-to-1 support

Get support with clear explanations, practice and feedback (Ages 5 to 16).

  • DBS-checked tutors
  • Flexible times
  • Parents can be updated

Want an ad-free experience? Subscribe to remove ads

What is merge sort?

A sorting algorithm that splits a list and then merges it in order.

What are the two main stages of merge sort?

Split the list into halves, then merge the sublists in order.

When does the splitting stop in merge sort?

When each sublist has one item. A single item is already sorted.

How does the merge step combine two sorted lists?

Compare the first items. Move the smaller into a new list. Repeat until both lists are empty.

What happens if one sublist runs out during a merge?

Copy all the remaining items from the other sublist into the new list.

What strategy does merge sort use?

Divide and conquer: split the list, sort parts, then join them.

Is merge sort in-place?

No. It needs extra memory about the size of the list.

Is merge sort a stable sort?

Yes. Equal items keep their original order.

What is the time complexity of merge sort?

O(n log n) in the best, average, and worst cases.

Does merge sort use recursion?

Yes. It calls itself to sort each half of the list.

Does the input order affect merge sort's speed much?

No. It splits and merges in the same pattern each time.

What kinds of data can merge sort handle?

Any data you can compare, such as numbers or strings.