SlideShare a Scribd company logo
1 of 21
SUBJECT – 1. FINITE STATE MACHINE AND 2. CHOMSKY HIERARCHY 
BBA(E-COMMERCE)
FINITE STATE MACHINE
MACHINE 
 A device that receive a set of input signals 
and produce a set of output signals is 
called information processing device. 
Input 
signals 
Input 
processing 
machine 
Output 
signals
Examples of machines 
 A Table lamp is an information processing 
machine with the i/p signals being either up 
or down position of switch and o/p signals 
being either on or off. 
 An Adder is an information processing 
machine with the input signals being to 
decimal number and output signal being their 
sum. 
 An automobile is an information processing 
machine with depression of accelerator and 
angular position of steering wheel is an input 
signal and output signals are speed and 
direction. 
 Digital computer take input and displays
STATE MACHINE 
 a state machine is any device that stores the status of 
something at a given time and can operate on input to 
change the status and/or cause an action or output to 
take place for any given change. A computer is 
basically a state machine and each machine instruction 
is input that changes one or more states and may 
cause other actions to take place. Each computer's data 
register stores a state. The read-only memory from 
which a boot program is loaded stores a state (the boot 
program itself is an initial state). The operating system 
is itself a state and each application that runs begins 
with some initial state that may change as it begins to 
handle input. Thus, at any moment in time, a computer 
system can be seen as a very complex set of states 
and each program in it as a state machine. In practice, 
however, state machines are used to develop and 
describe specific device or program interactions.
a state machine can be 
described as: 
 An initial state or record of something 
stored someplace . 
 A set of possible input events . 
 A set of new states that may result 
from the input . 
 A set of possible actions or output 
events that result from a new state .
FINITE STATE MACHINE 
 A finite state machine is one that has a 
limited or finite number of possible 
states. (An infinite state machine can be 
conceived but is not practical.) A finite 
state machine can be used both as a 
development tool for approaching and 
solving problems and as a formal way of 
describing the solution for later 
developers and system maintainers. 
There are a number of ways to show 
state machines, from simple tables 
through graphically animated 
illustrations.
Finite state machine is specified by six tuples 
(S,I,O,F,G,So) 
Where, 
S=finite sets of states (S0,S1,S2,S3….) whose 
elements are called state of machine. 
So= So is special element of S referred to as 
the initial state of machine. 
I=(I1,I2,….) is finite set of input letters. 
O=(O1,O2,….) is finite set of output letters. 
F= is a function from S*I to S called the 
transition function. 
G=is a function from S to O called the output 
function.
 At any instant a finite state machine is one 
of its state. On receiving an input symbol 
the machine will go to the another state 
according to the transition function at each 
state machine produces an output function. 
 At every beginning the machine is in initial 
state as 0.
CHOMSKY HIERARCHY
Introduction 
 the Chomsky hierarchy (occasionally 
referred to as Chomsky-Schützenberger 
hierarchy) is a containment hierarchy of 
classes of formal grammars. This hierarchy of 
grammars was described by Noam Chomsky 
in 1956. It is also named after Marcel-Paul 
Schützenberger, who played a crucial role in 
the development of the theory of formal 
languages. The Chomsky Hierarchy, in 
essence, allows the possibility for the 
understanding and use of a computer science 
model which enables a programmer to 
accomplish meaningful linguistic goals 
systematically.
Chomsky hierarchy 
• Grammars are classified by the form 
of their productions. 
• Each category represents a class of 
languages 
that can be recognized by a different 
automaton. 
• The classes are nested, with type 0 
being 
the largest and most general, and 
type 3 being the smallest and most 
restricted.
To define certain types of 
grammar we require a definition 
– in a production of the form - 
aAb → a α b 
Where, 
a is called left context 
b is right context 
a α b is the replacement string 
For example: in a production aA → abA 
the left context is a , the right context 
is A .
Chomsky classifies grammar 
into 4 types : 
 Type 0 
 Type 1 
 Type 2 
 Type 3
Grammar Languages Automaton 
Type-0 Recursively enumerable Turing machine 
Type-1 Context-sensitive Linear-bounded non-deterministic Turing machine 
Type-2 Context-free Non-deterministic pushdown automaton 
Type-3 Regular Finite state automaton
Type 3 : 
A grammar is said to be type 3 grammar 
or regular grammar if all production in 
grammar are of the form A → a then A → 
aB or equivalent of the form A→a or 
A→Ba. 
in other words in any production (set of 
rules) the left hand string is single non-terminal 
and the right hand string is 
either a terminal or a terminal followed 
by non-terminal.
Type 2 : 
A grammar is said to be type 2 
grammar or context free grammar if 
every production in grammar is of the 
form A → α . 
In other words in any production left 
hand string is always a non-terminal 
and a right hand string is any string on 
T U N . 
Example : A → aBc
Type 1 : 
A grammar is said to type 1 grammar or 
context sensitive grammar if for every 
production α→ß . The length of ß is 
larger than or equal to the length of α . 
for example: 
A→ab 
A→aA 
aAb→aBCb
Type 0 : 
 A grammar with no restriction is referred 
