SlideShare a Scribd company logo
1 of 7
Download to read offline
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
1.Define Pushdown Automata.
A pushdown Automata M is a system (Q, Σ, Ґ ,δ ,q0, Z0,F) where
Q is a finite set of states.
Σ is an alphabet called the input alphabet.
Ґ is an alphabet called stack alphabet. q0 in Q is called initial state.
Zo in Ґ is start symbol in stack. F is the set of final states.
δ is a mapping from Q X (Σ U {Є} ) X Ґ to finite subsets of Q X Ґ *.
2.Compare NFA and PDA.
NFA PDA
1.The language accepted by NFA is the
regular language.
The language accepted by PDA is
Context free language.
2.NFA has no memory.
PDA is essentially an NFA with
a stack(memory).
3. It can store only limited amount of
information.
It stores unbounded limit
of information.
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
4.A language/string is accepted only
by reaching the final state.
It accepts a language either by empty
Stack or by reaching a final state.
3.Specify the two types of moves in PDA.
The move dependent on the input symbol(a) scanned is:
δ(q,a,Z) = { ( p1, γ1 ), ( p2,γ2 ),……..( pm,γm ) }
where q qnd p are states , a is in Σ ,Z is a stack symbol and γi is in Ґ*. PDA is in state
q , with input symbol a and Z the top symbol on state enter state pi Replace symbol Z
by string γi.
The move independent on input symbol is (Є-move):
δ(q,Є,Z)= { ( p1,γ1 ), ( p2,γ2 ),…………( pm,γm ) }.
Is that PDA is in state q , independent of input symbol being scanned and with
Z the top symbol on the stack enter a state pi and replace Z by γi.
4.What are the different types of language acceptances by a PDA and define
them.
For a PDA M=(Q, Σ ,Ґ ,δ ,q0 ,Z0 ,F ) we define : Language accepted by final
stateL(M) as:
*
{ w | (q0 , w , Z0 ) |--- ( p, Є , γ ) for some p in F and γ in Ґ * }.
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
Language accepted by empty / null stack N(M) is:
*
{ w | (q0,w ,Z0) |----( p, Є, Є ) for some p in Q}.
5. Is it true that the language accepted by a PDA by empty stack and final states
are different languages.
No, because the languages accepted by PDA ‘s by final state are exactly the languages
accepted by PDA’s by empty stack.
6. Define Deterministic PDA.
A PDA M =( Q, Σ ,Ґ ,δ ,q0 ,Z0 ,F ) is deterministic if:
For each q in Q and Z in Ґ , whenever δ(q,Є,Z) is nonempty ,then
δ(q,a,Z) is empty for all a in Σ.
For no q in Q , Z in Ґ , and a in Σ U { Є} does δ(q,a,Z) contains more than one
element.
(Eg): The PDA accepting {wcwR | w in ( 0+1 ) * }.
7.What is the significance of PDA?
Finite Automata is used to model regular expression and cannot be used to represent
non regular languages. Thus to model a context free language, a Pushdown
Automata is used.
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
8. When is a string accepted by a PDA?
The input string is accepted by the PDA if: The final state is reached .
The stack is empty.
9. Give examples of languages handled by PDA.
(1) L={ anbn | n>=0 },here n is unbounded , hence counting cannot be done by finite
memory. So we require a PDA ,a machine that can count without limit.
(2) L= { wwR | w Є {a,b}* } , to handle this language we need unlimited counting
capability .
10. Is NPDA (Nondeterministic PDA) and DPDA (Deterministic
PDA)equivalent?
The languages accepted by NPDA and DPDA are not equivalent. For example: wwR
is accepted by NPDA and not by any DPDA.
11. State the equivalence of acceptance by final state and empty stack.
If L = L(M2) for some PDA M2 , then L = N(M1) for some PDA M1. If L = N(M1)
for some PDA M1 ,then L = L(M2) for some PDA M2.
where L(M) = language accepted by PDA by reaching a final state.
N(M) = language accepted by PDA by empty stack.
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
12. State the equivalence of PDA and CFL.
If L is a context free language, then there exists a PDA M such that
L=N(M).
If L is N(M) for some PDA m, then L is a context free language.
13. What are the closure properties of CFL?
CFL are closed under union, concatenation and Kleene closure. CFL are closed under
substitution , homomorphism.
CFL are not closed under intersection , complementation.
Closure properties of CFL’s are used to prove that certain languages are not context
free.
14. State the pumping lemma for CFLs.
Let L be any CFL. Then there is a constant n, depending only on L, such that if z is in
L and |z| >=n, then z=uvwxy such that :
(i) |vx| >=1
(ii) |vwx| <=n and
(iii) for all i>=0 uviwxiy is in L.
15. What is the main application of pumping lemma in CFLs?
The pumping lemma can be used to prove a variety of languages are not context
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
free . Some examples are:
L1 ={ aibici | i>=1} is not a CFL.
L2= { aibjcidj | i>=1 and J>=1 } is not a CFL.
16. Give an example of Deterministic CFL.
The language L={anbn : n>=0} is a deterministic CFL
17. What are the properties of CFL?
Let G=(V,T,P,S) be a CFG
The fanout of G , Φ(G) is largest number of symbols on the RHS of
any rule in R.
The height of the parse tree is the length of the longest path from the root to some
leaf.
Sri vidya college of engineering and technology coursematerial(lecture notes)
Cs6503 Theory of computation unit III
18. Compare NPDA and DPDA.
NPDA DPDA
1. NPDA is the standard PDA
used in automata theory.
1. The standard PDA in
practical situation is DPDA.
2. Every PDA is NPDA unless otherwise
specified.
2. The PDA is deterministic in the sense
,that at most one
move is possible from any ID.
19. What are the components of PDA ?
The PDA usually consists of four components: A control unit.
A Read Unit. An input tape.
A Memory unit.
20. What is the informal definition of PDA?
A PDA is a computational machine to recognize a Context free language.
Computational power of PDA is between Finite automaton and Turing machines. The
PDA has a finite control , and the memory is organized as a stack.

