Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please enlarge from your browser, if it is small. Convert an arbitrary CFG into Backus Normal Form CFG S + ASB A AAS|ale B SbS|A|bb
please enlarge from your browser, if it is small.
Convert an arbitrary CFG into Backus Normal Form CFG S + ASB A AAS|ale B SbS|A|bb Overall steps: How to convert CFG to CNF? Step 1. Eliminate start symbol from RHS. If start symbol S is at the RHS of any production in the grammar, create a new production as: SO->S where SO is the new start symbol. Step 2. Eliminate null, unit and useless productions. If CFG contains null, unit or useless production rules, eliminate them. Step 3. Eliminate terminals from RHS if they exist with other terminals or non-terminals. e.g,; production rule X->xY can be decomposed as: X->ZY Z->x Step 4. Eliminate RHS with more than two non-terminals. e.ge; production rule X->XYZ can be decomposed as: X->PZ P->XYStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started