Problem Solving andStepwise Refinement
Blue Book: Stepwise Refinement (p. 12-24)
Problem Solving:
- Define the problem
- Determine the Outputs
- Determine the Inputs
- Derive the Algorithm
Stepwise Refinement of an Algorithm:
- Steps are followed in order
- Each stepwise refinement is indented
- Each indentation explains how to do the higher-level step above it
- No more than half a dozen steps at any level of indentation
- Dont focus on detail and refinement until all the higher-level steps are understood