際際滷

際際滷Share a Scribd company logo
Prof.Neeraj Bhargava
Abhishek Kumar
Department of Computer Science
School of Engineering & System Sciences,
MDS, University Ajmer, Rajasthan, India
1
 Next simplest case: 隆(p, a, X) contains (r, Y)
for some state r and symbol Y.
 G has production [pXq] -> a[rYq].
 We can erase X and go from p to q by reading a
(entering state r and replacing the X by Y) and
then reading some w that gets P from r to q while
erasing the Y.
 Note: [pXq] =>* aw whenever [rYq]
=>* w.
2
 Third simplest case: 隆(p, a, X) contains (r,
YZ) for some state r and symbols Y and Z.
 Now, P has replaced X by YZ.
 To have the net effect of erasing X, P must
erase Y, going from state r to some state s,
and then erase Z, going from s to q.
3
4
p
X
a w x
r
Y
Z
w x
s
Z
x
q
 Since we do not know state s, we must
generate a family of productions:
[pXq] -> a[rYs][sZq]
for all states s.
 [pXq] =>* awx whenever [rYs] =>* w and
[sZq] =>* x.
5
 Suppose 隆(p, a, X) contains (r, Y1,Yk) for
some state r and k > 3.
 Generate family of productions
[pXq] ->
a[rY1s1][s1Y2s2][sk-2Yk-1sk-1][sk-1Ykq]
6
 We can prove that (q0, w, Z0)*(p, 竜, 竜) if and
only if [q0Z0p] =>* w.
 Proof is in text; it is two easy inductions.
 But state p can be anything.
 Thus, add to G another variable S, the start
symbol, and add productions S ->
[q0Z0p] for each state p.
7
Ad

Recommended

Rough sets and fuzzy rough sets in Decision Making
Rough sets and fuzzy rough sets in Decision Making
DrATAMILARASIMCA
CA unit 1 ic and digital functions
CA unit 1 ic and digital functions
Prof. Dr. K. Adisesha
Monadic second-order logic
Monadic second-order logic
okuraofvegetable
2.2.ppt.SC
2.2.ppt.SC
AMIT KUMAR
Day 1 examples
Day 1 examples
jchartiersjsd
Longest Common Subsequence
Longest Common Subsequence
Syeda
Diagonalization and eigen
Diagonalization and eigen
Paresh Parmar
Longest Common Subsequence
Longest Common Subsequence
Krishma Parekh
Pda
Pda
Dr. ABHISHEK K PANDEY
Pda
Pda
Dr. ABHISHEK K PANDEY
Toc CFG cfl properties
Toc CFG cfl properties
Md. Mehedi Hasan Shawon
Declare Your Language: Constraint Resolution 2
Declare Your Language: Constraint Resolution 2
Eelco Visser
AUTOMATA AUTOMATA Automata8Chapter7.pptx
AUTOMATA AUTOMATA Automata8Chapter7.pptx
ArjayBalberan1
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
SergioUlisesRojasAla
Logic design basics
Logic design basics
harishnn
This is a presentation on the parsing.pptx
This is a presentation on the parsing.pptx
csehithaldia
Normal Forms for CFG's.pdf
Normal Forms for CFG's.pdf
Amanda Reznor
Intro To Agda
Intro To Agda
Larry Diehl
Deterministic finite automata
Deterministic finite automata
Muhammad Love Kian
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Vivekananda Samiti
Theory of Automata and formal languages Unit 3
Theory of Automata and formal languages Unit 3
Abhimanyu Mishra
Chomsky Normal Form
Chomsky Normal Form
Jasmine Peniel
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
Minimizing boolean
Minimizing boolean
belcy d mathews
Minimizing boolean
Minimizing boolean
belcy d mathews
digital logic circuits, digital component
digital logic circuits, digital component
Rai University
Theory of Computation Unit 4
Theory of Computation Unit 4
Jena Catherine Bel D
Dfa h11
Dfa h11
Rajendran
Digital to digital
Digital to digital
Dr. ABHISHEK K PANDEY
Digital to analog
Digital to analog
Dr. ABHISHEK K PANDEY

More Related Content

Similar to Cfg to pda equivalnce 3 (20)

Pda
Pda
Dr. ABHISHEK K PANDEY
Pda
Pda
Dr. ABHISHEK K PANDEY
Toc CFG cfl properties
Toc CFG cfl properties
Md. Mehedi Hasan Shawon
Declare Your Language: Constraint Resolution 2
Declare Your Language: Constraint Resolution 2
Eelco Visser
AUTOMATA AUTOMATA Automata8Chapter7.pptx
AUTOMATA AUTOMATA Automata8Chapter7.pptx
ArjayBalberan1
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
SergioUlisesRojasAla
Logic design basics
Logic design basics
harishnn
This is a presentation on the parsing.pptx
This is a presentation on the parsing.pptx
csehithaldia
Normal Forms for CFG's.pdf
Normal Forms for CFG's.pdf
Amanda Reznor
Intro To Agda
Intro To Agda
Larry Diehl
Deterministic finite automata
Deterministic finite automata
Muhammad Love Kian
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Vivekananda Samiti
Theory of Automata and formal languages Unit 3
Theory of Automata and formal languages Unit 3
Abhimanyu Mishra
Chomsky Normal Form
Chomsky Normal Form
Jasmine Peniel
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
Minimizing boolean
Minimizing boolean
belcy d mathews
Minimizing boolean
Minimizing boolean
belcy d mathews
digital logic circuits, digital component
digital logic circuits, digital component
Rai University
Theory of Computation Unit 4
Theory of Computation Unit 4
Jena Catherine Bel D
Dfa h11
Dfa h11
Rajendran
Declare Your Language: Constraint Resolution 2
Declare Your Language: Constraint Resolution 2
Eelco Visser
AUTOMATA AUTOMATA Automata8Chapter7.pptx
AUTOMATA AUTOMATA Automata8Chapter7.pptx
ArjayBalberan1
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
SergioUlisesRojasAla
Logic design basics
Logic design basics
harishnn
This is a presentation on the parsing.pptx
This is a presentation on the parsing.pptx
csehithaldia
Normal Forms for CFG's.pdf
Normal Forms for CFG's.pdf
Amanda Reznor
Intro To Agda
Intro To Agda
Larry Diehl
Deterministic finite automata
Deterministic finite automata
Muhammad Love Kian
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Mid semexam | Theory of Computation | Akash Anand | MTH 401A | IIT Kanpur
Vivekananda Samiti
Theory of Automata and formal languages Unit 3
Theory of Automata and formal languages Unit 3
Abhimanyu Mishra
Chomsky Normal Form
Chomsky Normal Form
Jasmine Peniel
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
digital logic circuits, digital component
digital logic circuits, digital component
Rai University

