Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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->XY

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

3. Describe the strategic training and development process.

Answered: 1 week ago

Question

10. Microsoft Corporation

Answered: 1 week ago

Question

4. EMC Corporation

Answered: 1 week ago