Steps to Convert CFG to CNF
1. Eliminate lambda productions
2. Eliminate Unit productions
3. Eliminate non-terminating and unreachable productions
Should have knowledge of automata theory. Context Free Grammar. Chomsky Normal Form
step 2 and 3 have been done in the attached code. What is need is to do step 1.
The attached code has comments, please build on top of it.
Deadline: 24 hours.