More Related Content

Similar to QB104543.pdf

Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Dr. Maamoun Ahmed
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptxHarisPrince
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptHetansheeShah2
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Akila Krishnamoorthy
 
Towards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessTowards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessHector Zenil
 
Introduction to complexity theory assignment
Introduction to complexity theory assignmentIntroduction to complexity theory assignment
Introduction to complexity theory assignmenttesfahunegn minwuyelet
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.pptArwaKhallouf
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfAdiseshaK
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfAdiseshaK
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghggggggggggggggggggggggggggggggggggadugnanegero
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...appasami
 
Application of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryApplication of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryIJERA Editor
 
Application of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryApplication of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryIJERA Editor
 

Similar to QB104543.pdf (20)

TOC question bank.pdf
TOC question bank.pdfTOC question bank.pdf
TOC question bank.pdf
 
Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5Theory of Computation - Lectures 4 and 5
Theory of Computation - Lectures 4 and 5
 
Winter 9 Decidability.pptx
Winter 9 Decidability.pptxWinter 9 Decidability.pptx
Winter 9 Decidability.pptx
 
QB104541.pdf
QB104541.pdfQB104541.pdf
QB104541.pdf
 
Fsa
FsaFsa
Fsa
 
P-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.pptP-NP-and-the-Polynomial-Space.ppt
P-NP-and-the-Polynomial-Space.ppt
 
Context free grammer.ppt
Context free grammer.pptContext free grammer.ppt
Context free grammer.ppt
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 
Aho corasick-lecture
Aho corasick-lectureAho corasick-lecture
Aho corasick-lecture
 
Towards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessTowards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic Randomness
 
Introduction to complexity theory assignment
Introduction to complexity theory assignmentIntroduction to complexity theory assignment
Introduction to complexity theory assignment
 
Chapter 2 limits of DFA NDFA.ppt
Chapter 2  limits of DFA  NDFA.pptChapter 2  limits of DFA  NDFA.ppt
Chapter 2 limits of DFA NDFA.ppt
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 
TOC Solutions-Adi.pdf
TOC Solutions-Adi.pdfTOC Solutions-Adi.pdf
TOC Solutions-Adi.pdf
 
TOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdfTOC_Solutions-Adi.pdf
TOC_Solutions-Adi.pdf
 
Unit iv
Unit ivUnit iv
Unit iv
 
hghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggghghghghhghghgggggggggggggggggggggggggggggggggg
hghghghhghghgggggggggggggggggggggggggggggggggg
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...
 
Application of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryApplication of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding Theory
 
Application of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding TheoryApplication of Fuzzy Algebra in Coding Theory
Application of Fuzzy Algebra in Coding Theory
 

More from MrRRajasekarCSE

More from MrRRajasekarCSE (10)

QB104544.pdf
QB104544.pdfQB104544.pdf
QB104544.pdf
 
Learning_Deep_Models_for_Face_Anti-Spoofing_Binary.pdf
Learning_Deep_Models_for_Face_Anti-Spoofing_Binary.pdfLearning_Deep_Models_for_Face_Anti-Spoofing_Binary.pdf
Learning_Deep_Models_for_Face_Anti-Spoofing_Binary.pdf
 
Swapna siripireddy vtu 11843 .pdf
Swapna siripireddy vtu 11843 .pdfSwapna siripireddy vtu 11843 .pdf
Swapna siripireddy vtu 11843 .pdf
 
Unit I - Theorems.pdf
Unit I - Theorems.pdfUnit I - Theorems.pdf
Unit I - Theorems.pdf
 
Swapna siripireddy vtu 11843 .pdf
Swapna siripireddy vtu 11843 .pdfSwapna siripireddy vtu 11843 .pdf
Swapna siripireddy vtu 11843 .pdf
 
R-XML.docx
R-XML.docxR-XML.docx
R-XML.docx
 
R-Json.docx
R-Json.docxR-Json.docx
R-Json.docx
 
Unit I - Theorems.pdf
Unit I - Theorems.pdfUnit I - Theorems.pdf
Unit I - Theorems.pdf
 
R-Json.docx
R-Json.docxR-Json.docx
R-Json.docx
 
R-XML.docx
R-XML.docxR-XML.docx
R-XML.docx
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 

