Practice Decomposition in CS Thinking
Use these practice problems to test your method after reviewing the concept explanation and worked examples.
Quick Recap
Breaking a complex problem into smaller, more manageable parts that are easier to solve.
Eating an elephant: one bite at a time. Big problems become many small ones.
Example 1
easyYou need to plan a school sports day. Decompose this problem into smaller sub-problems.
Example 2
mediumDecompose the task of building a simple calculator program.
Example 3
easyDecompose the problem of creating a sandwich into at least 4 sub-tasks.
Example 4
mediumDecompose building a class voting app into four modules, and identify one dependency between them.