uccser/cs-field-guide

View on GitHub
csfieldguide/chapters/content/en/glossary/finite-state-automaton.md

Summary

Maintainability
Test Coverage
# Finite state automaton

In formal languages, a finite state automaton (FSA) is a simple 'machine' that has states, and transitions from one state to another based on strings of input symbols.

The logic for FSAs and regular expressions are interchangeable – every FSA has an equivalent regular expression, and vice versa.