Stepwise Refinement: Eric Roberts CS 106A April 6, 2012
Stepwise Refinement: Eric Roberts CS 106A April 6, 2012
Outline
1. Review Karel statement forms 2. Exercise: The putBeeperLine method 3. Stepwise refinement 4. Exercise: The BanishWinter program 5. Preconditions and postconditions 6. Story time: Past Karel Contest winners
2 +
Stepwise Refinement
The most effective way to solve a complex problem is to break it down into successively simpler subproblems. You start by breaking the whole task down into simpler parts.
Subtask #1
Subtask #2
Subtask #3
Subsubtask #2a
Subsubtask #2b
The End