Skip to content
finite-state machine

File:Automata_theory.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ176452· pop 45· linked from 785 articles

finite-state machine

Sign in to save

Also known as FSM, finite-state automaton, finite automaton, FA, finite automata, state machine

mathematical model of computation; abstract machine that can be in exactly one of a finite number of states at any given time

Wikidata facts

Show 2 more facts
Commons category
Finite state machine
Stack Exchange tag
stackoverflow.com/tags/fsm
Sources (2)

via Wikidata · CC0

~20 min read

Article

A finite-state machine (FSM) or finite-state automaton (FSA, plural: automata), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number of states at any given time. The FSM can change from one state to another in response to some inputs; the change from one state to another is called a transition. An FSM is defined by a list of its states, its initial state, and the inputs that trigger each transition. Finite-state machines are of two types—deterministic finite-state machines and non-deterministic finite-state machines. For any non-deterministic finite-state machine, an equivalent deterministic one can be constructed.

The behavior of state machines can be observed in many devices in modern society that perform a predetermined sequence of actions depending on a sequence of events with which they are presented. Simple examples are vending machines, which dispense products when the proper combination of coins is deposited; elevators, whose sequence of stops is determined by the floors requested by riders; traffic lights, which change sequence when cars are waiting; and combination locks, which require the input of a sequence of numbers in the proper order.

Gallery (11)

Connections

Categories