to as type 0 grammar . They generate 
exactly all languages that can be 
recognized by a Turing machine. These 
languages are also known as the 
recursively enumerable languages. Note 
that this is different from the recursive 
languages which can be decided by an 
always-halting Turing machine. 
 Class 0 grammars are too general to 
describe the syntax of programming 
languages and natural languages .
END

More Related Content

What's hot

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machinesAYESHA JAVED
 
Regular expressions
Regular expressionsRegular expressions
Regular expressionsEran Zimbler
 
Topological Sort Algorithm.pptx
Topological Sort Algorithm.pptxTopological Sort Algorithm.pptx
Topological Sort Algorithm.pptxMuhammadShafi89
 
Implementation Of String Functions In C
Implementation Of String Functions In CImplementation Of String Functions In C
Implementation Of String Functions In CFazila Sadia
 
Context free grammars
Context free grammarsContext free grammars
Context free grammarsShiraz316
 
Stack using Linked List
Stack using Linked ListStack using Linked List
Stack using Linked ListSayantan Sur
 
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-Black
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-BlackAlgoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-Black
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-BlackPier Luca Lanzi
 
Kurzwörter und Abkürzungen in der deutschen Gegenwartssprache
Kurzwörter und Abkürzungen in der deutschen GegenwartsspracheKurzwörter und Abkürzungen in der deutschen Gegenwartssprache
Kurzwörter und Abkürzungen in der deutschen GegenwartsspracheJelena Kostic-Tomovic
 
Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFAMaulik Togadiya
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Srimatre K
 
4_5802928814682016556.pptx
4_5802928814682016556.pptx4_5802928814682016556.pptx
4_5802928814682016556.pptxAshenafiGirma5
 
Control_Statements_in_Python.pptx
Control_Statements_in_Python.pptxControl_Statements_in_Python.pptx
Control_Statements_in_Python.pptxKoteswari Kasireddy
 
Introduction To Autumata Theory
 Introduction To Autumata Theory Introduction To Autumata Theory
Introduction To Autumata TheoryAbdul Rehman
 
Loops in c language
Loops in c languageLoops in c language
Loops in c languagetanmaymodi4
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free GrammarsMarina Santini
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computationRubaya Mim
 

What's hot (20)

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Topological Sort Algorithm.pptx
Topological Sort Algorithm.pptxTopological Sort Algorithm.pptx
Topological Sort Algorithm.pptx
 
Implementation Of String Functions In C
Implementation Of String Functions In CImplementation Of String Functions In C
Implementation Of String Functions In C
 
Context free grammars
Context free grammarsContext free grammars
Context free grammars
 
TOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFATOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFA
 
Stack using Linked List
Stack using Linked ListStack using Linked List
Stack using Linked List
 
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-Black
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-BlackAlgoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-Black
Algoritmi e Calcolo Parallelo 2012/2013 - Alberi Red-Black
 
Kurzwörter und Abkürzungen in der deutschen Gegenwartssprache
Kurzwörter und Abkürzungen in der deutschen GegenwartsspracheKurzwörter und Abkürzungen in der deutschen Gegenwartssprache
Kurzwörter und Abkürzungen in der deutschen Gegenwartssprache
 
Parsing
ParsingParsing
Parsing
 
Regular expression with DFA
Regular expression with DFARegular expression with DFA
Regular expression with DFA
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2
 
4_5802928814682016556.pptx
4_5802928814682016556.pptx4_5802928814682016556.pptx
4_5802928814682016556.pptx
 
Control_Statements_in_Python.pptx
Control_Statements_in_Python.pptxControl_Statements_in_Python.pptx
Control_Statements_in_Python.pptx
 
SWITCH CASE STATEMENT IN C
SWITCH CASE STATEMENT IN CSWITCH CASE STATEMENT IN C
SWITCH CASE STATEMENT IN C
 
Introduction To Autumata Theory
 Introduction To Autumata Theory Introduction To Autumata Theory
Introduction To Autumata Theory
 
Loops in c language
Loops in c languageLoops in c language
Loops in c language
 
Lecture: Context-Free Grammars
Lecture: Context-Free GrammarsLecture: Context-Free Grammars
Lecture: Context-Free Grammars
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
 
L3 cfg
L3 cfgL3 cfg
L3 cfg
 

Viewers also liked

Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfadeepinderbedi
 
