Exercises

Exercise 5.1: Write a linear iterative version of together-copies-of.

Exercise 5.2: Write a logarithmic-time version of together-copies-of.

Exercise 5.3: What does the following procedure compute?

     (define mystery
       (lambda (a b)
         (together-copies-of + a b)))
A: The product a × b