Exercises 5, 7 and 9 are marked as valuable.
- [10] Show how the values of the variables can be rearranged to by a sequence of variable assignments.
- [15] Prove that is always greater than at the beginning of step E1, except possibly the first time this step occurs.
- [20] Change Algorithm E (for the sake of efficiency) so that all trivial replacements such as "" are avoided. Call this Algorithm F.
- [16] What is the greatest common divisor of 2166 and 6099?
- [12] Show that the “Procedure for Reading This Set of Books” fails to be a genuine algorithm on three of the five counts. Solution
- [20] What is , the average number of times step E1 is performed when ?
- [HM21] Let be the average number of times that step E1 is performed if is known and is allowed to range over all positive integers. Show that is well defined. Is in any way related to ?
- [M25] Give an “effective” formal algorithm for computing the greatest common divisor of positive integers and , by specifying , , , . Let the input be represented by the string , that is, ‘s followed by ‘s.
- [M30] Suppose that and are computational methods. Formulate a set-theoretic definition for the concept ” is a representation of ” or ” simulates “. This is to mean intuitively that any computation sequence of is mimicked by , except that might take more steps in which to do the computation and it might retain more information in its states.