Assignment 4

  1. Define in Scheme the following functions on lists.
  2. Define in Scheme the following functions on binary trees. A binary tree is represented as a list of three elements (value left right), where left is the left subtree and right is the right subtree. An empty tree is represented as ().
  3. Textbook 10.7 (page 553)
  4. Textbook 10.9 (page 554)