糖心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, 228.79 KB
pptx, 228.79 KB
docx, 91.31 KB
docx, 91.31 KB
pdf, 130.6 KB
pdf, 130.6 KB
docx, 91.65 KB
docx, 91.65 KB
pdf, 136.66 KB
pdf, 136.66 KB
docx, 90.07 KB
docx, 90.07 KB
jpg, 143.37 KB
jpg, 143.37 KB

Circular queues are where a lot of students start to wobble, because two pointers are moving and both of them wrap round. This lesson takes it slowly, with clear diagrams and a trace that shows exactly when TailPointer jumps back to 0.

It follows on naturally from the Stacks lesson, and the code uses the same style: a fixed-size array, global pointers and -1 for empty.

What鈥檚 included

  • 16-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 version that uses % for the wrap-around)
  • Student worksheet (39 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

  • A coffee-shop starter to introduce FIFO
  • What a queue is, with a wrap-around diagram
  • Key vocabulary: enqueue, dequeue, pointers and wrap-around
  • Setting up the queue, then Enqueue and Dequeue step by step
  • A spot-the-bug slide on missing the wrap-around
  • A trace-table mini task with answers
  • Stack versus queue 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.