Decomposition CS Thinking Example 1
Follow the full solution, then compare it with the other examples linked below.
Example 1
easyYou need to plan a school sports day. Decompose this problem into smaller sub-problems.
Solution
- 1 Step 1: Identify the major areas: events/activities, equipment, scheduling, participants, venue.
- 2 Step 2: Break each area down further โ e.g., Events: choose sports, set rules, assign referees. Scheduling: set times, allocate fields, plan breaks.
- 3 Step 3: Each sub-problem is now small enough to tackle individually.
Answer
Sub-problems: choose events, organise equipment, create schedule, register participants, prepare venue, plan prizes.
Decomposition breaks a complex problem into smaller, manageable parts. Each part can be solved independently, making the overall problem less overwhelming.
About Decomposition
Breaking a complex problem into smaller, independently-solvable parts that combine into a complete solution.
Learn more about Decomposition โ