✂️ Decomposition
Decomposition means breaking a big problem into smaller parts that are easier to solve one at a time.
Big problems feel scary. Computer scientists break them into small pieces and look for things that repeat.
Decomposition means breaking a big problem into smaller parts that are easier to solve one at a time.
Pattern recognition means spotting parts that are the same or repeat, so you can solve them once and reuse the solution. Abstraction means ignoring details that do not matter.
Break a big problem into small parts.
Problem: break down 'make a school poster'.
Answer: title, picture, text, colours.
Decomposition means:
Which shows pattern recognition?
A metro map leaves out buildings and trees. This is:
Which is a sensible sub-problem of “make a birthday party”?
A hexagon is drawn by repeating “forward 40, turn 60”.
How many times is the pattern repeated?
Enter an exact answer, without rounding.A big task is split into 4 parts, and each part into 3 smaller steps.
How many small steps are there?
Enter an exact answer, without rounding.Why do programmers decompose problems?
Spotting the same steps used again and again is:
Leaving out unimportant details is:
Which is NOT part of computational thinking?
A repeating pattern in a program can be written as a: