Homework 1
This homework covers the material from lectures 1 to 4.
Due date: September 20th, 10pm Waterloo time.
Required Exercises
Problem 1 - Implementing Turing Machines (30 points)
Part 1 (20 points)
Implement deterministic, one-tape Turing machines that decide the following languages.
More precisely, we want you to give us the complete description of your Turing machine (i.e., the
Part 2 (10 points)
For each of the Turing machines you implemented in Part 1, provide the computation history for the inputs
Problem 2 - Recognizability (10 points)
Let
Problem 3 - Decidability (20 points)
Let
Problem 4 - Decidability (20 points)
A useless state in a Turing machine is a state that is never entered during the computation of the machine on any input.
Let
Problem 5 - Recursion Theorem and Fixed Points (20 points)
A fixed point of a function
Use the recursion theorem to prove the following “fixed-point theorem”:
Let
In the above theorem,