edited by
770 views

2 Answers

0 votes
0 votes

L  =  { an bm cdq , n != m or p != q }  where n,m,p,q>=0

If there is no unambiguous grammer present for a given language then such a language is called inheritly ambiguous.

But for given language, unambiguous grammer exists

S→XY

X→X1B|AX1

X1→aX1b|ϵ

B→bB|b

A→aA|a

Y→Y1B|AY1

Y1→aY1b|ϵ

B→bB|b

A→aA|a

So,given language is not inheritly ambiguous.

edited by
0 votes
0 votes
I think grammar will be inherently  ambiguous s-xy/zr

X-at1/t1b

t1-at1b/€

y-cyd/€

z-azb/€

r-cl1/l1d

l1-cl1d/€

Related questions

0 votes
0 votes
0 answers
1
Lucky sunda asked Jan 22, 2017
800 views
By seeing a grammar I can say it is ambiguous or not. But How can I say it is inherently ambiguous or not.?
0 votes
0 votes
0 answers
3