Before an algorithm can solve a spatial problem, the problem has to be exact: what goes in, what comes out, what counts as done, and what you're assuming. Then split it into smaller problems. The sprinkler job shows how.
"Cover the oval with as few sprinklers as you can." Is that enough for someone to start designing, or is something missing?
The school is putting new sprinklers on the junior oval, and the caretaker's note says to cover it with as few as you can. Hand that note to two people and you'd probably get two different layouts, and an argument about whose one counts. Before anyone writes steps for a machine, the job has to be pinned down: what goes in, what has to come out, and what counts as done. The sizes in this lesson are made up, and we'll treat the oval as a rectangle to begin with, which is itself a choice we'll write down. To warm up, have a guess about one sprinkler on a square patch of grass.
How this lesson works: Predict, Try, Investigate, Modify, Practise, Make
Predict: Read the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
Try: Try it on the board and compare the result with your prediction.
Investigate: Work out why it happens, one step at a time.
Modify: Change the problem on purpose and see what happens.
Practise: A few on your own, to check you have it.
Make: Make your own problem using what you have learned. Expect a few tries; that is normal.
Make your prediction first. Help opens once you've locked it in.
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
One sprinkler, one square
You have a guess. Let's see how far a corner really is.
TryTry it on the board and compare the result with your prediction.
The furthest point
A square cell is 10 m on each side (made up) with the sprinkler in the middle. How far is the sprinkler from a corner, to 2 decimal places? Pythagoras gives it: the corner is 5 m across and 5 m along from the middle.
InvestigateWork out why it happens, one step at a time.
The parts of a job
Two smaller problems
Look for the line that decides whether a layout counts at all, and the line that only chooses between layouts that do.
Here is the junior oval pinned down. Each line says what kind of piece it is.
Worked exampleBefore each step, say what you think comes next.
Oval: L=40,W=24;spray radius r=8Inputs, in metres. The oval is treated as a rectangle (an assumption).
Output: the number of sprinklers, and where each goesWhat the answer has to say.
Done when every point is within 8 m of a sprinklerThe success criterion. 'Covered' has to mean something exact.
s÷2=8Smaller problem 1. The corner is the furthest point, half a diagonal from the middle of a square with side s.
s=82≈11.3One sprinkler covers a square about 11.3 m wide.
40÷11.3≈3.5,24÷11.3≈2.1Smaller problem 2: how many of those squares each side takes. What to do with the part-squares is for the next lesson.
Now try one on paper with the example beside you. Find the side of the biggest square one sprinkler covers when its spray is 6 m, saying why for each line.
Read Kai's input line. What does it keep, and what does it throw away?
Think about which question comes first, and which one needs the answer to the other.
Here is the caretaker's job, written out. What kind of piece is each line?
The oval is 40 m long and 24 m wide
The sprinkler's spray reaches 8 m
The number of sprinklers and where each one goes
Every point of the oval is within 8 m of a sprinklerA layout that leaves dry spots doesn't count, however few sprinklers it uses.
Sprinklers can only stand on the oval
Use as few sprinklers as possibleIt only matters once the layout works.
The spray is a full circle on flat ground
There is no wind
Sprinklers with a spray of 6 m (made up) replace the old ones. How long is the side of the biggest square one sprinkler covers, to 1 decimal place? Write each step down, with a reason.
Work it out on paper first, one step per line. Then type your answer.
Put your page beside this and compare, step by step.
A model solution
The corner is the furthest point from the middle of the square so the square is covered when its corner is within 6 m
The corner is half a diagonal away: s÷2=6half the diagonal of a square with side s is s÷2
s=62≈8.5 m multiply both sides by 2
Check your page
Kai's definition gives the same answer for an oval 10 m by 10 m and one 100 m by 1 m, because both have an area of 100 m². Click the line that makes it unable to tell them apart.
ModifyChange the problem on purpose and see what happens.
Change the job
The spray is now 5 m (made up). How long is the side of the biggest square one sprinkler covers, to 1 decimal place?
PractiseA few on your own, to check you have it.
Parts and pieces
The senior oval is 60 m long (made up) and the sprinkler's square is 11.3 m wide. How many squares is the 60 m side, to 1 decimal place?
The same oval is 30 m wide. How many squares is the 30 m side, to 1 decimal place?
Review: a rectangle is 6 m by 8 m. How long is its diagonal, in metres?
MakeMake your own problem using what you have learned. Expect a few tries; that is normal.
Back to the caretaker's note
Write this on paper first, a line at a time with its reason.
Also used in
Packing a van. The inputs are the box sizes and the van's floor, the output is a layout, and done means everything fits.
Phone masts. Each mast reaches a circle, and the job is covering a town, much like the sprinklers.
Next lesson. Writing the steps as an algorithm and running it on two ovals.
The caretaker's other oval is 30 m long and 20 m wide, with sprinklers whose spray reaches 10 m (made up). Pin the job down in your own words: the inputs, the output, what counts as done, and one assumption. Then find the side of the biggest square one sprinkler covers, to 1 decimal place.
Work it out on paper first, one step per line. Then type your answer.
Put your page beside this and compare, step by step.
A model solution
Inputs: L=30 m, W=20 m, r=10 m what goes in, with units
Output: how many sprinklers, and where each one goes what has to come out
Done when every point of the oval is within 10 m of a sprinkler an exact success criterion
Assumption: the oval is a rectangle, the spray a full circle, and there is no wind things taken for granted, said out loud
The corner is the furthest point: s÷2=10half a diagonal
s=102≈14.1 m multiply both sides by 2
Check your page
Lesson done. You've finished every step you need.
Now you can
Write a spatial problem with exact inputs, output and success criterion.
Say what I'm assuming, out loud.
Split a job into two smaller problems that fit together.
Students pin down a spatial problem before designing anything: the inputs, the output, what counts as done, what must hold and what is assumed. They split the sprinkler job into two smaller problems and find the biggest square one sprinkler covers (AC9M10SP03, node 1). About 45 minutes.
I can write a spatial problem with exact inputs, output and success criterion.
I can say what I'm assuming, out loud.
I can split a job into two smaller problems that fit together.
Before class
Do the Predict yourself first. Students need Pythagoras (Finding a side) and the Year 9 idea of an algorithm as exact steps.
The one idea: a problem has to be exact before an algorithm can solve it. Input, output, 'must be true', aim and assumption are the five pieces on the sort. The same job then splits into two smaller problems: how much one sprinkler covers, and how many of those fit.
Hinge node, and a judgement one: there is no smaller step on purpose, because a lead-in would hand students the pieces. Let them argue over the sort, and keep asking what a machine would do with each line.
The oval is treated as a rectangle, which is a simplification we name as an assumption. The real, curved school oval is the class project (node 3). The sizes, the sprinkler reach and the senior oval are all made up. Nothing here is a real measurement or needs a source.
Running the lesson
Predict: take a show of hands before the check, then ask where the farthest point of a square is.
Paper: the 6 m spray try-one and the Make task are worked on paper first, with a sketch of the square and its corner.
Investigate: for the sort, ask a pair to disagree about one line (the aim and the success criterion are the usual tangle).
Investigate: for Kai, ask what two ovals of 100 m² you could draw that need different numbers of sprinklers.
Modify: before the cricket-pitch rule, ask which of the five kinds of piece it is.
Make: ask what the caretaker would still have to tell you.
The hard part (on purpose)
Saying 'cover the oval' without saying what covered means, or leaving out the shape. Ask: could a machine check your layout for any point? What would it need to be told?
When students get stuck
A student puts 'as few as possible' under 'Must be true'. Ask: Does a layout with lots of sprinklers count as covered? Does a layout with dry patches? Fix: Covering is the rule; fewest is only the aim among layouts that cover.
A student gives the side as twice the radius. Ask: Where is the furthest point of the square from the middle? Fix: The corner, not the edge, so work from the half-diagonal.
A student says the area decides how many sprinklers. Ask: What about a 100 m by 1 m strip with the same area as a 10 m square? Fix: Put the lengths in the input, not just the area.
Stretch and support
Stretch: Pin down a different spatial job, such as the fewest benches along a path with no one more than 20 m from a seat, and split it into two smaller problems.
Support: A printed frame with five headings (Input, Output, Must be true, Aim, Assumption) and the oval job's sentences to cut up and sort.
Where it leads
This covers AC9M10SP03 node 1.
Where it leads: Write the algorithm (next lesson), which turns the two smaller problems into numbered steps and tests them on two ovals. Testing awkward cases and refining the algorithm (node 3) is the class project.
What each step is for
one sprinkler, one square: Committing to whether the circle reaches the whole square shows who thinks reaching the sides means reaching everything. The corners are the furthest points, and that fact is what the first sub-problem is built on.
the furthest point: Working out how far the corner is turns the picture into a number. The corner is the furthest point of the square from the sprinkler, so it is the one that decides whether the square is covered.
the parts of a job: A pinned-down problem names its inputs, its output, what counts as done, what must hold and what is assumed. Kai's mistake is leaving out the shape, so two different ovals look the same. Splitting the job into smaller problems gives something an algorithm can be written for.
change the job: Changing one piece of the pinned-down problem and seeing which parts move: a new rule, a new radius, and an oval smaller than the biggest square.
parts and pieces: Using the first smaller problem's answer on a bigger oval, choosing the exact success criterion, and a review of Pythagoras.
back to the caretaker's note: Returning to the note: pinning down a new job, then answering the first smaller problem for it, and saying what the original note left out.