Theory of computation semester exam roadmap

Core algorithms

Days 4 to 9: from regular languages to Turing machines. 5 topics, about 17 hours.

  1. DFA minimisation

    About 2 h.

    • Minimise a DFA by partition refinement

    Visualisers: DFA minimisation

  2. Regular expressions

    About 4 h.

    • Build an NFA from a regular expression with Thompson's construction
    • Get a regular expression from a DFA by state elimination

    Visualisers: Regex to NFA, DFA to regex & product

  3. Context-free grammars

    About 4 h.

    • Convert a grammar to Chomsky normal form
    • Check membership with CYK

    Visualisers: CFG to CNF and GNF, CYK parsing

  4. Pushdown automata

    About 3 h.

    • Design a PDA for a context-free language and trace it

    Visualisers: Pushdown automata

  5. Turing machines and decidability

    About 4 h.

    • Design and trace a Turing machine
    • Say which problems are decidable, semi-decidable or undecidable

    Visualisers: Turing machine