Office Hours:
Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline:+852 6828 1809
Instant Support:
+852 9061 3106
P3 Term 2 | Computing: Algorithms – Three Features, Sorting Comparisons and Binary Search | Tutor Lesson Plan | 45-minute flow, script, common errors, practice with answers
P3 Term 2 | Computing: Algorithms – Three Features, Sorting Comparisons and Binary Search | Tutor Lesson Plan | 45-minute flow, script, common errors, practice with answers
P3 pupils say find the answer without steps. This lesson uses three features, two searches and a comparison count.
Lesson objectives Students can: (1) name the three features; (2) compute 28 comparisons for 8 numbers; (3) give 8 checks for a linear search and 3 for a binary search, and explain why sorting comes first.
01 Prior knowledge check (first 3 minutes)
If any item below is not secure, fix it first or this lesson stalls:
Skill
Quick check
Pass standard
Comparing
order three numbers
correct order
Halves
what is half of 8
4
Order
give three steps for finding something
in order
02 Lesson flow (45 minutes)
Time
Stage
Tutor does
Student does
0-5 min
Scenario
Find one card among eight and count the flips
Count
5-15 min
Three features
finite, clear, output
Explain
15-28 min
Sorting
8 numbers up to 28
Compute
28-37 min
Two searches
8 against 3
Try once
37-42 min
Condition
sort before halving
Explain why
42-45 min
Exit check
Collect three items and name the error type
Answer without notes
03 Teaching script (read it aloud)
Act one: three features
An algorithm has finite steps, each step is clear, and there is always an output, found or not found. Miss one and it is not an algorithm.
Most common misunderstanding: vague steps count. Look around is not a step; compare from the first is.
Students repeat: finite, clear, output.
Act two: sorting and comparisons
Sorting 8 numbers takes up to 28 comparisons, 8 times 7 over two. More numbers grow the count fast, which is what efficiency means.
Most common misunderstanding: comparisons equal the number of items. 8 numbers need 28.
Students repeat: 28 comparisons for 8 numbers.
Act three: linear against binary
A linear search checks from the first, up to 8 times. A binary search sorts first and halves each time, 3 checks for 8 numbers. Binary is faster but needs sorted data.
Most common misunderstanding: binary on unsorted data. Halving then loses the target.
Students repeat: 8 against 3, sort first.
04 Question types and steps
Type
Example
Steps
Answer
Features
3
finite, clear, output
all three
Comparisons
8 numbers
pairwise
28
Search
two kinds
8 and 3
binary faster
Condition
binary
sort first
unsorted loses the target
Comparisons over eight numbers, and checking each against halving.
Sanity check (must teach):3 features; 8 times 7 over two is 28; 8 checks linear and 3 binary; six stages add to 45 minutes.