Theory of Computation
Theory of Computation
Pick a TOC subtopic from the cards below — finite automata through decidability — each tagged with marks weightage, importance, GATE samples, and flashcards.
Learning outcomes
- Classify regular, CFL, CSL, and RE languages
- Convert among DFA, NFA, and regex at exam speed
- Use pumping lemma ideas for MCQs
- Answer basic decidability questions
Overview
Theory of Computation in GATE CSE usually carries about 6–9 marks across automata, regular languages, CFGs/PDAs, CFL properties, Turing machines, and decidability.
Questions focus on language-class identification, machine/regex conversions, pumping-lemma style reasoning, and classic decidable/undecidable problems — not long proofs.
Use the weightage table to prioritise Must-score topics (finite automata, CFG & PDA) first, then open each lesson for concepts, samples, practice, and flashcards. Pair with Compiler Design for parsing payoff.
Theory of Computation as a whole usually contributes about 6–9 marks in GATE CSE. Ranges below split that band across subtopics for revision planning — exact marks vary by year.
| Topic | Typical marks | Importance | Why it matters |
|---|---|---|---|
| Finite Automata | ~1.5–2 | Must-score | DFA/NFA/ε-NFA design, subset construction and DFA minimization with “minimum number of states” MCQs are asked almost every year. |
| Regular Expressions | ~1–1.5 | High | Regex identities, Arden’s lemma, FA ↔ regex conversion and “which regex matches this language” questions. |
| Regular Properties | ~1–1.5 | High | Pumping lemma for regular languages (to show NON-regularity), closure properties and “which language is regular” statements. |
| CFG & PDA | ~1.5–2 | Must-score | CFG for a given language, ambiguity, derivations/parse trees, PDA design and DPDA vs NPDA are steady scorers. |
| CFL Properties | ~0.5–1 | High | Which languages are CFL / non-CFL, pumping lemma for CFLs, and the closure / non-closure table (intersection, complement). |
| Turing & Decidability | ~1–1.5 | High | TM variants, recursive vs RE, decidable vs undecidable problems (A_TM, HALT, E_TM, EQ_TM), Rice’s theorem and reductions. |
- Must-score Lock these first — short, high-accuracy items.
- High Core building blocks; appear often in MCQ/NAT form.
- Moderate Less frequent, but clean marks when prepared.
Open each subtopic from the left menu (or the cards below). Together they cover about ~26 hours of first-pass TOC aligned to the GATE CSE syllabus: finite automata, regular expressions, regular properties, CFG & PDA, CFL properties, and Turing machines & decidability — with GATE-style samples, practice, and flashcards.
Finite Automata
Finite automata give the most predictable TOC marks: know the three machine models, convert NFA to DFA by subset construction, minimize a DFA by table filling, and memorise the state-count patterns for standard languages.
02Regular Expressions
Regular expressions are the algebraic face of finite automata. Master the identities, solve state equations with Arden’s lemma, and you can move between regex, NFA and DFA in the time GATE gives you.
03Regular Properties
GATE asks “which of these languages is regular?” and “which closure property holds?”. Learn the pumping-lemma game, the closure table, and the short list of classic regular and non-regular languages.
04CFG & PDA
CFG and PDA questions are steady GATE scorers: write or identify a grammar for a language, spot ambiguity, count derivation steps, and know exactly which languages a PDA (deterministic or not) can accept.
05CFL Properties
CFL property questions are short but frequent: decide whether a language is context-free, pick the right closure property, and know why intersection and complement break closure. A few memorised languages and one table settle most MCQs.
06Turing & Decidability
The decidability questions of GATE reward a clean table in your head: which languages are recursive or RE, which problems about DFAs and CFGs are decidable, and which TM questions are undecidable by Rice’s theorem.
Suggested study order
- Finite Automata → Regular Expressions
- Regular Properties
- CFG & PDA → CFL Properties
- Turing Machines & Decidability
After each topic, solve previous-year TOC questions for that unit. Keep a one-page sheet of DFA/NFA conversions, pumping-lemma patterns, CFG/PDA tricks, CFL closures, and classic decidable/undecidable problems. Pair TOC with Compiler Design for parsing payoff.
Frequently asked questions
What is TOC in GATE CSE?
Theory of Computation: regular languages, CFGs/PDAs, Turing machines, decidability, and closure properties. Open each subtopic from this hub for a full lesson.
How are TOC questions usually framed?
Identify language class, convert among DFA/NFA/regex, apply pumping-lemma style reasoning, or pick decidable/undecidable problems.
Is TOC linked to Compiler Design?
Yes. Lexical analysis and parsing reuse automata and grammar ideas, so studying TOC first helps Compiler Design.
What should I revise in the last month?
DFA minimization and NFA→DFA, Arden/state-elimination regex conversions, regular and CFL pumping patterns, ambiguous CFGs, PDA design, CFL closure table, and the classic undecidable list (A_TM, HALT, EQ_TM). Re-solve recent PYQs under timed conditions.