CS130 - 3/11/2011
- bad news
- good news?
- Evaluating potential solutions/algorithms *before* implementing (context matters!)
- Understand the problem
- Come up with an approach
- Come up with another approach
- Implement the better approach
- Top down or bottom up
- Stepwise refinement
- Building building blocks first.
- Thinking about how the loop will end before you start writing it
- Task 1 - Squares. Initial situation: Ruby is at home with n cons in her bag and 1000 coins one block north.
Final situation: Ruby is home at the corner of a NxN square (one coin per intersection).
- Task 2 - Triangles. Just like task 1, but only the main diagonal and south and west of it.