Key takeaways
- DFA design, NFA to DFA, minimisation, pumping lemma, CNF and PDA design carry most marks.
- Learn the closure properties table for regular and context-free languages.
- Each section has exam tips and formula boxes, and the last page lists the most asked practice questions.
- These are original Uncodemy revision notes, not official university notes; check your own syllabus.
About these TOC handwritten notes
This page offers Uncodemy's Theory of Computation notes as a free handwritten-style PDF. Theory of Computation studies what machines can compute, using models such as finite automata, pushdown automata and Turing machines. The notes are written in short points with neat tables, labelled diagrams, boxed formulas and exam tips, so you can revise a full unit in one sitting instead of reading a long textbook chapter.
Please note: these are original Uncodemy revision notes. They follow the common syllabus that most Indian universities share for this subject, but they are not official university notes. Check your own university syllabus and add anything it lists that is missing here.
What's inside the TOC notes
The PDF is arranged in 7 sections plus a final page of most asked practice questions. The sections follow the usual unit order of a Theory of Computation syllabus, so you can map them to your own units quickly. Here is what each section covers.
Basics
Alphabets, strings and languages, and the Chomsky hierarchy of grammars and machines.
Finite automata
DFA and NFA, a solved DFA for strings ending with 01, NFA to DFA conversion, DFA minimisation, and Mealy and Moore machines.
Regular expressions and regular languages
Regular expressions and useful identities, Arden's theorem, closure properties and the pumping lemma for regular languages.
Context-free grammars
Derivations and parse trees, ambiguity, simplification of grammars, and Chomsky and Greibach normal forms.
Pushdown automata
PDA design for languages such as a^n b^n, acceptance by final state and empty stack, and closure properties of CFLs.
Turing machines
Turing machine model, designing a TM for simple languages and its variants.
Decidability
Decidable and undecidable problems, the halting problem and famous undecidable problems.
Most asked questions (practice)
Ten exam-style questions, from DFA design to the halting problem and Rice's theorem.
How to use handwritten notes to revise TOC
TOC is a design subject. Read a section of the notes, then design a machine or grammar for a new language without looking.
- Design DFAs for three conditions: ends with, contains and divisible by a number.
- Convert one NFA to a DFA with subset construction, then minimise it.
- Write the pumping lemma proof structure once and reuse it for a^n b^n.
- Convert a small CFG to CNF step by step, removing null, unit and useless productions in order.
A simple three-pass method works well with handwritten notes. In the first pass, read one section and underline only what you do not already know. In the second pass, close the notes and write the definitions, diagrams and steps for that section on a blank sheet, then compare and correct in a different colour. In the third pass, a day or two later, answer two or three exam-style TOC questions in timed conditions using only memory. Add your own examples and doubts in the margins so the PDF becomes your personal revision copy.
Formulas, diagrams and definitions to memorise
- The Chomsky hierarchy: Type 0 (Turing machine), Type 1 (linear bounded automaton), Type 2 (PDA), Type 3 (finite automaton).
- Regular expression identities such as
(a + b)* = (a*b*)*and Arden's theoremR = Q + RPgivesR = QP*. - The pumping lemma steps for regular languages: choose the string, split into xyz, pump and show it leaves the language.
- CNF form: every production is A -> BC or A -> a.
- Closure properties table: regular languages are closed under complement and intersection; CFLs are not.
Common mistakes that cost marks
- Leaving out the dead (trap) state in a complete DFA.
- In pumping lemma proofs, choosing a specific split instead of covering every possible split.
- Converting to CNF before removing null and unit productions.
- Saying every NFA needs more states than the DFA; the DFA can need up to 2^n states.
Exam focus: TOC topics that carry the most marks
These TOC topics carry the most marks in university papers and in GATE.
- DFA and NFA design, NFA to DFA and minimisation.
- Regular expressions, Arden's theorem and the pumping lemma.
- CFG ambiguity, CNF and PDA design.
- Turing machine design, closure properties and decidability.
Typical long questions
- Design a DFA for given conditions.
- Convert an NFA to a DFA using subset construction.
- Minimise a DFA using the partition method.
- Prove that a language is not regular using the pumping lemma.
- Show that a grammar is ambiguous and convert a CFG to CNF.
- Design a PDA for a^n b^n.
- Design a Turing machine for a^n b^n c^n and explain the halting problem.
Marks per question change between universities and years, so confirm the pattern on a recent official paper. In long answers, start with a definition, add a labelled diagram or table, explain the steps and finish with an example or comparison. Underline the key term in each answer and leave a line between steps, because examiners mark faster when the structure is easy to see.
A 7-day revision plan for TOC
- Day 1: Basics, Finite automata.
- Day 2: Regular expressions and regular languages, Context-free grammars.
- Day 3: Pushdown automata.
- Day 4: Turing machines.
- Day 5: Decidability.
- Day 6: redo the designs: two DFAs, one NFA to DFA conversion, one minimisation, one CNF conversion and one PDA.
- Day 7: answer the most asked practice questions at the end of the notes from memory, then solve one official previous year paper in three hours and mark the units that cost you time.
Keep a single sheet of formulas, definitions and diagrams from the notes for the last hour before the exam, and do not start new topics on the final day.
Who these notes are for
- B.Tech CSE and IT students preparing for the semester Theory of Computation or Automata exam.
- MCA students with formal languages and automata in their syllabus.
- GATE CS aspirants revising TOC.
- Students preparing for Compiler Design, which builds on regular expressions and grammars.
The notes are a revision aid, not a first textbook. If a TOC topic is new to you, learn it from your prescribed book or class lectures first, then come back to the notes to compress and revise it. For practice, pair them with the Theory of Computation Important Questions PDF page and your university's official previous year papers. If your syllabus has a topic that is not covered here, you can ask for it through the handwritten notes request page linked below.
Download Theory of Computation Handwritten Notes PDF
Theory of Computation Handwritten Notes PDF
The PDF carries the same content as this page in a clean, print-ready layout, so you can read it offline and keep it for revision.
6 pages · 254 KB · PDF · Updated 5 Nov 2026