Lite / Discovering How the World Works / Week 27
Design challenge 1: define the problem
Engineers say a problem well defined is half solved. What makes a problem 'well defined'?
Why should I care?
This week you design your own intelligent system. The most common reason real projects fail isn't bad code or weak motors: it's solving the wrong problem, or not knowing when you've solved it. Clear requirements prevent both.
- Write a clear problem statement for an intelligent system.
- Turn wishes into specific, testable requirements.
- Identify constraints and one trade-off in a design.
Predict
Which requirement could you actually test?
- The plant waterer should be smart
- The plant waterer must water when the soil moisture reads below 30%, and never more than twice a day
- The plant waterer should keep plants happy
Guess first, then reveal
The second one. It names a sensor, a number and a limit, so you can set up a test and check pass or fail. 'Smart' and 'happy' sound good but can't be measured, so you'd never know if you'd succeeded.
Discover
Weight the criteria differently (say, cost very important, then performance very important) and watch which design comes out top. Notice there's rarely one design that's best at everything.
What the interactive shows (text version)
The trade-off lab can be replaced by this description: six possible designs are scored on cost, mass and performance. When cost matters most, a cheap, modest design wins; when performance matters most, an expensive, heavier design wins. No design is best at everything, so the weights you choose decide the winner.
Understand
Problem statement
Start with one or two sentences: who has the problem, what goes wrong now, and what a good solution would do. 'Plants on our classroom windowsill dry out over weekends. We need a system that waters them only when they need it.'
Testable requirements
Turn wishes into requirements you can check:
- What it must do, with numbers (water when moisture < 30%).
- What it must never do (never water more than twice a day).
- Anything about speed, size or power.
If you can't imagine a test for it, rewrite it.
Constraints and trade-offs
Constraints are limits you can't break: budget, size, a battery that must last a week. Within them you'll face trade-offs: a more sensitive sensor costs more; checking more often uses more battery. Write down the trade-off you choose and why.
Explain it another way
Intuitive
Asking a friend to 'get some food' could mean anything. Asking for 'two apples and a loaf of bread, under £3' means you'll know exactly whether they got it right.
Technical
Requirements should be specific, measurable and verifiable. A design is evaluated against them; trade-off tools weight competing criteria (cost, mass, performance) to compare options.
Applied
Before a Mars rover is built, engineers write thousands of requirements: how far it must drive, how cold it must survive, how much it may weigh. Every test the rover goes through checks one of them.
Worked example 1
Rewrite as testable requirements: 'The night light should come on when it's dark and not waste energy.'
- The light must switch on within 2 seconds of the light sensor reading below 20. 2. It must switch off within 2 seconds of the reading going above 30. 3. It must not stay on for more than 10 hours a night. Each can be checked with a stopwatch and a log.
Common mix-ups
Requirements are just a wish list.
✓ Good requirements are specific and testable, so you know when you've succeeded.The best design wins on every criterion.
✓ Usually designs trade one criterion against another. You choose the balance and explain why.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Start your term project: choose an everyday problem, write a two-sentence problem statement, and list at least three testable requirements, including one 'must never'. Name one constraint and one trade-off you expect.
Reflect
Which of your requirements was hardest to make testable? How did you fix it?
Write your answer on paper or in your own notes. Lite never stores what you write.