Math 2.0

Computer science Definition

Finite-state machine

Builds on AlphabetFinite setFunction

Definition

A finite-state machine is a tuple M=(Q,Σ,δ,q0)M = (Q, \Sigma, \delta, q_0) where:

  1. QQ is a nonempty finite set, whose elements are the states;
  2. Σ\Sigma is an alphabet, the input alphabet;
  3. δ ⁣:Q×Σ→Q\delta \colon Q \times \Sigma \to Q is a function, the transition function;
  4. q0∈Qq_0 \in Q is the initial state.

When MM is in state qq and reads the symbol aa, it moves to the state δ(q,a)\delta(q, a).

Remarks

Example: the turnstile has Q={locked,unlocked}Q = \set{\text{locked}, \text{unlocked}}, Σ={coin,push}\Sigma = \set{\text{coin}, \text{push}}, q0=lockedq_0 = \text{locked}, δ(q,coin)=unlocked\delta(q, \text{coin}) = \text{unlocked} and δ(q,push)=locked\delta(q, \text{push}) = \text{locked} for both states qq. All four clauses hold, since QQ is finite and δ\delta is defined on every pair. Non-example: a counter with states Q=ℕQ = \N and δ(n,a)=n+1\delta(n, a) = n + 1 fails clause 1, because QQ is infinite. Adding a set F⊆QF \subseteq Q of accepting states gives a deterministic finite automaton. Adding an output function gives a Mealy or a Moore machine. Some authors also call nondeterministic variants, where δ\delta is replaced by a relation, finite-state machines.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Alphabet concept
  2. Finite set concept
  3. Function concept
  4. Finite-state machine definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Finite-state_machine
About this page
TagW2PPW81887
URIm2://W2PPW81887
Kinddefinition
WritingW0 stub
MSC68Q45
DefinesFinite-state machine
UsesAlphabet, Finite set, Function
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.