Skip to content
Tactiverge

Computer engineering · also RoboticsLevel 2 · Builder

Decomposition, algorithms and flowcharts

Computational thinking starts before any code is written. Decomposition breaks a big job, such as looking after a greenhouse, into smaller jobs that can each be solved and checked. An algorithm is a finite list of precise steps for one of those jobs: precise means two people, or a computer, would do exactly the same thing, so steps name quantities, units and a clear rule for when to stop. A flowchart draws the algorithm with boxes for actions, diamonds for decisions and arrows for what happens next. Tracing it by hand with a table of values, including unusual inputs, finds gaps such as a loop that never ends before anything is built.

Why it mattersA watering controller whose stop rule says 'until moisture reaches 45 % or 60 s pass' cannot flood the tray, while 'water until wet enough' cannot even be programmed.

Learn it

  1. 1Break a machine's job into stepsTactiverge School · Level 2
  2. 2Flowcharts: drawing decisions and loopsTactiverge School · Level 2
  3. 3Trace every case with a rule tableTactiverge School · Level 2
  4. 4Plan the sensor-log checkerTactiverge School · Level 2