Question: [3*5 = 15 Points] Consider the given grammars below. Convert each of them to its equivalent Chomsky Normal Form (CNF). State each step clearly. S

[3*5 = 15 Points] Consider the given grammars below. Convert each of them to its equivalent Chomsky Normal Form (CNF). State each step clearly.

S → AACD

A → aAb | ac | ε

C → aC | a

D → aDa | bDb | d | ε



S → XSB | ε

X → pXS | p

B → SbS | X | bb



S → aAa | bBb | ε

A → C | a

B → C | b

C → CD | ε

D → A | B | ab


Step by Step Solution

3.34 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution To convert a grammar into CNF we want any of the given condition below Non terminal termina... 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 Computer Engineering Questions!