Automata (Souvik)
Automata (Souvik)
SERAMPORE
• Formal language theory is the subject by which any form of grammar, sentence and language can be expressed in
general form.
• It acts as a base of compiler designing.
• A Finite Automaton (FA) is a mathematical model of computation used to represent and control execution flow in
systems with a finite number of states. It processes an input sequence and determines if the input is accepted or
rejected based on state transitions.
• A finite automata is a collection of 5-tuple (Q,Σ,δ,q0,F)
where:
Q: A finite set of states.
Σ: A finite set of input symbols (alphabet).
δ:Q×Σ→Q: A transition function that defines state changes based on inputs.
q0∈Q: The initial state where the automaton starts.
F⊆Q: A set of final (accepting) states.
TYPES OF FINITE AUTOMATA
A Deterministic Finite Automaton (DFA) is a type of finite state machine where, for each state and input symbol, there is
exactly one transition to another state. This means there is no ambiguity in the state transitions, and the automaton can only
follow one path for a given input string.
Example:-
Construct a DFA that accepts all strings ending with ‘a’.
Given:
Symbol
State\ a b
Σ = {a, b},
Q = {q0, q1}, q0 q1 q0
F = {q1} q1 q1 q0
TYPES OF FINITE AUTOMATA
Path Only one path is followed at any time. Multiple paths may be followed
simultaneously.
Conversion Cannot be converted into an NFA. Can be converted into an equivalent DFA
(may increase the number of states).
APPLICATIONS OF FINITE AUTOMATA