Don't print this page. You can read it from the screen as you follow the steps.

Tutorial for Recursive Picture

  1. Find and execute the program recPic.dem.
  2. Select <Examples:face>.
  3. Select <Mode:Draw or Handin>. Select the circle for "n=base=1".
  4. Draw a face on the screen as follows:
  5. Draw many faces in different orientations.
  6. Clear the screen when you like by selecting <File:clear screen>.
  7. To try something else, select <Examples:person>.
  8. Select <Mode:Draw or Handin> and again be sure that the circle for "n=base=1" has been selected.
  9. Draw a few faces in different orientations.
  10. Click in the circle for the button <nonbase> and draw a big copy of the person by clicking the mouse as before.
  11. Draw a smaller copy of the person at the place to recurse.
  12. Draw a smaller copy of the person at this place to recurse.
  13. Repeat this process, drawing smaller and smaller copies.
  14. Eventually, you will want to stop. However, you do not want to leave a "place to recurse" "---> --->" without a figure. Therefore, select "n=base=1" and draw a face at the smallest place to recurse.
  15. Click the button <n=2> and draw a figure.
  16. Click the button <n=3> and draw a figure.
  17. Click the button <n=4> and draw a figure. 
  18. Try other values of n.
  19. We will now repeat the process with other recursive pictures.
    1. Open <Examples:three>. Note what the base and the nonbase case figures are. Go into edit mode and select <nonbase>. Draw a big copy of the picture. Then in each of the four places to recurse draw a smaller copy of nonbase case figure. This produces 16 places to recurse. Again draw an even smaller copy at each of these locations. Repeat this until you get the idea. In order to stop, select <n=base=1> and draw the base case figure at each place to recurse.

      Clear the screen and have the program draw the recursive picture. Start with n=base=1. Then n=2, n=3, ... . Each time remember what the previous picture looks like. Then for the next value of n, note how the nonbase case picture is drawn, however, in the "places to recurse" the picture for n-1 is drawn.

  20. Repeat the process again with the other examples listed.
  21. You are now ready to create your own figure. Select <File:new base/nonbase>. Add lines, circles, and arcs to the base and the nonbase case figures and places to recurse to the nonbase case figure. Then select <File:Draw> to see the result. Read the help file for for further help.