Open the editor

Computer science · University

Finite State Machine Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

A finite state machine is always in one of a few states and moves between them as inputs arrive. Students follow a coin-operated turnstile, trace a machine that checks binary strings and fill in a transition table.

The slides, one by one

1 Finite state machines

States, inputs and transitions

How does a turnstile know whether to let you through?

2 Each input moves the machine to a new state

Coin: unlock. Push: lock again

Grey loops: the input changes nothing

3 A transition table lists every rule

Machine E/O: even or odd number of 1s

Accept if it ends in E

4 Tracing the even-1s machine

Run the E/O machine (start in E, accept in E) on the input 1101.

→ Follow one transition per symbol

E \xrightarrow{1} O
O \xrightarrow{1} E
E \xrightarrow{0} E

It ends in O: 1101 has three 1s, so it is rejected

5 Quick check

The E/O machine reads 1001. It ends in…

  • O: rejected
  • E: accepted
  • E: rejected
  • O: accepted
Show the answer

E: accepted

Two 1s: E → O → O → O → E, an accepting state.

6 What to remember

States: what the machine remembers

Transitions: input → next state

Start state and accepting states

Used in parsers, protocols, games

Challenge: Design a machine that accepts binary strings ending in 01.

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

What is a finite state machine?

A model with a finite set of states, a start state, inputs and transition rules saying which state each input leads to. If some states are marked as accepting, it can decide whether an input string is valid.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.