02Chapter 2: Running a machine: configurations, halting and loopingThis chapter assumes you know the 7-tuple definition of a deterministic Turing machine (TM) from the previous chapter: states Q, input alphabet Σ, tape alphabet Γ, blank symbol, transition function δ, start state q0, accept state qaccept and reject state qreject. It also assumes you are comfortabl6 min read
03Chapter 3: Designing machines: marking symbols for a^n b^n and a^n b^n c^nThis chapter assumes you know the 7-tuple definition of a deterministic Turing machine (DTM), how configurations work, and the difference between accepting, rejecting and looping. It also assumes you have seen why a^n b^n needs a stack in a pushdown automaton (PDA). Here you learn the standard desig5 min read
04Chapter 4: Multi-tape and nondeterministic machines are equivalent in powerThis chapter assumes you can trace a single-tape deterministic Turing machine (DTM) by its configurations. It also assumes you know the difference between a machine that halts on every input (a decider) and one that may loop (a recognizer). You should also remember that an NFA and a DFA accept the s6 min read
05Chapter 5: Decidable versus semi-decidable languagesThis chapter assumes you can trace a deterministic Turing machine (TM) through configurations, as covered in the earlier chapters. It also assumes you know that a machine on an input can accept, reject, or loop. Here we turn those three outcomes into two language classes. Almost every GATE question 5 min read
06Chapter 6: Closure properties: what union, intersection and complement preserveThis chapter assumes you know the definitions of recursive (decidable) and recursively enumerable (RE, semi-decidable) languages. It also assumes you can trace a deterministic Turing machine (TM) and have seen proof by contradiction. A class of languages is closed under an operation if applying th6 min read
07Chapter 7: The Church-Turing thesisThis chapter assumes you can trace a deterministic Turing machine (TM) through its configurations. It also assumes you know that multi-tape and nondeterministic machines recognize the same languages as the single-tape deterministic machine. The thesis explains why those equivalences matter. It also 5 min read
08Chapter 8: Encoding machines and the universal Turing machineThis chapter assumes you can trace a deterministic Turing machine (TM) through its configurations. It also assumes you know the difference between a decider and a recognizer, and that you know what countable and uncountable sets are. The chapter shows how a machine becomes a string, and how one fixe5 min read
09Chapter 9: Why some languages have no machine: counting and diagonalizationThis chapter assumes you know what a Turing machine (TM) is and what recursive and recursively enumerable (RE) languages are. It also assumes basic set theory: countable and uncountable sets, and proof by contradiction. The goal is to show that some languages have no Turing machine at all, and to le6 min read
10Chapter 10: The halting problem and A_TM are undecidableThis chapter assumes you can trace a Turing machine (TM) by its configurations, and that you know the difference between a recursive (decidable) language and a recursively enumerable (RE, semi-decidable) language. It also assumes you are comfortable with countable and uncountable sets and with proof6 min read
11Chapter 11: Proving undecidability by reductionThis chapter assumes you know the formal definition of a Turing machine (TM). It also assumes you know the difference between decidable and semi-decidable languages, and that you have seen the proof that A_TM and the halting problem are undecidable. Reductions are how you spread that single result t7 min read
12Chapter 12: Rice's theorem and non-trivial propertiesThis chapter assumes you know the halting problem, A_TM, and many-one reductions from the previous chapters. It also assumes you can read a Turing machine (TM) as a program and that you know the difference between recursive (decidable) and recursively enumerable (RE) languages.6 min read
13Chapter 13: The Post Correspondence ProblemThis chapter assumes you know the halting problem, many-one reductions, and context-free grammars. The Post Correspondence Problem (PCP) is a decision problem about strings, and it has no Turing machine in its statement. That makes it a convenient source problem for undecidability proofs about gramm6 min read
14Chapter 14: Chomsky hierarchy and the machine for each levelThis chapter assumes you know finite automata, regular expressions, context-free grammars and pushdown automata. It also assumes the Turing machine model and the recursive versus recursively enumerable (RE) distinction from earlier chapters. The aim is to line up four grammar families with four mach4 min read
15Chapter 15: Decidable and undecidable problems across language classesThis chapter assumes you know finite automata, context-free grammars and pushdown automata, the decidable/semi-decidable distinction, and many-one reductions. It also assumes you know the statement of Rice's theorem. The goal is a lookup table you can reason out from first principles, so you do not 5 min read
16Chapter 16: GATE patterns: a checklist for decidability questionsThis chapter assumes you know the definitions of recursive and recursively enumerable (RE) languages. It also assumes you know the closure properties, the undecidability of A_TM and the halting problem, many-one reductions, and Rice's theorem. Here you combine them into a fixed order of checks for t5 min read