Decomposition CS Thinking Example 3

Follow the full solution, then compare it with the other examples linked below.

Example 3

easy
Decompose the problem of creating a sandwich into at least 4 sub-tasks.

Solution

  1. 1
    Step 1: Gather ingredients (bread, fillings, condiments).
  2. 2
    Step 2: Prepare ingredients (slice cheese, wash lettuce, etc.). Assemble sandwich. Cut and serve.

Answer

Sub-tasks: gather ingredients, prepare ingredients, assemble sandwich, cut and serve.
Even everyday tasks benefit from decomposition. Breaking a task into steps makes it systematic and repeatable โ€” the basis of algorithmic thinking.

About Decomposition

Breaking a complex problem into smaller, independently-solvable parts that combine into a complete solution.

Learn more about Decomposition โ†’

More Decomposition Examples