Deterministic Finite Automata
Deterministic Finite Automata
Finite Automata
Presented by
B.Sumalatha
DFA(Deterministic finite
automata)
• DFA refers to deterministic finite automata . Deterministic refers to
the uniqueness of the computation. The finite automata are called
deterministic finite automata if the machine is read an input string one
symbol at a time.
• In DFA , there is only one path for specific input from the current state
to the next state.
• DFA does not accept the null move, ie., the DFA cannot change state
without any input character.
• DFA can contain multiple final states, It is used in Lexical Analysis in
Compiler.
In the below diagram , we can see that from state q0
for input a, there is only one path which is going to
q1. Similarly , from q0, there is only one path for
input b going to q2.
Formula for DFA
1.Q: finite set of states
2.∑: finite set of the input symbol
3.q0: initial state
4.F: final state
5.δ: Transition function
δ: Q x ∑→Q
Example
→q0 q0 q1
q1 q2 q1
*q2 q2 q2
THANK YOU