This study notes covers Exam Tips within Linear Search for GCSE Computer Science. Revise Linear Search in 3.1 Fundamentals of Algorithms for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic shows up very often in GCSE exams, so students should be able to explain it clearly, not just recognise the term. It is section 7 of 8 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Exam Tips
- Binary requirement: ALWAYS mention data must be sorted
- Show your working: When tracing binary search, show the midpoint at each step
- Common mistake: Saying binary is "always better" - linear works on unsorted data
Practice questions for Linear Search
How does a linear search work?
Describe how a linear search works on a list of n items. [3 marks]
Quick recall flashcards
What does linear search do?
Checks each item from start to end until found
What does binary search require?
Data must be sorted