Webinar: Design Patterns : Tailor-made solutions for Software Development
Webinar: Design Patterns : Tailor-made solutions for Software DevelopmentWebinar: Design Patterns : Tailor-made solutions for Software Development
Webinar: Design Patterns : Tailor-made solutions for Software DevelopmentEdureka!
 
Theory of computing
Theory of computingTheory of computing
Theory of computingRanjan Kumar
 
March12 natarajan
March12 natarajanMarch12 natarajan
March12 natarajanBBKuhn
 
Complex System Engineering
Complex System EngineeringComplex System Engineering
Complex System EngineeringEmmanuel Fuchs
 
Overview of solutions for machine monitoring
Overview of solutions for machine monitoringOverview of solutions for machine monitoring
Overview of solutions for machine monitoringIvan Zgela
 
Faulty radiographs
Faulty     radiographsFaulty     radiographs
Faulty radiographsmelbia shine
 
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...Edureka!
 

Viewers also liked (10)

Introduction to fa and dfa
Introduction to fa  and dfaIntroduction to fa  and dfa
Introduction to fa and dfa
 
Webinar: Design Patterns : Tailor-made solutions for Software Development
Webinar: Design Patterns : Tailor-made solutions for Software DevelopmentWebinar: Design Patterns : Tailor-made solutions for Software Development
Webinar: Design Patterns : Tailor-made solutions for Software Development
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
March12 natarajan
March12 natarajanMarch12 natarajan
March12 natarajan
 
Complex System Engineering
Complex System EngineeringComplex System Engineering
Complex System Engineering
 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
 
Theory of machines
Theory of machinesTheory of machines
Theory of machines
 
Overview of solutions for machine monitoring
Overview of solutions for machine monitoringOverview of solutions for machine monitoring
Overview of solutions for machine monitoring
 
Faulty radiographs
Faulty     radiographsFaulty     radiographs
Faulty radiographs
 
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
 

Similar to FINITE STATE MACHINE AND CHOMSKY HIERARCHY

Finite State Machine by M. Arokiasamy
Finite State Machine by M. ArokiasamyFinite State Machine by M. Arokiasamy
Finite State Machine by M. ArokiasamyMark Arokiasamy
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Editor IJARCET
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Editor IJARCET
 
Finite State Machine.ppt.pptx
Finite State Machine.ppt.pptxFinite State Machine.ppt.pptx
Finite State Machine.ppt.pptxSKUP1
 
Pattern Matching using Computational and Automata Theory
Pattern Matching using Computational and Automata TheoryPattern Matching using Computational and Automata Theory
Pattern Matching using Computational and Automata TheoryIRJET Journal
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! EdholeEdhole.com
 
International journal of compiling
International journal of compilingInternational journal of compiling
International journal of compilingAndivann
 
Finite automata
Finite automataFinite automata
Finite automataPusp Sunar
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computationprasadmvreddy
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,8neutron8
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programmingVisnuDharsini
 
Natural Language Processing Topics for Engineering students
Natural Language Processing Topics for Engineering studentsNatural Language Processing Topics for Engineering students
Natural Language Processing Topics for Engineering studentsRosnaPHaroon
 
Finite state automaton
Finite state automatonFinite state automaton
Finite state automatonAmmAr mobark
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdfrdjo
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESsuthi
 

Similar to FINITE STATE MACHINE AND CHOMSKY HIERARCHY (20)

Finite State Machine by M. Arokiasamy
Finite State Machine by M. ArokiasamyFinite State Machine by M. Arokiasamy
Finite State Machine by M. Arokiasamy
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
Finite State Machine.ppt.pptx
Finite State Machine.ppt.pptxFinite State Machine.ppt.pptx
Finite State Machine.ppt.pptx
 
Pattern Matching using Computational and Automata Theory
Pattern Matching using Computational and Automata TheoryPattern Matching using Computational and Automata Theory
Pattern Matching using Computational and Automata Theory
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
International journal of compiling
International journal of compilingInternational journal of compiling
International journal of compiling
 
International journal of compiling
International journal of compilingInternational journal of compiling
International journal of compiling
 
Finite automata
Finite automataFinite automata
Finite automata
 
COMPILER DESIGN- Introduction & Lexical Analysis:
COMPILER DESIGN- Introduction & Lexical Analysis: COMPILER DESIGN- Introduction & Lexical Analysis:
COMPILER DESIGN- Introduction & Lexical Analysis:
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
 
Natural Language Processing Topics for Engineering students
Natural Language Processing Topics for Engineering studentsNatural Language Processing Topics for Engineering students
Natural Language Processing Topics for Engineering students
 
Finite state automaton
Finite state automatonFinite state automaton
Finite state automaton
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
 
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
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTES
 
Unit iv
Unit ivUnit iv
Unit iv
 

Recently uploaded

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 

Recently uploaded (20)

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 

