Coding · Grade 9
Algorithms and Problem Decomposition
High-school learners define algorithms precisely (finite, definite, effective, with input and output) and test procedures against that definition, including the unsolved Collatz problem as a case where testing is not proof. They represent algorithms as flowcharts and pseudocode, trace classic algorithms such as Euclid's GCD with trace tables, and decompose problems while comparing algorithms for correctness and efficiency.
- 4 lessons
- About 85 minutes
- Check what you learned: 8 questions
- Ways to answer: choose an answer, put code in order, trace code, match pairs, type a number and sort into groups
What learners will discover
- State the properties of an algorithm and judge whether a procedure is an algorithm.
- Represent algorithms with flowcharts and pseudocode using sequence, selection and iteration.
- Trace algorithms with loops and conditions using trace tables to predict their output.
- Decompose a problem and compare algorithms for correctness and efficiency.
Lessons
-
What counts as an algorithm? 6 steps3 practiceabout 20 min
-
Flowcharts and pseudocode 5 steps3 practiceabout 20 min
-
Trace tables 5 steps3 practiceabout 22 min
-
Decomposing and comparing algorithms 5 steps4 practiceabout 18 min
-
Check what you learned 8 questions at the end
Keep exploring
More 9th grade coding
- 9th Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read