Teaching article

A decision tree needs a path for every permitted input

Ensure each permitted case has a defined next step.

List the allowed shapes before tracing the tree. A diagram that handles circles and squares may leave triangles stranded, and the missing branch becomes clearer when the full input set is visible.

To hand: A simple shape decision tree.

  1. List possible inputs.
  2. Trace each input.
  3. Mark uncovered cases.

Trace one example from each allowed category

A tree handling circles and squares needs a response for triangles if they are allowed.

List all permitted input categories before testing the branches. Missing outcomes become easier to see when the input domain is explicit.

Which permitted case is missing? Use a small input set.

Do not assume unlisted inputs vanish.

Resources

Further reading

Read next

Explore Coding and computational thinking. Browse all teaching articles.