Give a derivation tree for w aababb for the following gramm

Give a derivation tree for w = aababb for the following grammar:

Give a derivation tree for w = aababb for the following grammar: S rightarrow aSb|SS|lambda

Solution

Following is the derivation for w = aababb

--------------------------------------------------------------

S

-> aSb

-> aSSb

-> aaSbSb

-> aaSbaSbb

-> aabaSbb

-> aababb

Give a derivation tree for w = aababb for the following grammar: Give a derivation tree for w = aababb for the following grammar: S rightarrow aSb|SS|lambdaSolu

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site