More from Dr. ABHISHEK K PANDEY (20)

Digital to digital
Digital to digital
Dr. ABHISHEK K PANDEY
Digital to analog
Digital to analog
Dr. ABHISHEK K PANDEY
Analog to analog
Analog to analog
Dr. ABHISHEK K PANDEY
Wcdma interface sakshi
Wcdma interface sakshi
Dr. ABHISHEK K PANDEY
Utran architecture(rashmi)
Utran architecture(rashmi)
Dr. ABHISHEK K PANDEY
Umts
Umts
Dr. ABHISHEK K PANDEY
Osi modal
Osi modal
Dr. ABHISHEK K PANDEY
Network topologies(chetan)
Network topologies(chetan)
Dr. ABHISHEK K PANDEY
Multiplexing II
Multiplexing II
Dr. ABHISHEK K PANDEY
Est umts speech cells
Est umts speech cells
Dr. ABHISHEK K PANDEY
Digital to analog piyush sen
Digital to analog piyush sen
Dr. ABHISHEK K PANDEY
Adc
Adc
Dr. ABHISHEK K PANDEY
Reguler grammar cfg
Reguler grammar cfg
Dr. ABHISHEK K PANDEY
Regular languag regular set
Regular languag regular set
Dr. ABHISHEK K PANDEY
Regular expression for dfa
Regular expression for dfa
Dr. ABHISHEK K PANDEY
Pumping lemma
Pumping lemma
Dr. ABHISHEK K PANDEY
Pumping lemma numerical
Pumping lemma numerical
Dr. ABHISHEK K PANDEY
Pumping lemma for cfg
Pumping lemma for cfg
Dr. ABHISHEK K PANDEY
Power of authomata
Power of authomata
Dr. ABHISHEK K PANDEY
Pda1
Pda1
Dr. ABHISHEK K PANDEY
Ad

Recently uploaded (20)

Call For Papers - 17th International Conference on Wireless & Mobile Networks...
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
hosseinihamid192023
Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
Cadastral Maps
Cadastral Maps
Google
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
How to Un-Obsolete Your Legacy Keypad Design
How to Un-Obsolete Your Legacy Keypad Design
Epec Engineered Technologies
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
Fatality due to Falls at Working at Height
Fatality due to Falls at Working at Height
ssuserb8994f
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
20CE404-Soil Mechanics - 際際滷 Share PPT
20CE404-Soil Mechanics - 際際滷 Share PPT
saravananr808639
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
Call For Papers - 17th International Conference on Wireless & Mobile Networks...
hosseinihamid192023
Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
Cadastral Maps
Cadastral Maps
Google
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Rapid Prototyping for XR: Lecture 1 Introduction to Prototyping
Mark Billinghurst
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
FUNDAMENTALS OF COMPUTER ORGANIZATION AND ARCHITECTURE
Shabista Imam
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
NEW Strengthened Senior High School Gen Math.pptx
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
Fatality due to Falls at Working at Height
Fatality due to Falls at Working at Height
ssuserb8994f
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
20CE404-Soil Mechanics - 際際滷 Share PPT
20CE404-Soil Mechanics - 際際滷 Share PPT
saravananr808639
Ad

Cfg to pda equivalnce 3

  • 1. Prof.Neeraj Bhargava Abhishek Kumar Department of Computer Science School of Engineering & System Sciences, MDS, University Ajmer, Rajasthan, India 1
  • 2. Next simplest case: 隆(p, a, X) contains (r, Y) for some state r and symbol Y. G has production [pXq] -> a[rYq]. We can erase X and go from p to q by reading a (entering state r and replacing the X by Y) and then reading some w that gets P from r to q while erasing the Y. Note: [pXq] =>* aw whenever [rYq] =>* w. 2
  • 3. Third simplest case: 隆(p, a, X) contains (r, YZ) for some state r and symbols Y and Z. Now, P has replaced X by YZ. To have the net effect of erasing X, P must erase Y, going from state r to some state s, and then erase Z, going from s to q. 3
  • 5. Since we do not know state s, we must generate a family of productions: [pXq] -> a[rYs][sZq] for all states s. [pXq] =>* awx whenever [rYs] =>* w and [sZq] =>* x. 5
  • 6. Suppose 隆(p, a, X) contains (r, Y1,Yk) for some state r and k > 3. Generate family of productions [pXq] -> a[rY1s1][s1Y2s2][sk-2Yk-1sk-1][sk-1Ykq] 6
  • 7. We can prove that (q0, w, Z0)*(p, 竜, 竜) if and only if [q0Z0p] =>* w. Proof is in text; it is two easy inductions. But state p can be anything. Thus, add to G another variable S, the start symbol, and add productions S -> [q0Z0p] for each state p. 7