Theory of Computation — Exam Power Notes
Quick Revision Guide
Definition: Theory of Computation studies mathematical models of computation, formal languages, machines, and the
limits of algorithms.
1. Basic Concepts
• Alphabet: a finite set of symbols.
• String: a finite sequence of symbols.
• Empty string (epsilon): a string with no symbols.
• Language: a set of strings over an alphabet.
• Grammar: rules used to generate strings.
2. Finite Automata
• DFA has exactly one transition for each state and input symbol.
• NFA may have multiple possible transitions and epsilon transitions.
• DFA and NFA have equal computational power for regular languages.
3. Regular Languages
• Recognized by finite automata.
• Regular expressions describe regular languages.
• Main operations include union, concatenation and Kleene star.
• Used in pattern matching and lexical analysis.
4. Context-Free Grammars
• A CFG contains variables, terminals, production rules and a start symbol.
• CFGs are widely used to describe programming-language syntax.
• Parse trees show the structure of generated strings.
5. Pushdown Automata
• A PDA is a finite automaton with a stack.
• The stack provides additional memory.
• PDAs are closely related to context-free languages.
6. Turing Machines
• A Turing machine is a theoretical model of general computation.
• It uses a tape, read/write head, states and transition rules.
• It helps study algorithms and the limits of computation.
7. Decidability
• A decidable problem has an algorithm that always halts with the correct answer.
• An undecidable problem cannot be solved by such an algorithm for all inputs.
• The Halting Problem is a famous undecidable problem.
Quick Revision Guide
Definition: Theory of Computation studies mathematical models of computation, formal languages, machines, and the
limits of algorithms.
1. Basic Concepts
• Alphabet: a finite set of symbols.
• String: a finite sequence of symbols.
• Empty string (epsilon): a string with no symbols.
• Language: a set of strings over an alphabet.
• Grammar: rules used to generate strings.
2. Finite Automata
• DFA has exactly one transition for each state and input symbol.
• NFA may have multiple possible transitions and epsilon transitions.
• DFA and NFA have equal computational power for regular languages.
3. Regular Languages
• Recognized by finite automata.
• Regular expressions describe regular languages.
• Main operations include union, concatenation and Kleene star.
• Used in pattern matching and lexical analysis.
4. Context-Free Grammars
• A CFG contains variables, terminals, production rules and a start symbol.
• CFGs are widely used to describe programming-language syntax.
• Parse trees show the structure of generated strings.
5. Pushdown Automata
• A PDA is a finite automaton with a stack.
• The stack provides additional memory.
• PDAs are closely related to context-free languages.
6. Turing Machines
• A Turing machine is a theoretical model of general computation.
• It uses a tape, read/write head, states and transition rules.
• It helps study algorithms and the limits of computation.
7. Decidability
• A decidable problem has an algorithm that always halts with the correct answer.
• An undecidable problem cannot be solved by such an algorithm for all inputs.
• The Halting Problem is a famous undecidable problem.