What does decomposition mean?

Breaking a problem into smaller parts that are easier to solve, then solving each part. Writing one function per part is decomposition in code.

Also written as: decompose, decomposing

In a lesson

Decompose the whole brief into functions: patrol(stop_at) must return the number of steps, and go_home(steps) must bring the robot back. After arriving (LED green), drive home and print steps each way: <n>. The robot must end near where it started.

Learn it

Used in

and 2 more lessons.

Do the lesson in the simulator

All glossary terms