Draw it, run it, prove it.

Theory of Computation

step by step

DeltaDraw is a free companion for a Theory of Computation course. Pick your chapter, draw the machine, and watch it compute one step at a time: finite automata, regular expressions, grammars, pushdown automata and Turing machines, through decidability and NP-completeness.

Follows Michael Sipser, Introduction to the Theory of Computation, 3rd edition (Cengage Learning, 2013). Section, example and theorem numbers on this site match the book.

q0 q1 q2 0,1 0 1
An NFA for binary strings that end in 01, drawn in DeltaDraw.

Chapters

Follows the chapter order of Sipser, Introduction to the Theory of Computation (3rd edition). Choose the section your class is on.

Draw it, run it, prove it

DeltaDraw is a free, browser-based learning platform for a Theory of Computation course, organized by the chapters of Sipser's Introduction to the Theory of Computation. Students draw and run machines, follow every construction one step at a time, and practice with exercises that are checked instantly. Nothing to install and no account: drawings stay in your own browser.

What you can do

  • Draw and run DFAs, NFAs, pushdown automata and Turing machines, with the input, stack or tape shown at every step
  • Convert step by step: NFA → DFA, DFA minimization, regex ⇄ NFA, grammar → Chomsky normal form, CYK, grammar → PDA
  • Prove: the pumping lemma as a game for regular and context-free languages, with a proof outline
  • Decide: run the EDFA, EQDFA and ECFG deciders, follow the diagonal proof that ATM is undecidable, and play the Post Correspondence Problem
  • Measure: compare growth rates, count a Turing machine's steps, and see the 3SAT → CLIQUE reduction
  • Practice: 50 exercises across Chapters 1–3, checked with counterexamples
  • Export diagrams as PNG, SVG, LaTeX (TikZ) or JFLAP, and use exam mode for proctored Canvas exams
Which textbook does it follow?
Michael Sipser, Introduction to the Theory of Computation, 3rd edition (Cengage Learning, 2013). The chapters, notation and numbering on every page follow the book. DeltaDraw is an independent study tool and is not affiliated with the author or the publisher.
Is DeltaDraw free?
Yes. It is free and open source, and your drawings stay in your own browser.
Can I use the diagrams in a LaTeX report?
Yes. Export LaTeX to get TikZ code, or export an SVG or high-resolution PNG.