QB104543.pdf

  • 1. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III 1.Define Pushdown Automata. A pushdown Automata M is a system (Q, Σ, Ґ ,δ ,q0, Z0,F) where Q is a finite set of states. Σ is an alphabet called the input alphabet. Ґ is an alphabet called stack alphabet. q0 in Q is called initial state. Zo in Ґ is start symbol in stack. F is the set of final states. δ is a mapping from Q X (Σ U {Є} ) X Ґ to finite subsets of Q X Ґ *. 2.Compare NFA and PDA. NFA PDA 1.The language accepted by NFA is the regular language. The language accepted by PDA is Context free language. 2.NFA has no memory. PDA is essentially an NFA with a stack(memory). 3. It can store only limited amount of information. It stores unbounded limit of information.
  • 2. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III 4.A language/string is accepted only by reaching the final state. It accepts a language either by empty Stack or by reaching a final state. 3.Specify the two types of moves in PDA. The move dependent on the input symbol(a) scanned is: δ(q,a,Z) = { ( p1, γ1 ), ( p2,γ2 ),……..( pm,γm ) } where q qnd p are states , a is in Σ ,Z is a stack symbol and γi is in Ґ*. PDA is in state q , with input symbol a and Z the top symbol on state enter state pi Replace symbol Z by string γi. The move independent on input symbol is (Є-move): δ(q,Є,Z)= { ( p1,γ1 ), ( p2,γ2 ),…………( pm,γm ) }. Is that PDA is in state q , independent of input symbol being scanned and with Z the top symbol on the stack enter a state pi and replace Z by γi. 4.What are the different types of language acceptances by a PDA and define them. For a PDA M=(Q, Σ ,Ґ ,δ ,q0 ,Z0 ,F ) we define : Language accepted by final stateL(M) as: * { w | (q0 , w , Z0 ) |--- ( p, Є , γ ) for some p in F and γ in Ґ * }.
  • 3. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III Language accepted by empty / null stack N(M) is: * { w | (q0,w ,Z0) |----( p, Є, Є ) for some p in Q}. 5. Is it true that the language accepted by a PDA by empty stack and final states are different languages. No, because the languages accepted by PDA ‘s by final state are exactly the languages accepted by PDA’s by empty stack. 6. Define Deterministic PDA. A PDA M =( Q, Σ ,Ґ ,δ ,q0 ,Z0 ,F ) is deterministic if: For each q in Q and Z in Ґ , whenever δ(q,Є,Z) is nonempty ,then δ(q,a,Z) is empty for all a in Σ. For no q in Q , Z in Ґ , and a in Σ U { Є} does δ(q,a,Z) contains more than one element. (Eg): The PDA accepting {wcwR | w in ( 0+1 ) * }. 7.What is the significance of PDA? Finite Automata is used to model regular expression and cannot be used to represent non regular languages. Thus to model a context free language, a Pushdown Automata is used.
  • 4. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III 8. When is a string accepted by a PDA? The input string is accepted by the PDA if: The final state is reached . The stack is empty. 9. Give examples of languages handled by PDA. (1) L={ anbn | n>=0 },here n is unbounded , hence counting cannot be done by finite memory. So we require a PDA ,a machine that can count without limit. (2) L= { wwR | w Є {a,b}* } , to handle this language we need unlimited counting capability . 10. Is NPDA (Nondeterministic PDA) and DPDA (Deterministic PDA)equivalent? The languages accepted by NPDA and DPDA are not equivalent. For example: wwR is accepted by NPDA and not by any DPDA. 11. State the equivalence of acceptance by final state and empty stack. If L = L(M2) for some PDA M2 , then L = N(M1) for some PDA M1. If L = N(M1) for some PDA M1 ,then L = L(M2) for some PDA M2. where L(M) = language accepted by PDA by reaching a final state. N(M) = language accepted by PDA by empty stack.
  • 5. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III 12. State the equivalence of PDA and CFL. If L is a context free language, then there exists a PDA M such that L=N(M). If L is N(M) for some PDA m, then L is a context free language. 13. What are the closure properties of CFL? CFL are closed under union, concatenation and Kleene closure. CFL are closed under substitution , homomorphism. CFL are not closed under intersection , complementation. Closure properties of CFL’s are used to prove that certain languages are not context free. 14. State the pumping lemma for CFLs. Let L be any CFL. Then there is a constant n, depending only on L, such that if z is in L and |z| >=n, then z=uvwxy such that : (i) |vx| >=1 (ii) |vwx| <=n and (iii) for all i>=0 uviwxiy is in L. 15. What is the main application of pumping lemma in CFLs? The pumping lemma can be used to prove a variety of languages are not context
  • 6. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III free . Some examples are: L1 ={ aibici | i>=1} is not a CFL. L2= { aibjcidj | i>=1 and J>=1 } is not a CFL. 16. Give an example of Deterministic CFL. The language L={anbn : n>=0} is a deterministic CFL 17. What are the properties of CFL? Let G=(V,T,P,S) be a CFG The fanout of G , Φ(G) is largest number of symbols on the RHS of any rule in R. The height of the parse tree is the length of the longest path from the root to some leaf.
  • 7. Sri vidya college of engineering and technology coursematerial(lecture notes) Cs6503 Theory of computation unit III 18. Compare NPDA and DPDA. NPDA DPDA 1. NPDA is the standard PDA used in automata theory. 1. The standard PDA in practical situation is DPDA. 2. Every PDA is NPDA unless otherwise specified. 2. The PDA is deterministic in the sense ,that at most one move is possible from any ID. 19. What are the components of PDA ? The PDA usually consists of four components: A control unit. A Read Unit. An input tape. A Memory unit. 20. What is the informal definition of PDA? A PDA is a computational machine to recognize a Context free language. Computational power of PDA is between Finite automaton and Turing machines. The PDA has a finite control , and the memory is organized as a stack.