Today you will use four steps to solve a big problem, break it into small problems, and spot patterns.
builders120 min
Problem solving and first programs
How to solve a hard problem
Today you will use four steps to solve a big problem, break it into small problems, and spot patterns.
Story4 min
Teacher block: Ocen and the school trip
Ocen’s class wants a trip to Murchison Falls. The teacher says: “Plan it. Tell me what it will cost each learner.”
Twenty four learners look at each other. Nobody speaks.
Akello is visiting. She asks Ocen, “Where do you start?”
Ocen says: I do not know. The problem is too big.
Akello thinks.
Akello says: When you cannot eat a whole cassava, you cut it into pieces. Cut the problem.
How do you start a problem that feels too big?
Remember5 min
Teacher block: Recall from last week
Think. Then show with your fingers.
The four jobs of a computer, in order, are: 1. input, process, store, output 2. store, input, output, process 3. output, input, process, store
The path is Documents/akello/projects/plan.txt. Which folder holds the file? 1. Documents 2. akello 3. projects
An algorithm has a repeat with no stop. Which property is broken? 1. Clear 2. Ordered 3. Finite
Which keeps your work when the power goes? 1. Memory 2. Storage 3. Screen
Learn10 min
Teacher block: The four steps
A mathematician called George Pólya wrote four steps for solving problems in a book in 1945. They work for sums, football plans and computer programs.
Step
The question to ask
1. Understand
What am I asked? What do I know? What do I not know yet?
2. Plan
What small steps will solve it? Have I solved something like it before?
3. Carry out
Do each step. Write your work. Check each step as you go.
4. Look back
Does the answer make sense? Is there an easier way? What did I learn?
The four steps go round. When Look back finds a mistake, you understand the problem better and plan again.
Understand
Plan
Carry out
Look back
Example: the trip. All the numbers here are examples, not real prices.
24 learners go.
Hiring the bus costs 480,000 shillings for everyone.
Entry costs 5,000 shillings for each learner.
Lunch costs 4,000 shillings for each learner.
What does each learner pay?
Plan (decomposition): bus, entry, lunch, then add, then share.
Entry for all: 24 times 5,000 = 120,000.
Lunch for all: 24 times 4,000 = 96,000.
Total: 480,000 + 120,000 + 96,000 = 696,000.
Each learner: 696,000 divided by 24 = 29,000.
Look back: 29,000 times 24 should give 696,000. It does.
Learn11 min
Teacher block: Break it down and spot the pattern
Decomposition means breaking a big problem into smaller problems. A pattern is something that repeats or has the same shape as something you have seen before.
Sharing water fairly. A drum holds 60 litres. Four households share it. They have 2, 3, 4 and 3 people.
Understand. What does fair mean? Equal for each household, or equal for each person?
Plan. Count the people. Divide the water by the people. Multiply for each household.
Carry out. People: 2 + 3 + 4 + 3 = 12. Water for each person: 60 divided by 12 = 5 litres. Households: 10, 15, 20 and 15 litres.
Look back. 10 + 15 + 20 + 15 = 60. All the water is shared.
A boda route. A rider starts at the taxi park. He must drop a passenger at the market, one at the school and one at the hospital. These distances are examples.
From and to
Distance (km)
Taxi park and market
2
Taxi park and school
5
Taxi park and hospital
4
Market and school
3
Market and hospital
4
School and hospital
2
Which order of drop-offs is the shortest?
No computer6 min
Teacher block: Cut the football day
Your school will hold a football day on Saturday with 4 teams. In groups, break this big problem into at least six small problems. Write them on paper, then number them in the order you will do them.
Then answer: if each team plays each other team once, how many matches are there?
Did you know?3 min
Teacher block: Wonder, measuring the Earth with a shadow
More than 2,000 years ago, a scholar named Eratosthenes worked in the great library of Alexandria, in Egypt. He was born in Cyrene, in today’s Libya. He asked a huge question: how big is the whole Earth? Nobody could walk round it to measure.
So he cut the problem into small parts. He learned that at noon on one day each year, the sun was straight overhead at Syene, a town far to the south. At noon on that same day in Alexandria, a tall pole made a short shadow. He measured the angle of that shadow. He knew roughly how far it was between the two towns. With these two small facts and some geometry, he worked out the size of the whole Earth.
His answer was close to the true size. Experts still argue about exactly how close, because nobody knows the exact length of the unit of distance he used. His method was right.
What two small things did he measure to answer one huge question?
No computer6 min
Teacher block: Paper exercise and check
Break it downName:
Name:
1. The trip: 24 learners. Bus 480,000 shillings in all. Entry 5,000 and lunch 4,000 for each learner. What is the total cost?
2. What does each learner pay?
3. Water: 60 litres for 12 people, shared equally. How many litres for each person?
4. A household of 4 people. How many litres do they get?
5. The boda route taxi park, market, hospital, school. Add the distances from the table. How many km?
6. What is the next number? 3, 6, 9, 12, …
7. What is the next number? 1, 2, 4, 7, 11, …
8. Write the four steps for solving a problem, in order.
Your teacher will read this answer. Choose who is learning (top of the page) to save this answer.
9. A class of 30 learners needs 3 learners at each table. How many tables? Write your four steps.
Your teacher will read this answer. Choose who is learning (top of the page) to save this answer.
CheckQuestion 1 of 4
Which is the first of the four steps?
On the computer35 min
Laptop block: Task card, my plan in a file
With no teacher. Read the card. Follow it. Ask your partner first.
Your pair: one driver and one navigator. Swap every 10 minutes. If there are 3 of you, one is the timekeeper and joins a pair as a second navigator. Rule: do not change another person’s file.
Before you start: if the Lenovo is off, switch it on.
Choose your problem. Use a job from Friday’s home mission, or choose one: plan a birthday party, prepare for market day, plan a football day, fetch water for a week, start a small business selling something.
Round 1 (10 minutes): driver one types
Open your folder.
Windows: click the yellow folder icon at the bottom, then Documents, then your name folder, then projects.
Mac: click the Finder icon, then Documents, your name folder, then projects.
Make a new folder inside projects named week2. (Windows: right-click, New, Folder. Mac: right-click or two fingers, New Folder.)
Open the text editor. Windows: Start, type Notepad. Mac: Command and Space, type TextEdit, press Return, then Format and Make Plain Text.
Type this, and fill in each line:
Problem: Step 1, UnderstandWhat am I asked to do: What I know: What I do not know yet: Step 2, Plan (small problems, 5 to 8)1. 2. 3. 4. 5. Order: I do number ... first because ...Step 3, Carry outStep 4, Look back
Predict first: are all your small problems small enough to finish in one go?
Save it. Ctrl and S (Windows) or Command and S (Mac). Choose your week2 folder. Name it plan- plus your problem, for example plan-birthday.txt. Click Save.
Swap! Driver two does the same for their own problem, in their own week2 folder.
Round 2 (10 minutes): driver two types. (Same steps as Round 1.)
Swap!
Round 3 (10 minutes): check each other
Open your partner’s file. Read the small problems aloud.
For each one ask: Can I do this in one go? Is it in the right order?
Write one small problem that is too big, and cut it in two. Type your cut under the line, starting with the word Cut:.
Be kind. Say “I found a big one”, not “your plan is bad”.
Last 5 minutes: look back. In your own file, type your Step 3 and Step 4 lines: what you did to carry out the first small problem, and one thing you would change. Save with Ctrl or Command and S. Leave both laptops on at the end.
Stuck? Before you ask anyone, try three things:
Read the step again, slowly, out loud.
Ask your partner: “What do you see? Where did we save the file?”
Use the search box in File Explorer or Finder, and type the start of your file name. If it still fails, write the problem on paper and carry on.
Challenge10 min
Laptop block: Challenges
Choose one level. Typing practice is part of every level.
Warm up, everyone (3 minutes). Match each step to the question it asks. Click a step on the left, then its question on the right. (No laptop? Write each step with its question on paper.)
The four steps and their questions0 of 4 matched
Click one on the left, then its partner on the right.
Bronze
In the Key finder, do 3. Numbers. Then read your plan once more and check each small problem starts with a number.
Silver
In the Key finder, do 4. My name. Then add a line to your plan that says which small problems are alike (a pattern), for example “number 2 and number 3 are both a total divided by people”. Save it again.
Gold
Write a second plan in a new file named plan-budget.txt: a budget for a football tournament with 6 teams. Use your own example prices, and state that they are examples. Include the number of matches (each team plays each other once: 15), the total cost and the cost for each team. In Look back, check your answer a second way.
Key finder
Key finder
Wan Bene moment10 min
Say it out loud: my small problems
Stand up and talk for one minute.
Tell us about your problem. What were two of its small problems? Which one was the hardest to make small?
Use this shape: My problem was … . Two small problems were … and … . The hardest was …, and I cut it into … .
Exit question10 min
Exit question
Show with your fingers.
You have a big problem and you do not know where to start. What is the first of the four steps?
Carry out
Understand
Look back
Then say one sentence: “Today I learned that …”
Tick your skills.
Home mission10 min
Home mission
Paper (everyone). Choose one problem at home that feels big, for example getting the whole family ready for church or a wedding, or planning a week of meals. Write the four steps for it, and list at least four small problems in order. Bring it tomorrow.
Phone (only if a family phone is free, and you have asked). Open the calculator and check one sum from your plan a second way. Write both answers.