SlidePub
Home
Categories
Login
Register
Home
General
2-Chomsky hierarchy of languages.ppt
2-Chomsky hierarchy of languages.ppt
shruti533256
130 views
4 slides
Sep 04, 2023
Slide
1
of 4
Previous
Next
1
2
3
4
About This Presentation
Brief
Size:
727.7 KB
Language:
en
Added:
Sep 04, 2023
Slides:
4 pages
Slide Content
Slide 1
Chomsky hierarchy of languages
Slide 2
AccordingtoChomskyhierarchy,grammarisdividedinto4typesasfollows:
1.Type0isknownasunrestrictedgrammar.
2.Type1isknownascontext-sensitivegrammar.
3.Type2isknownasacontext-freegrammar.
4.Type3RegularGrammar.
Type0:UnrestrictedGrammar:
Type-0grammarsincludeallformalgrammar.Type0grammarlanguagesare
recognizedbyturingmachine.TheselanguagesarealsoknownastheRecursively
Enumerablelanguages.
GrammarProductionintheformofwhere
\alpha
V:VariablesT
:Terminals.
is(V+T)*V(V+T)*
is(V+T)*.
Intype0theremustbeatleastonevariableontheLeftsideof
production.Forexample:
Sab-->baA-->S
Here,VariablesareS,A,andTerminalsa,b.
Type1:Context-SensitiveGrammar
Slide 3
Type-1grammarsgeneratecontext-sensitivelanguages.Thelanguagegeneratedby
thegrammarisrecognizedbytheLinearBoundAutomata
InType1
FirstofallType1grammarshouldbeType0.
GrammarProductionintheformof
|\alpha|<=|\beta|
Thatisthecountofsymbolin
Alsoβ ∈ (V+T)
+
i.e.β cannotbeε
islessthanorequalto
ForExample:
S-->AB
AB-->abcB-->b
Type2:Context-FreeGrammar:Type-2grammarsgeneratecontext-free
languages.ThelanguagegeneratedbythegrammarisrecognizedbyaPushdown
automata.InType2:
Firstofall,itshouldbeType1.
Theleft-handsideofproductioncanhaveonlyonevariableandthereis
norestrictionon
|=1.|\alpha
Forexample:
S-->AB
A.-->a
B.-->b
Type3:RegularGrammar:Type-3grammarsgenerateregularlanguages.These
languagesareexactlyalllanguagesthatcanbeacceptedbyafinite-state
automaton.Type3isthemostrestrictedformofgrammar.
Type3shouldbeinthegivenformonly:
V-->VT/T
(or)
V-->TV/T
Forexample:
S-->a
(left-regulargrammar)
(right-regulargrammar)
Theaboveformiscalledstrictlyregulargrammar.
Slide 4
Thereisanotherformofregulargrammarcalledextendedregulargrammar.Inthis
form:
V-->VT*/T*.
(or)
V-->T*V/T*
Forexample:
S-->ab.
(extendedleft-regulargrammar)
(extendedright-regulargrammar)
Tags
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
130
Slides
4
Age
846 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
46 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
55 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
46 views
14
Fertility awareness methods for women in the society
Isaiah47
46 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
47 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
46 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-4)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better