SlideShare a Scribd company logo
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.
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
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

PDF
Computer organiztion5
PPTX
Introduction to arm processor
PDF
PDF
Introduction in microcontroller
PPTX
Flags
 
PDF
Programed I/O Modul..
PDF
CS4109 Computer System Architecture
PPT
BASIC COMPUTER ORGANIZATION AND DESIGN
Computer organiztion5
Introduction to arm processor
Introduction in microcontroller
Flags
 
Programed I/O Modul..
CS4109 Computer System Architecture
BASIC COMPUTER ORGANIZATION AND DESIGN

What's hot (20)

PPT
Finite automata(For college Seminars)
PDF
Turing Machine
PDF
Ch3 4 regular expression and grammar
PDF
FPGA Verilog Processor Design
PPTX
Chomsky Normal Form
PPT
Introduction to embedded systems
PPTX
8085 microprocessor
PPT
digital logic circuits, logic gates, boolean algebra
PPTX
Arithmetic & Logic Unit
PPTX
8259 Operating Modes.pptx
PPT
Turing Machine
PPTX
Von-Neumann machine and IAS architecture
PPT
Control Memory
PPT
CPU Register Organization.ppt
PDF
Timers and counters of microcontroller 8051
PPTX
Microprocessor 8086
PPT
central processing unit and pipeline
PPTX
Parsing LL(1), SLR, LR(1)
PPTX
Push down automata
PDF
Turing machines
Finite automata(For college Seminars)
Turing Machine
Ch3 4 regular expression and grammar
FPGA Verilog Processor Design
Chomsky Normal Form
Introduction to embedded systems
8085 microprocessor
digital logic circuits, logic gates, boolean algebra
Arithmetic & Logic Unit
8259 Operating Modes.pptx
Turing Machine
Von-Neumann machine and IAS architecture
Control Memory
CPU Register Organization.ppt
Timers and counters of microcontroller 8051
Microprocessor 8086
central processing unit and pipeline
Parsing LL(1), SLR, LR(1)
Push down automata
Turing machines
Ad

Viewers also liked (10)

PPT
Introduction to fa and dfa
PDF
Webinar: Design Patterns : Tailor-made solutions for Software Development
PPT
Theory of computing
PDF
March12 natarajan
PPT
Complex System Engineering
PDF
Linear Regression
PPTX
Theory of machines
PDF
Overview of solutions for machine monitoring
PPTX
Faulty radiographs
PDF
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Introduction to fa and dfa
Webinar: Design Patterns : Tailor-made solutions for Software Development
Theory of computing
March12 natarajan
Complex System Engineering
Linear Regression
Theory of machines
Overview of solutions for machine monitoring
Faulty radiographs
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Ad

Similar to FINITE STATE MACHINE AND CHOMSKY HIERARCHY (20)

PPTX
Deterministic Finite Automata (DFA).pptx
PPT
Finite State Machine by M. Arokiasamy
PPTX
UNIT 1 COMPILER DESIGN TO BE ENHANCE THEIR FEATURES AND BEHAVIOURS.pptx
PDF
Volume 2-issue-6-2205-2207
PDF
Volume 2-issue-6-2205-2207
PPTX
Finite State Machine.ppt.pptx
PPT
1. Introduction to __Automata Theory.ppt
PPTX
Theory of automata introduction Lecture.pptx
PPTX
Chapter 2_Finite Automata in Formal Language.pptx
PDF
Pattern Matching using Computational and Automata Theory
PDF
Free Ebooks Download ! Edhole
PDF
International journal of compiling
PDF
International journal of compiling
PDF
Finite automata
PDF
COMPILER DESIGN- Introduction & Lexical Analysis:
PDF
Introduction to the theory of computation
PPTX
TCS MUBAI UNIVERSITY ATHARVA COLLEGE OF ENGINEERING.pptx
PPTX
Chapter-twoChapter-three automata and complexity theory .pptx
PPT
String Matching with Finite Automata,Aho corasick,
PDF
TCS GOLDEN NOTES THEORY OF COMPUTATION .pdf
Deterministic Finite Automata (DFA).pptx
Finite State Machine by M. Arokiasamy
UNIT 1 COMPILER DESIGN TO BE ENHANCE THEIR FEATURES AND BEHAVIOURS.pptx
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
Finite State Machine.ppt.pptx
1. Introduction to __Automata Theory.ppt
Theory of automata introduction Lecture.pptx
Chapter 2_Finite Automata in Formal Language.pptx
Pattern Matching using Computational and Automata Theory
Free Ebooks Download ! Edhole
International journal of compiling
International journal of compiling
Finite automata
COMPILER DESIGN- Introduction & Lexical Analysis:
Introduction to the theory of computation
TCS MUBAI UNIVERSITY ATHARVA COLLEGE OF ENGINEERING.pptx
Chapter-twoChapter-three automata and complexity theory .pptx
String Matching with Finite Automata,Aho corasick,
TCS GOLDEN NOTES THEORY OF COMPUTATION .pdf

Recently uploaded (20)

PDF
Well-logging-methods_new................
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Sustainable Sites - Green Building Construction
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Geodesy 1.pptx...............................................
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
web development for engineering and engineering
PDF
PPT on Performance Review to get promotions
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
Well-logging-methods_new................
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CYBER-CRIMES AND SECURITY A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Lecture Notes Electrical Wiring System Components
Sustainable Sites - Green Building Construction
Embodied AI: Ushering in the Next Era of Intelligent Systems
Geodesy 1.pptx...............................................
CH1 Production IntroductoryConcepts.pptx
web development for engineering and engineering
PPT on Performance Review to get promotions
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
Mechanical Engineering MATERIALS Selection
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Internet of Things (IOT) - A guide to understanding

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.
  • 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