FINITE STATE MACHINE AND CHOMSKY HIERARCHY

  • 1. SUBJECT – 1. FINITE STATE MACHINE AND 2. CHOMSKY HIERARCHY BBA(E-COMMERCE)
  • 3. MACHINE  A device that receive a set of input signals and produce a set of output signals is called information processing device. Input signals Input processing machine Output signals
  • 4. Examples of machines  A Table lamp is an information processing machine with the i/p signals being either up or down position of switch and o/p signals being either on or off.  An Adder is an information processing machine with the input signals being to decimal number and output signal being their sum.  An automobile is an information processing machine with depression of accelerator and angular position of steering wheel is an input signal and output signals are speed and direction.  Digital computer take input and displays
  • 5. STATE MACHINE  a state machine is any device that stores the status of something at a given time and can operate on input to change the status and/or cause an action or output to take place for any given change. A computer is basically a state machine and each machine instruction is input that changes one or more states and may cause other actions to take place. Each computer's data register stores a state. The read-only memory from which a boot program is loaded stores a state (the boot program itself is an initial state). The operating system is itself a state and each application that runs begins with some initial state that may change as it begins to handle input. Thus, at any moment in time, a computer system can be seen as a very complex set of states and each program in it as a state machine. In practice, however, state machines are used to develop and describe specific device or program interactions.
  • 6. a state machine can be described as:  An initial state or record of something stored someplace .  A set of possible input events .  A set of new states that may result from the input .  A set of possible actions or output events that result from a new state .
  • 7. FINITE STATE MACHINE  A finite state machine is one that has a limited or finite number of possible states. (An infinite state machine can be conceived but is not practical.) A finite state machine can be used both as a development tool for approaching and solving problems and as a formal way of describing the solution for later developers and system maintainers. There are a number of ways to show state machines, from simple tables through graphically animated illustrations.
  • 8. Finite state machine is specified by six tuples (S,I,O,F,G,So) Where, S=finite sets of states (S0,S1,S2,S3….) whose elements are called state of machine. So= So is special element of S referred to as the initial state of machine. I=(I1,I2,….) is finite set of input letters. O=(O1,O2,….) is finite set of output letters. F= is a function from S*I to S called the transition function. G=is a function from S to O called the output function.
  • 9.  At any instant a finite state machine is one of its state. On receiving an input symbol the machine will go to the another state according to the transition function at each state machine produces an output function.  At every beginning the machine is in initial state as 0.
  • 11. Introduction  the Chomsky hierarchy (occasionally referred to as Chomsky-Schützenberger hierarchy) is a containment hierarchy of classes of formal grammars. This hierarchy of grammars was described by Noam Chomsky in 1956. It is also named after Marcel-Paul Schützenberger, who played a crucial role in the development of the theory of formal languages. The Chomsky Hierarchy, in essence, allows the possibility for the understanding and use of a computer science model which enables a programmer to accomplish meaningful linguistic goals systematically.
  • 12. Chomsky hierarchy • Grammars are classified by the form of their productions. • Each category represents a class of languages that can be recognized by a different automaton. • The classes are nested, with type 0 being the largest and most general, and type 3 being the smallest and most restricted.
  • 13.
  • 14. To define certain types of grammar we require a definition – in a production of the form - aAb → a α b Where, a is called left context b is right context a α b is the replacement string For example: in a production aA → abA the left context is a , the right context is A .
  • 15. Chomsky classifies grammar into 4 types :  Type 0  Type 1  Type 2  Type 3
  • 16. Grammar Languages Automaton Type-0 Recursively enumerable Turing machine Type-1 Context-sensitive Linear-bounded non-deterministic Turing machine Type-2 Context-free Non-deterministic pushdown automaton Type-3 Regular Finite state automaton
  • 17. Type 3 : A grammar is said to be type 3 grammar or regular grammar if all production in grammar are of the form A → a then A → aB or equivalent of the form A→a or A→Ba. in other words in any production (set of rules) the left hand string is single non-terminal and the right hand string is either a terminal or a terminal followed by non-terminal.
  • 18. Type 2 : A grammar is said to be type 2 grammar or context free grammar if every production in grammar is of the form A → α . In other words in any production left hand string is always a non-terminal and a right hand string is any string on T U N . Example : A → aBc
  • 19. Type 1 : A grammar is said to type 1 grammar or context sensitive grammar if for every production α→ß . The length of ß is larger than or equal to the length of α . for example: A→ab A→aA aAb→aBCb
  • 20. Type 0 :  A grammar with no restriction is referred to as type 0 grammar . They generate exactly all languages that can be recognized by a Turing machine. These languages are also known as the recursively enumerable languages. Note that this is different from the recursive languages which can be decided by an always-halting Turing machine.  Class 0 grammars are too general to describe the syntax of programming languages and natural languages .
  • 21. END