Question: Q 1 . Consider the following Grammars . Identify the cause of ambiguity & Simplify Symbol of the A . P 1 = { S
Q Consider the following Grammars Identify the cause of ambiguity &
Simplify
Symbol of the
A PS ab bSa aSb A SS
B PS A bb A Bb B Sa
C S Aa S B B A B bb A a A bC A B
Q Show that the following grammar is Ambiguous or not. If ambiguous,
identify the cause of ambiguity and simplify it
S AaB aaB; A D; B bbA lambda ; D E; E F ; F aS
Q Convert the following Grammar to CNF
E E T T ; T E a;
Q Construction of the PDA for the language
L a subject to the following conditions
n
b
m
c
p
m n p
I. n m p
II m n p
III. p n m
Q Construct a PDA that accepts:
i Odd Palindrome
ii Even Palindrome
Q Convert the following Grammar into Grammar into Greibach Normal
Form
I. S aAbB; A a; B b
II S aA; A B; B CDb; C c; D d
Q Using Pumping Lemma proof that the following language is not Context
Free:
a L an
b
n
c
n
n
b L a
n
b
n
c
n
n
c L a
n
b
n
c
n
n
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
