Formal Definition of a Finite Automaton (FA)
🤖 Formal Definition of a Finite Automaton (FA)
A Finite Automaton (FA) is a mathematical model of a system with finite memory. It processes a string of symbols and determines whether to accept or reject the string based on its transitions.
📘 Definition (from Linz and Hopcroft):
A Finite Automaton is a 5-tuple:
Where:
Symbol | Meaning |
---|---|
A finite set of states | |
A finite input alphabet (symbols the machine can read) | |
A transition function: | |
The start state, where | |
A set of accepting (final) states, where |
🛠️ Intuitive Meaning:
-
The machine starts in initial state .
-
It reads an input string symbol by symbol.
-
Based on each symbol and current state, it uses the transition function to move to the next state.
-
After reading the entire string, if it ends in a state that is in (accepting), the string is accepted; otherwise, it is rejected.
🧪 Example:
Let be defined as:
-
-
-
defined as:
-
is the start state
-
👉 This FA accepts all strings with even number of 1s.
Comments
Post a Comment