Compsci 6/101, Fall 2011, Lab 11, More Recursion

In recitation/lab this week we will practice with recursion and problem solving.

RSG Walkthrough

This week's assignment is to generate random sentences recursively using a grammar to structure the resulting text. Experiment with the grammar structure and the given code to understand how to write the generate function.

Use the questions on the handin page to drive your experiments.

APT

Consider the SpreadingNews APT whose supervisor/employee structure suggests a recursive solution.

Use the questions on the handin page to drive your understanding and solving of the problem.