SlideShare a Scribd company logo
1 of 19
Mr. Sudip Kambli, Asst. Prof.
Automata
Mr. Sudip Kambli, Asst. Prof.`
Defination of Automaton
Theory of Computation1
Mr. Sudip Kambli, Asst. Prof.
Definition of an Automaton
 Automaton are abstract model of machine that perform computational on an input
by moving through a series of state and configurations.
 At each state of the computation a transition function determines the next
configuration on the basis of a finite portion of the present configuration .
 As a result ones the computation reaches an accepting configuration it accept the
input.
 The most general and powerful automata is Turing Machine.
 The major objective of an automata theory is to develop method by which
computer scientist can describe and analyse the dynamics behaviours of discrete
system ,in which the signals are sampled periodically.
 The behaviour of these discrete system is determined by the way that the system is
constructed from storage and combinational elements.
3
Mr. Sudip Kambli, Asst. Prof.
Model of discrete automaton
X1
X2
Xn
Y1
Y2
Yn
AUTOMATON
Q1,Q2……….
Qn
4
Mr. Sudip Kambli, Asst. Prof.
Characteristics of an Automata
 Input: At each of the discrete instance of time t1, t2, t3, ….., tn the input values are as
X1, X2, X3, …., Xn, each of which can take a finite number of fixed values from the input
alphabet ∑, are applied to the input side of the model.
 Output: Y1, Y2, Y3, …., Yn, are the output of the discrete automata model, each of
which can take a finite number of fixed values form an output Y.
 States: An state is an condition of processing the inputs. At any instant of time the
automaton can be in one of the states q1, q2, q3, ….. qn.
 State relation: The next state of an automaton at any instant of time is determined by
the present state and the present input.
 Output relation: The output is related to either state only or to both the input and the
current state.
5
Mr. Sudip Kambli, Asst. Prof.
Example of Automata:
 Sequential machine: A sequential machine is a mathematical model of a certain type of simple computational
structure.
 Vending Machines: A vending machine is an automated machine that dispenses numerous items such as cold
drinks, snacks, beverages, alcohol etc. to sales automatically, after a buyer inserts currency or credit into the
machine. Vending machine is works on finite state automate to control the functions process.
 Traffic Lights: The optimization of traffic light controllers in a city is a systematic representation of handling the
instructions of traffic rules. Its process depends on a set of instruction works in a loop with switching among
instruction to control traffic.
⊳ Regular Expression Matching: It is a technique to checking the two or more regular expression are similar to
each other or not. The finite state machine is useful to checking out that the expressions are acceptable or not
by a machine or not.
⊳ Speech Recognition: Speech recognition via machine is the technology enhancement that is capable to
identify words and phrases in spoken language and convert them to a machine-readable format. Receiving
words and phrases from real world and then converted it into machine readable language automatically is
effectively solved by using finite state machine.
6
Mr. Sudip Kambli, Asst. Prof.
Automata – What is it?
 The term "Automata" is derived from the Greek word "αὐτόματα" which means "self-
acting". An automaton (Automata in plural) is an abstract self-propelled computing
device which follows a predetermined sequence of operations automatically.
 An automaton with a finite number of states is called a Finite Automaton (FA) or Finite
State Machine (FSM).
7
Mr. Sudip Kambli, Asst. Prof.
Formal definition of a Finite Automaton
Formal definition of a Finite Automaton An automaton can be represented by a 5-tuple (Q,
∑, δ, q0, F), where −
 Q is a finite set of states.
 ∑ is a finite set of symbols, called the alphabet of the automaton.
 δ is the transition function.
 q0 is the initial state from where any input is processed (q0 ∈ Q).
 F is a set of final state/states of Q (F ⊆ Q).
8
Mr. Sudip Kambli, Asst. Prof.
Related Terminologies
9
 Alphabet
 Definition − An alphabet is any finite set of symbols.
 Example − ∑ = {a, b, c, d} is an alphabet set where ‘a’, ‘b’, ‘c’, and ‘d’ are symbols.
 String
 Definition − A string is a finite sequence of symbols taken from ∑.
 Example − ‘cabcad’ is a valid string on the alphabet set ∑ = {a, b, c, d}
 Length of a String
 Definition − It is the number of symbols present in a string. (Denoted by |S|).
 Examples −
 If S = ‘cabcad’, |S|= 6
 If |S|= 0, it is called an empty string (Denoted by λ or ε)
Mr. Sudip Kambli, Asst. Prof.
Related Terminologies
10
 Kleene Star
 Definition − The Kleene star, ∑*, is a unary operator on a set of symbols or strings, ∑,
that gives the infinite set of all possible strings of all possible lengths over ∑ including
λ.
 Representation − ∑* = ∑0 ∪ ∑1 ∪ ∑2 ∪……. where ∑p is the set of all possible
strings of length p.
 Example − If ∑ = {a, b}, ∑* = {λ, a, b, aa, ab, ba, bb,………..}
 Kleene Closure / Plus
 Definition − The set ∑+ is the infinite set of all possible strings of all possible lengths
over ∑ excluding λ.
 Representation − ∑+ = ∑1 ∪ ∑2 ∪ ∑3 ∪…….
 ∑+ = ∑* − { λ }
 Example − If ∑ = { a, b } , ∑+ = { a, b, aa, ab, ba, bb,………..}
Mr. Sudip Kambli, Asst. Prof.
Related Terminologies
11
 Language
 Definition − A language is a subset of ∑* for some alphabet ∑. It can be finite or
infinite.
 Example − If the language takes all possible strings of length 2 over ∑ = {a, b}, then
L = { ab, aa, ba, bb }
Mr. Sudip Kambli, Asst. Prof.
Finite Automaton
Finite Automaton
Finite Automaton (Output) Finite Automaton with (Output)
Mealy machineMoore machine
NNon-deterministic Finite
Automaton (NDFA / NFA)
Deterministic Finite
Automaton (DFA)
12
Mr. Sudip Kambli, Asst. Prof.
Deterministic Finite Automaton (DFA)
 In DFA, for each input symbol, one can determine the state to which the machine will move.
Hence, it is called Deterministic Automaton. As it has a finite number of states, the machine is
called Deterministic Finite Machine or Deterministic Finite Automaton.
 Formal Definition of a DFA
 A DFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where −
 Q is a finite set of states.
 ∑ is a finite set of symbols called the alphabet.
 δ is the transition function where δ: Q × ∑ → Q
 q0 is the initial state from where any input is processed (q0 ∈ Q).
 F is a set of final state/states of Q (F ⊆ Q).
13
Mr. Sudip Kambli, Asst. Prof.
A DFA is represented by digraphs called
state diagram.
The vertices represent the states.
The arcs labelled with an input alphabet show
the transitions.
The initial state is denoted by an empty single
incoming arc.
The final state is indicated by double circles.
Graphical Representation of a DFA
• Example
Let a deterministic finite automaton be →
Q = {a, b, c},
∑ = {0, 1},
q0 = {a},
F = {c}, and
Transition function δ
• Transition function δ as shown by the
following table −
Present
state
Next State
for input 0
Next State for
input 1
a a b
b c a
c b c
14
Mr. Sudip Kambli, Asst. Prof.
Graphical Representation…
b
0 1
START
a c
1 0
1 0
Present
state
Next State
for input 0
Next State for
input 1
a a b
b c a
c b c
15
Mr. Sudip Kambli, Asst. Prof.
Non-deterministic Finite Automaton
 In NDFA, for a particular input symbol, the machine can move to any combination of the states in the
machine. In other words, the exact state to which the machine moves cannot be determined. Hence,
it is called Non-deterministic Automaton. As it has finite number of states, the machine is
called Non-deterministic Finite Machine or Non-deterministic Finite Automaton.
 Formal Definition of a DFA
 A NDFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where −
 Q is a finite set of states.
 ∑ is a finite set of symbols called the alphabet.
 δ is the transition function where δ: Q × ∑ → 2Q
 (Here the power set of Q (2Q) has been taken because in case of NDFA, from a state,
transition can occur to any combination of Q states)
 q0 is the initial state from where any input is processed (q0 ∈ Q).
 F is a set of final state/states of Q (F ⊆ Q). 16
Mr. Sudip Kambli, Asst. Prof.
 Graphical Representation of an NDFA: (same as
DFA)
 An NDFA is represented by digraphs called state
diagram.
 The vertices represent the states.
 The arcs labelled with an input alphabet show the
transitions.
 The initial state is denoted by an empty single
incoming arc.
 The final state is indicated by double circles.
Graphical Representation of a NDFA
• Example
Let a Non-deterministic finite automaton be
Q = {a, b, c},
∑ = {0, 1},
q0 = {a},
F = {c}, and
Transition function δ
Present
state
Next State
for input 0
Next State for
input 1
a a,b b
b c a,c
c b,c c
• Transition function δ as shown by the
following table −
17
Mr. Sudip Kambli, Asst. Prof.
Graphical Representation…
b
0 0,1
START
a c
1 0
0,1 0,1
Present
state
Next State
for input 0
Next State for
input 1
a a,b b
b c a,c
c b,c c
18
Mr. Sudip Kambli, Asst. Prof.
Thank You
19

More Related Content

What's hot

What's hot (20)

Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFA
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Toc 1 | gate | Theory of computation
Toc 1 | gate | Theory of computationToc 1 | gate | Theory of computation
Toc 1 | gate | Theory of computation
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Theory of Computation Basic Concepts and Grammar
Theory of Computation Basic Concepts and GrammarTheory of Computation Basic Concepts and Grammar
Theory of Computation Basic Concepts and Grammar
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Finite automata
Finite automataFinite automata
Finite automata
 
1.2. introduction to automata theory
1.2. introduction to automata theory1.2. introduction to automata theory
1.2. introduction to automata theory
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Dfa basics
Dfa basicsDfa basics
Dfa basics
 
Turing machine
Turing machineTuring machine
Turing machine
 
Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1Theory of Automata and formal languages unit 1
Theory of Automata and formal languages unit 1
 
NFA & DFA
NFA & DFANFA & DFA
NFA & DFA
 

Similar to Automaton

@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
AmayJaiswal4
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 
Finite Automata fgyft rtrt rr uuy y.pptx
Finite Automata fgyft rtrt  rr uuy y.pptxFinite Automata fgyft rtrt  rr uuy y.pptx
Finite Automata fgyft rtrt rr uuy y.pptx
AsadBaig49
 

Similar to Automaton (20)

Automata theory introduction
Automata theory introductionAutomata theory introduction
Automata theory introduction
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
 
Theory of automata
Theory of automataTheory of automata
Theory of automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
 
5. NFA & DFA.pdf
5. NFA & DFA.pdf5. NFA & DFA.pdf
5. NFA & DFA.pdf
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
 
Unit iv
Unit ivUnit iv
Unit iv
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTES
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! Edhole
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine
 
Finite Automata fgyft rtrt rr uuy y.pptx
Finite Automata fgyft rtrt  rr uuy y.pptxFinite Automata fgyft rtrt  rr uuy y.pptx
Finite Automata fgyft rtrt rr uuy y.pptx
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
 
Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3
 
Formalization Machines and Sastes
Formalization Machines and SastesFormalization Machines and Sastes
Formalization Machines and Sastes
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Automaton

  • 1. Mr. Sudip Kambli, Asst. Prof. Automata
  • 2. Mr. Sudip Kambli, Asst. Prof.` Defination of Automaton Theory of Computation1
  • 3. Mr. Sudip Kambli, Asst. Prof. Definition of an Automaton  Automaton are abstract model of machine that perform computational on an input by moving through a series of state and configurations.  At each state of the computation a transition function determines the next configuration on the basis of a finite portion of the present configuration .  As a result ones the computation reaches an accepting configuration it accept the input.  The most general and powerful automata is Turing Machine.  The major objective of an automata theory is to develop method by which computer scientist can describe and analyse the dynamics behaviours of discrete system ,in which the signals are sampled periodically.  The behaviour of these discrete system is determined by the way that the system is constructed from storage and combinational elements. 3
  • 4. Mr. Sudip Kambli, Asst. Prof. Model of discrete automaton X1 X2 Xn Y1 Y2 Yn AUTOMATON Q1,Q2………. Qn 4
  • 5. Mr. Sudip Kambli, Asst. Prof. Characteristics of an Automata  Input: At each of the discrete instance of time t1, t2, t3, ….., tn the input values are as X1, X2, X3, …., Xn, each of which can take a finite number of fixed values from the input alphabet ∑, are applied to the input side of the model.  Output: Y1, Y2, Y3, …., Yn, are the output of the discrete automata model, each of which can take a finite number of fixed values form an output Y.  States: An state is an condition of processing the inputs. At any instant of time the automaton can be in one of the states q1, q2, q3, ….. qn.  State relation: The next state of an automaton at any instant of time is determined by the present state and the present input.  Output relation: The output is related to either state only or to both the input and the current state. 5
  • 6. Mr. Sudip Kambli, Asst. Prof. Example of Automata:  Sequential machine: A sequential machine is a mathematical model of a certain type of simple computational structure.  Vending Machines: A vending machine is an automated machine that dispenses numerous items such as cold drinks, snacks, beverages, alcohol etc. to sales automatically, after a buyer inserts currency or credit into the machine. Vending machine is works on finite state automate to control the functions process.  Traffic Lights: The optimization of traffic light controllers in a city is a systematic representation of handling the instructions of traffic rules. Its process depends on a set of instruction works in a loop with switching among instruction to control traffic. ⊳ Regular Expression Matching: It is a technique to checking the two or more regular expression are similar to each other or not. The finite state machine is useful to checking out that the expressions are acceptable or not by a machine or not. ⊳ Speech Recognition: Speech recognition via machine is the technology enhancement that is capable to identify words and phrases in spoken language and convert them to a machine-readable format. Receiving words and phrases from real world and then converted it into machine readable language automatically is effectively solved by using finite state machine. 6
  • 7. Mr. Sudip Kambli, Asst. Prof. Automata – What is it?  The term "Automata" is derived from the Greek word "αὐτόματα" which means "self- acting". An automaton (Automata in plural) is an abstract self-propelled computing device which follows a predetermined sequence of operations automatically.  An automaton with a finite number of states is called a Finite Automaton (FA) or Finite State Machine (FSM). 7
  • 8. Mr. Sudip Kambli, Asst. Prof. Formal definition of a Finite Automaton Formal definition of a Finite Automaton An automaton can be represented by a 5-tuple (Q, ∑, δ, q0, F), where −  Q is a finite set of states.  ∑ is a finite set of symbols, called the alphabet of the automaton.  δ is the transition function.  q0 is the initial state from where any input is processed (q0 ∈ Q).  F is a set of final state/states of Q (F ⊆ Q). 8
  • 9. Mr. Sudip Kambli, Asst. Prof. Related Terminologies 9  Alphabet  Definition − An alphabet is any finite set of symbols.  Example − ∑ = {a, b, c, d} is an alphabet set where ‘a’, ‘b’, ‘c’, and ‘d’ are symbols.  String  Definition − A string is a finite sequence of symbols taken from ∑.  Example − ‘cabcad’ is a valid string on the alphabet set ∑ = {a, b, c, d}  Length of a String  Definition − It is the number of symbols present in a string. (Denoted by |S|).  Examples −  If S = ‘cabcad’, |S|= 6  If |S|= 0, it is called an empty string (Denoted by λ or ε)
  • 10. Mr. Sudip Kambli, Asst. Prof. Related Terminologies 10  Kleene Star  Definition − The Kleene star, ∑*, is a unary operator on a set of symbols or strings, ∑, that gives the infinite set of all possible strings of all possible lengths over ∑ including λ.  Representation − ∑* = ∑0 ∪ ∑1 ∪ ∑2 ∪……. where ∑p is the set of all possible strings of length p.  Example − If ∑ = {a, b}, ∑* = {λ, a, b, aa, ab, ba, bb,………..}  Kleene Closure / Plus  Definition − The set ∑+ is the infinite set of all possible strings of all possible lengths over ∑ excluding λ.  Representation − ∑+ = ∑1 ∪ ∑2 ∪ ∑3 ∪…….  ∑+ = ∑* − { λ }  Example − If ∑ = { a, b } , ∑+ = { a, b, aa, ab, ba, bb,………..}
  • 11. Mr. Sudip Kambli, Asst. Prof. Related Terminologies 11  Language  Definition − A language is a subset of ∑* for some alphabet ∑. It can be finite or infinite.  Example − If the language takes all possible strings of length 2 over ∑ = {a, b}, then L = { ab, aa, ba, bb }
  • 12. Mr. Sudip Kambli, Asst. Prof. Finite Automaton Finite Automaton Finite Automaton (Output) Finite Automaton with (Output) Mealy machineMoore machine NNon-deterministic Finite Automaton (NDFA / NFA) Deterministic Finite Automaton (DFA) 12
  • 13. Mr. Sudip Kambli, Asst. Prof. Deterministic Finite Automaton (DFA)  In DFA, for each input symbol, one can determine the state to which the machine will move. Hence, it is called Deterministic Automaton. As it has a finite number of states, the machine is called Deterministic Finite Machine or Deterministic Finite Automaton.  Formal Definition of a DFA  A DFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where −  Q is a finite set of states.  ∑ is a finite set of symbols called the alphabet.  δ is the transition function where δ: Q × ∑ → Q  q0 is the initial state from where any input is processed (q0 ∈ Q).  F is a set of final state/states of Q (F ⊆ Q). 13
  • 14. Mr. Sudip Kambli, Asst. Prof. A DFA is represented by digraphs called state diagram. The vertices represent the states. The arcs labelled with an input alphabet show the transitions. The initial state is denoted by an empty single incoming arc. The final state is indicated by double circles. Graphical Representation of a DFA • Example Let a deterministic finite automaton be → Q = {a, b, c}, ∑ = {0, 1}, q0 = {a}, F = {c}, and Transition function δ • Transition function δ as shown by the following table − Present state Next State for input 0 Next State for input 1 a a b b c a c b c 14
  • 15. Mr. Sudip Kambli, Asst. Prof. Graphical Representation… b 0 1 START a c 1 0 1 0 Present state Next State for input 0 Next State for input 1 a a b b c a c b c 15
  • 16. Mr. Sudip Kambli, Asst. Prof. Non-deterministic Finite Automaton  In NDFA, for a particular input symbol, the machine can move to any combination of the states in the machine. In other words, the exact state to which the machine moves cannot be determined. Hence, it is called Non-deterministic Automaton. As it has finite number of states, the machine is called Non-deterministic Finite Machine or Non-deterministic Finite Automaton.  Formal Definition of a DFA  A NDFA can be represented by a 5-tuple (Q, ∑, δ, q0, F) where −  Q is a finite set of states.  ∑ is a finite set of symbols called the alphabet.  δ is the transition function where δ: Q × ∑ → 2Q  (Here the power set of Q (2Q) has been taken because in case of NDFA, from a state, transition can occur to any combination of Q states)  q0 is the initial state from where any input is processed (q0 ∈ Q).  F is a set of final state/states of Q (F ⊆ Q). 16
  • 17. Mr. Sudip Kambli, Asst. Prof.  Graphical Representation of an NDFA: (same as DFA)  An NDFA is represented by digraphs called state diagram.  The vertices represent the states.  The arcs labelled with an input alphabet show the transitions.  The initial state is denoted by an empty single incoming arc.  The final state is indicated by double circles. Graphical Representation of a NDFA • Example Let a Non-deterministic finite automaton be Q = {a, b, c}, ∑ = {0, 1}, q0 = {a}, F = {c}, and Transition function δ Present state Next State for input 0 Next State for input 1 a a,b b b c a,c c b,c c • Transition function δ as shown by the following table − 17
  • 18. Mr. Sudip Kambli, Asst. Prof. Graphical Representation… b 0 0,1 START a c 1 0 0,1 0,1 Present state Next State for input 0 Next State for input 1 a a,b b b c a,c c b,c c 18
  • 19. Mr. Sudip Kambli, Asst. Prof. Thank You 19