Task 3 · Decomposition Diagrams
up to +100 XP
Stop 3.1 · Task 3 · 5 min

Decomposition Diagrams

Break down Task 3 problems into manageable components

Learning Objectives:
  • Understand what decomposition diagrams are for Task 3
  • Learn to identify main functions and sub-functions
  • Master hierarchical problem breakdown
  • Apply decomposition to data analysis problems
  • Create exam-ready decomposition diagrams

What is Task 3?

Task 3 is the design task in your ESP exam where you create algorithm designs for a data analysis system. You'll receive:

Your job: Design a solution that transforms raw data into meaningful information for decision-making.

Understanding Decomposition Diagrams

A decomposition diagram breaks down a complex problem into smaller, manageable parts. It shows the hierarchy of tasks from the main goal down to specific sub-tasks.

Why Decomposition Matters in Task 3

Structure of a Decomposition Diagram

Decomposition diagrams use a tree structure with levels:

Level 0: Main Problem

Level 1: Major Functions

Level 2: Sub-Functions

Example: T-Learn Automotives Sales System

Let's decompose a typical Task 3 problem:

Requirements:

Level 0: Main System

T-Learn Automotives Sales Analysis System

Level 1: Major Functions

Level 2: Sub-Functions

1. Load Data:

2. Process Data:

3. Display Results:

4. User Interface:

Important Note: Shared Functions

Some functions are used by multiple branches:

Tip: In your decomposition, you can show "Load Data" as a separate branch that feeds into all other functions, or note that it's a prerequisite step.

How to Create Your Decomposition Diagram

Step 1: Read Requirements Carefully

Step 2: Identify Major Functions

Ask yourself: What are the BIG things this system must do?

Step 3: Break Down Each Function

For each major function, ask: What specific tasks are needed?

Step 4: Check Coverage

Common Functions for Task 3

Most Task 3 problems will need these functions:

Data Input Functions

Data Processing Functions

Display Functions

User Interface Functions

Tips for High Marks

What Examiners Look For

Common Mistakes to Avoid

Presentation Tips

Exam Strategy

Working with the CSV Data

Look at the CSV file provided. Identify:

Linking to Flowcharts

Your decomposition diagram guides your flowcharts:

Quick check · 12 questions · up to 100 XP

Check what stuck.

+10 XP each
Question 1

Question 1 of 12

How many major functions (Level 1) should typically be in a decomposition diagram?

Question 2

Question 2 of 12

Which function must happen FIRST in Task 3?

Question 3

Question 3 of 12

What types of output are required in Task 3?

Question 4

Question 4 of 12

What is Level 0 in a decomposition diagram?

Question 5

Question 5 of 12

How should you number functions in a decomposition diagram?

Question 6

Question 6 of 12

Under "Process Data", which is a typical sub-function?

Question 7

Question 7 of 12

What is a common mistake in decomposition diagrams?

Question 8

Question 8 of 12

What's the best approach when analyzing exam requirements?

Question 9

Question 9 of 12

What are the 4 typical major functions in Task 3?

Question 10

Question 10 of 12

Why must "Load Data" be called by multiple branches?

Question 11

Question 11 of 12 · Coding

From diagram to code: your decomposition has a sub-function “Total sales by car model”. Write total_by_model(sales), where sales is a list of (model, value) pairs, returning a dictionary of each model’s total.

Open the IDE
Hint

Loop through the pairs. If the model is already a key, add to it; if not, start it at the value.

Question 12

Question 12 of 12 · Coding

Another sub-function: “Keep new cars only”. Write new_only(sales), where each sale is (model, new_or_used, value), returning a list of just the sales marked "New".

Open the IDE
Hint

Build a new list and append each sale whose second item is "New".