Printable worksheet ยท 4 of 4
A search needs a stopping rule - Paper 4
Read the information, then answer the questions. An adult may read the instructions aloud. Show your working where asked.
Read before answering
List in stored order: [12,5,1,7]. Linear search checks left to right and stops at the FIRST match, or reports absence after the last item. Count one comparison per checked item; positions here start at 1. No sorted order is promised. Search first for 1, then separately for 99.
Worksheet preview
This exercise is included in the paid course. Full-course fee: GBP 200.00 once. Register and enrol to complete all course exercises and download the course PDFs. Access begins after payment is confirmed.
Already registered? Sign in