Sorting and searching bingo
Exercise and reference answers
- Clues and terms
- Clue
- One full iteration through every element of a list.
- Item
- Pass
- Clue
- Two elements exchange their positions.
- Item
- Swap
- Clue
- Compares adjacent pairs and swaps the unordered ones.
- Item
- Bubble sort
- Clue
- Each pass picks the smallest of what is left.
- Item
- Selection sort
- Clue
- Puts each element into its suitable place.
- Item
- Insertion sort
- Clue
- The item a search is looking for.
- Item
- Key
- Clue
- Exhaustive, comparing every element in turn.
- Item
- Linear search
- Clue
- Compares against the middle of a sorted list.
- Item
- Binary search
- Clue
- The extra time sorting costs before searching.
- Item
- Overhead
- Instructions
- Read each clue and tap the term it describes.
Explanation
_Source: syllabus Computer Science, Ch 5 'Sorting' and Ch 6 'Searching'_