Question: * * Solve all but submit 5 only. Q 1 . Prove using pumping theorem for regular languages that L = { a n b
Solve all but submit only.
Q Prove using pumping theorem for regular languages that is not regular.
Q Prove by induction that for the following CFG G
SASBS SBSAS
Q Find a rightmost derivation and a leftmost derivation for the string aabbbb using the grammar
Draw the parsing tree of each derivation.
Q Find an sgrammar for each of the following languages:
:
:
Q Show that the following grammar is ambiguous
aSbS
Consider the string aab. Show that it has two:
a Parse trees.
b Leftmost derivations.
QGrammar Simplification Begin with the grammar:
aAS
a Remove productions.
b Remove any unitproductions in the resulting grammar.
c Remove any useless symbols in the resulting grammar.
d Put the resulting grammar into Chomsky Normal Form.
Q Prove using pumping theorem for CFL that is not context free.
Q Design an NPDA for the language
Q Design a DPDA that accepts the following language and trace its configuration changes given the input
aaabb$: $ is a marker for the end of input
$
Q Give an NPDA corresponding to the following CFG Use the construction given in class:
aSBb
aAS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
