Pearson Edexcel GCSE Computer Science (1CP2)Specification point 1.2.7

Edexcel 1CP2 1.2.7: Fitness for purpose and efficiency

The free BugBot lesson that teach this point, a robot to try it on, and the past-paper questions that test it.

What it covers

Bubble sort and insertion sort are simple but slow on big lists. Merge sort uses a cleverer idea: split the list into tiny pieces that are trivially sorted, then merge sorted pieces together, again and again, until one sorted list is left. It is much faster on big lists, and the idea behind it, divide and conquer, is one of the most important in computing. This lesson also compares all the algorithms in the module.

  • Merging two sorted lists
  • Splitting and merging
  • Comparing the sorts
  • Choosing an algorithm
Read the free lesson (20 min)

Or do it in the simulator, with tasks that mark themselves

Lessons that teach it

  1. F5.9 Merge sort and comparing algorithms Algorithms
    Splitting and merging, and choosing between the searches and sorts.

Try it on a robot

The task from F5.9 Merge sort and comparing algorithms, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is Edexcel's own document; this page says which of our lessons teach point 1.2.7 and is not endorsed by the board.