Skip to main content
AP CSP course

Topic 3.17 · Interactive concept example

Loop work, factorial growth and heuristics

  • Consecutive versus nested loops
  • Polynomial, exponential and factorial growth
  • Decision versus optimisation
  • Heuristic limits

Change it · step through · explain

Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.

Ready · Make a prediction

Ready to explore: Loop work, factorial growth and heuristics
  1. Input size (1–8)4Waiting
  2. ExploreconsecutiveWaiting

Ready to explore: Loop work, factorial growth and heuristics

Why: Change an input, predict the first effect, then advance one step.

Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.