糖心Vlog

Please consent to cookies to view content.

' ); iframeDoc.close(); } } } } } const observer = new MutationObserver(switchSrc); observer.observe(document.documentElement, { childList: true, subtree: true, }); })();

糖心Vlog

Last updated

28 November 2026

pptx, 231 KB
pptx, 231 KB
docx, 91.01 KB
docx, 91.01 KB
pdf, 114.56 KB
pdf, 114.56 KB
docx, 91.39 KB
docx, 91.39 KB
pdf, 126.45 KB
pdf, 126.45 KB
docx, 89.9 KB
docx, 89.9 KB
jpg, 148.47 KB
jpg, 148.47 KB

Linear search is usually the first algorithm students meet in Paper 4, and it鈥檚 the perfect place to build good habits. This lesson gets them writing it properly in Python, using both a for loop and a while loop with a Found flag, which is the version mark schemes love.

Students also learn to count comparisons and talk about best and worst cases, so they鈥檙e ready for binary search and Big O later on.

What鈥檚 included

  • 15-slide editable teacher PowerPoint, with speaker notes on every slide
  • Python starter code with guided TODOs and the full tested solution, in a Word file ready to copy into your editor (including a FindAll extension)
  • Student worksheet (37 marks) in Word and PDF: key terms, a trace table, fill-the-gap code, spot-the-errors and exam-style questions
  • Full answer key in Word and PDF

How the lesson runs

  • Starter poll on finding a name in a class register
  • What a linear search is, with a worked visual
  • Key vocabulary, including best and worst case
  • The for-loop and while-loop versions, step by step
  • A spot-the-bug slide on returning -1 too early
  • A trace-table mini task with answers
  • Best, worst and average case comparison
  • A coding task, exam-style question with mark scheme, and exit ticket

Written for Cambridge International AS & A Level Computer Science (9618), Paper 4 Practical, and pitched at A Level (Year 13). Everything is editable, so you can adapt it for your own classes.

Please leave a review if you find it useful. It really helps!

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

to let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.