Question: Problem consider the following type 0 grammar over the alphabet = {a b}: Derive the following words from this grammar: (i) (ii) aa

Problem consider the following type 0 grammar over the alphabet Σ = {a b}:

S UVX UV-aUY UV-bUZ YX VaX ZX VbX PROD 1 PROD 2

Derive the following words from this grammar:
(i) Λ
(ii) aa
(iii) bb
(iv) abab

S UVX UV-aUY UV-bUZ YX VaX ZX VbX PROD 1 PROD 2 PROD 3 PROD 4 PROD 5 PROD 6 PROD 7 PROD 8 PROD 9 PROD 10 PROD 11 X A Ya aY Yb by ZaaZ Zb bZ UVA PROD 12 aV Va PROD 13 bVVb

Step by Step Solution

3.47 Rating (177 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i Applying Productions 1 12 and 13 in that order we have S a aaa a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related SQL Database Programming Questions!