Comp210: Principles of Computing and Programming
Fall 2004 -- Homework #10   


Readings: Sections 25-32 in HTDP for generative recursion

Sections 33-43 in HTDP for mutation.

All problems will require all (applicable) steps from the design recipe, including a template. Before you tackle the homework, remind yourself of our General Advice, Advice on Homeworks (in particular: staple and provide questions), and the Grading Guidelines.


You are NOT required to show the template for your programs (woo-hoo!). However, your functions should still follow the template, as appropriate. And of course, each function should still have a contract and purpose, and reasonable test cases.


Generative Recursion: Missionaries and Cannibals

Do Exercises 32.2.1 -- 32.2.7.

Warning: This problem is manageable only if taken in bite-sized chunks. Start on this homework promptly.

Clarifications (these will make sense only after you've read the problems completely):

 


Points:

Exercise 32.2.1: 5 pts

Exercise 32.2.2: 10 pts

Exercise 32.2.3: 15 pts

Exercise 32.2.4: 15 pts

Exercise 32.2.5: 10 pts

Exercise 32.2.6: 15 pts

Exercise 32.2.7: 15 pts

85 total points plus 15 extra credit

 

 

 


Last Revised Tuesday, 24-Aug-2004 13:49:05 CDT

©2004 Stephen Wong and Dung Nguyen