Академический Документы
Профессиональный Документы
Культура Документы
THEORY OF AUTOMATA
AAMER KHAN
ABBOTTABAD UNIVERSITY OF SCIENCE &
TECHNOLOGY
Recursive Way
Examples
Regular Expression
Examples
Ways of Defining a Language
4
Descriptive way
Recursive way
Regular Expression
Finite Automata (FA) or Finite State Machine (FSM)
Ways of Defining a Language
5
An FA is defined as follows:-
Finite no of states in which one state must be initial state and more than one or
may be none can be the final states.
Also known as Finite state machine, Finite state automata
It represents an abstract machine which is used to represent a regular
language
A regular expression can also be represented using Finite Automata
Sigma Σ provides the input letters from which input strings can be formed.
FA Distinguishing Rule: For each state, there must be an out going
transition for each input letter in Sigma Σ.
Σ = {a,b} and states = 0,1,2
where 0 is an initial state and 2 is the final state.
Finite Automata
7
Regular expression
(aaa+b)*
Finite Automata
12
Finite Automata
13
Finite Automata
14
Finite Automata
15
Finite Automata Λ+a+b+(a+b)*(ab+ba+aa)
16
Martin method:
Make each state label, as it progresses, based on the input strings.
Based on the conditions of the Regular expressions or FA, only required states
are marked final. Not every FA can be modeled in this way!
17
Thanks