Finite automaton
Finite Automaton is a simple idealized machine used to recognize patterns within input taken from some character set called an alphabet. The job of a finite automaton is to accept an input depending on whether the pattern defined by the finite automaton occurs in the input.
Â Â Â Â Â Â Â A finite automaton (an abstraction of a computer) is a finite representation of a formal language that may be an infinite set. (Automata is plural, singular is automaton) A finite automaton is a model of a particularly simple computing device that acts as a language acceptor.
Finite automaton, also known as Finite State Machine (FSM) is a mathematical model of computing used in the design of computer programs and sequential logic circuits. They are not actual machines, but abstract machines that may be in any one of some limited number of states at one time.
Formal Definition
Finite automaton (M) is formally defined by the quintuple M = (Q, âˆ‘, Î´, q0, F)
Where,
- Q is finite set called States.
- âˆ‘ is finite set called the alphabet.
- Î´ : Q Ã— âˆ‘ = Q is the transition function.
- q0 is the start state or initial state and
F âŠ† Q the set of final states or accept states.
Example:
Example:Â Here is an example of finite automaton M1
We can describe finite automaton M1 5 tuples ( Q, âˆ‘, Î´, q0 and F)
Where,
Q = {Q0, Q1}
âˆ‘= {0,1}
Î´ : Q Ã— âˆ‘ = Q is described with transition table.
State | 0 | 1 |
q0 | q0 | q1 |
q1 | q2 | q0 |
q2 | q1 | q2 |
q0= q0
F= {q1}
A Transition function takes as an argument a state and an input symbol and returns a state. The transition function will be denoted by Î´.
Â Â Â Â Â Â Â Â Â If q is a state and â€˜aâ€™ is an input symbol then Î´(q0,a) is the state p such that there is an arc labeled â€˜aâ€™ from q to p.
For above Finite Automaton:
Î´(q0,0) -> q0,
Î´(q0,1) -> q1,
Î´(q1,0) -> q1,
Î´(q1,0) -> q0.
Â
Â