Sikau

Learn Theory of computation

What can a computer compute — and what can it never compute?

Build the machines computer science is founded on and run them in the browser. Simulate finite automata, design your own, compile regular expressions into NFAs and use them to tokenize code. Then climb the ladder: grammars and stacks, Turing machines you program yourself, the halting problem, and why P versus NP is the biggest open question in the field.

Advanced · 10 lessons · about 7 hours · free

Start Theory of computation free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: Automata and regular languages

Machines with a fixed memory, and the patterns they can recognise.

  1. Day 1Finite automataA machine that reads a string and says yes or no.30 min
  2. Day 2Designing automataDecide what to remember, then draw the states.35 min
  3. Day 3NondeterminismNFAs follow every path at once.35 min
  4. Day 4Regular expressions to NFAsThompson's construction.40 min
  5. Day 5Project: A tokenizer from patternsMaximal munch with real automata.90 min

Unit 2: Computability and complexity

Grammars, Turing machines, the limits of computing and the cost of a search.

  1. Day 6Grammars and stacksContext-free languages need memory that grows.35 min
  2. Day 7Turing machinesA tape, a head and a table of rules.40 min
  3. Day 8Programming a Turing machinePalindromes and addition, one cell at a time.45 min
  4. Day 9The limits of computationDiagonalisation and the halting problem.40 min
  5. Day 10Capstone: P versus NPEasy to check, hard to find.50 min

Before you start

These courses make Theory of computation easier:

See all courses

Built with ❤️ by dibe.sh