GoalCount the outcomes of a flowchart with more than one decision and list every path through it.
New words
path · one route through a flowchart from the start to the stopnested decision · a decision that sits inside one branch of another decisionoutcome · the result at the end of one path
Explanation
Every decision splits the path in two. If two decisions come one after the other, each of the two paths from the first decision meets the second decision. This gives 2 × 2 = 4 outcomes. Three decisions in a row give 2 × 2 × 2 = 8 outcomes. A nested decision works differently. If the second decision sits in only one branch, the other branch goes straight on to the stop. Always list the paths, such as yes-yes, yes-no, no-yes and no-no, to be sure of your count. Flowcharts are also used outside computing to describe how a factory, a shop or a project works.
Worked examples
Is it cold?
Is rain forecast?
What is packed
yes
yes
coat and umbrella
yes
no
coat and sun cream
no
yes
T-shirt and umbrella
no
no
T-shirt and sun cream
Sara’s packing flowchart has two decisions one after the other, so it has 4 outcomes. Here are all four paths.
In Omar’s flowchart the second decision is nested inside the ‘no’ branch of the first. If the pool is open, he just swims. So there are only 3 outcomes, not 4: swim, play in the park or go home.
To count outcomes, count the stops at the ends of the paths. Do not just multiply by 2 every time you see a diamond. Look at where each diamond sits.
Class activity
Outcome detective (no computer): plan a weekend with two decisions. Decision 1: ‘Is the weather dry?’ Decision 2: ‘Is a friend free?’. Draw the flowchart on paper, with a different activity at the end of each of the four paths. Write one sentence for each outcome. Then an adult answers the questions in a surprising order, and you say what the plan is each time. If you have a computer or tablet, you can draw the flowchart in a drawing program.
Practice
1
List every outcome of this flowchart.
There are 4 outcomes: ask an adult to charge it and wipe the screen; ask an adult to charge it and skip cleaning; leave it and wipe the screen; leave it and skip cleaning.
2
How many outcomes does this flowchart have? Name them.
3 outcomes: keep going, gold star and silver star. The second decision sits in the ‘no’ branch, so it is only asked when the score is 50 or more.
3
A flowchart has three decisions one after another. How many outcomes can it have?
8, because each decision doubles the number of paths: 2 × 2 × 2 = 8.
4
Ben says, ‘A flowchart with two decisions always has four outcomes.’ Is he right? Explain.
No. Two decisions one after the other give 4 outcomes, but if the second decision is nested inside only one branch, there are 3 outcomes.