COMPUTING 11–14 · ALGORITHMS

Search & Sort Studio

Can you find a value efficiently, and can you explain how a list becomes sorted? Explore each decision one step at a time.

Learn

Algorithms should be explainable

Linear search checks items from the beginning. Binary search repeatedly halves a sorted search range. Bubble sort compares neighbouring values and swaps those in the wrong order. These demonstrations show the actions rather than simply giving the answer.

All numbers are teaching examples. Binary search only works correctly on the sorted list supplied here.

Practise · search

Find a number

Select Step to begin.

Comparisons: 0

Build · sorting

Trace bubble sort

The original list is 7, 3, 9, 1, 5, 8. Compare neighbours and swap when needed.

Interactive display:

What would you test?

Ordinary case

Search for a value near the middle.

Boundary case

Search for the first and last values.

Missing case

Search for a number that is not in the list.

No login required. Your answers and button presses are not transmitted to TutorSyntax.

Independent TutorSyntax educational material, inspired by the wider UK computing curriculum. Not an official examination-board or government qualification resource.