[VIEWED 1248
TIMES]
|
SAVE! for ease of future access.
|
|
|
sanjnep71
Please log in to subscribe to sanjnep71's postings.
Posted on 07-24-06 10:32
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Hi friend(computer science) if any one can help me with this? E = AB A = a|bc B = ab|c Is above grammar ambiguous? If yes, how? Thanks
|
|
|
|
DC_virus
Please log in to subscribe to DC_virus's postings.
Posted on 07-24-06 11:06
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
|
|
|
DC_virus
Please log in to subscribe to DC_virus's postings.
Posted on 07-31-06 4:40
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
The grammar is ambiguous because..... you can write the same thing in more than one ways....for example: AA is the same as BB Sorry for the late late late late reply!!!
|
|
|
Nas
Please log in to subscribe to Nas's postings.
Posted on 07-31-06 10:33
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
The above Context Free Grammar is ambiguous because there are different parse trees for the same terminal string . E = AB A = a|bc B = ab|c E could generate the following parse trees E= aab E=ac E=bcba E=bcc
|
|