Computation Theory: Projects
Project 1 [Post Correspondance Problem]
- Define the Post Correspondance Problem (PCP).
- In this part you will write an exposition for the proof that PCP is undecidable by reducing the halting problem to this problem. Read through these notes to answer the following questions:
- Define the MPCP.
- Reduce the MPCP to the PCP problem.
- Reduce the Halting problem for Turing Machines to the MPCP.
- Using the fact that the PCP is undecidable, show that the following problems (or just a few of these) are undecidable:
- Deciding if a CFG is ambiguous.
- Deciding if \(L(G_1) \cap L(G_2)\) is empty for \(G_1\) and \(G_2\) CFG languages.
- Deciding if \(L(G_1) \neq L(G_2)\) \(G_1\) and \(G_2\) CFG languages.
- Deciding if \(L(G) \neq L(R)\) for \(G\) a CFG language and \(R\) a regular language.
- Deciding if \(L(G) \setminus L(R)\) for \(G\) a CFG language and \(R\) a regular language.
Project 2 [Origins of Turing Machine]
Read Turing’s first paper on Turing Machines: “On Computable Numbers, with an Application to the Entscheidungsproblem” (1937) (this wikipedia page contains a commentary) and answer the following questions:
- Which of the theorems of the paper appeared in your course?
- Which of the definitions are different? In what ways?
Note: You do not have to go over the entire paper.
Project 3 [Emulation time of multi-tape Turing Machines]
- Show that multi-tape Turing Machines are equivalent to Turing Machines (if you did not do this as part of Supervision 2).
- Show that for a multi-tape Turing Machine requiring \(T(n)\) time to terminate, there exists an equivalent TM that takes \(\mathcal{O}(T(n)^2)\) time to terminate, where \(T(n)\) is the time the multi-take .
- (optional) Read the “On the Computational Complexity of Algorithms” paper by Hartmanis and Stearns for more details (and look at the palindrome project for why this is tight).
- (+) Read the “Two-tape simulation of multitape Turing machines” paper by Hennie and Stearns to see how to emulate any multi-tape TM using \(\mathcal{O}(T(n) \log T(n))\) time using a \(2\)-tape TM.
Project 4 [Palindrome lower bound]
In this project, you will investigate the \(\Omega(n^2)\) worst-case lower bound on the time to determine if a string is a palindrome. Read these notes or the paper by TODO and answer the following questions:
- Why does this have to be a \textit{worst-case} lower bound?
- What is the high-level argument for the proof?
- Write an exposition for the formal proof.
Project 5 [Palindrome lower bound multi-tape machine]
In this project you will investigate the lower bound on the time and space for deciding the palndrome problem in a multi-tape TM.
Read the “The recognition problem for the set of perfect squares” paper by Cobham and write an exposition for why every Turing Machine that recognises the palindrome language in \(S\) space and \(T\) time, must have \(S \cdot T = \Omega(n^2)\). (Read this thread for guidance)
Project 6 [Finding all palindromes in a string in linear time]
This project is tangentially related to Computation Theory. You will investigate an efficient algorithm for finding all palindromes in a string.
- Design an \(\mathcal{O}(n^3)\) algorihtm for finding all palindromes in a given string.
- By considering each element \(i\) as a potential center of a palindrome improve your algorithm to run in \(\mathcal{O}(n^2)\) time.
- Which parts of your algorithm in (2) are doing extra work? Can you avoid this? Before reading further try to improve the runtime of your algorithm.
- Read about Manacher’s algorithm from this article, the original paper or any good article you find online.
Project 7 [Word RAM model and sorting]:
In this project you will investigate a model that more accurately represents modern computers. It is called the word RAM model.
- Read through the introduction of “Blasting through the information theoretic barrier with fusion trees” (or these notes) and describe the model.
- Read through the introduction of “Deterministic sorting in \(\mathcal{O}(n \log \log n)\) time and linear space” to learn about more efficient algorithms for sorting in the word RAM model.
Various project ideas:
- Hilbert’s 10nth problem
- RAM models and various extensions
- Ackermann’s function is not primitive recursive: proof
- Canonical systems by Post (1943) and Markov (1951)
- Using De-Brujin sequences to pick representative \(\alpha\)-equivalent lambda terms. wiki
- Proof of the Church-Rosser theorem. proof
- Read this paper for connection between lambda calculus reductions and semantics.
- Read here for a proof that normal-order reduction leads to beta normal form : here
- Remove the restriction for partial recursive functions being total in the reduction to lambda calculus. Hindley, J.R. & Seldin, J.P. (CUP, 2008), chapter 4
- Read Kleene’s 1936 paper on partial recursive functions
- Appendix A of lambda calculus book
- Theorem 4.23 in Hindley and Seldin’s book
- Why first order logic is solvable if we exclude arithmetic.