Question: Each of the following CFGs has a production using the symbol and yet is not a word in its language. Using the algorithm

Each of the following CFGs has a production using the symbol Λ and yet Λ is not a word in its language. Using the algorithm in this chapter, show that there are other CFGs for these languages that do not use Λ-productions:

(i) 

S → aX I bX
X → a I b I Λ

(ii) 

S → aX I bS I a I b
X → aX |a | Λ

(iii) 

S → aS I bX
X → aX I Λ

(iv) 

S → XaX I bX
X → XaX I XbX I Λ

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i The only possible st... 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!