How can one convert a context-free grammar to Chomsky Normal Form?

1 answer

Answer

1236135

2026-04-02 12:05

+ Follow

To convert a context-free grammar to Chomsky Normal Form, you need to follow these steps:

  1. Eliminate -productions (productions that derive the empty string).
  2. Eliminate unit productions (productions of the form A B).
  3. Eliminate terminals from right-hand sides of productions.
  4. Replace any production A BC with two productions A B and B C.
  5. If a production has more than two symbols on the right-hand side, introduce new non-terminal symbols to break it down into smaller productions.

By following these steps, you can convert a context-free grammar to Chomsky Normal Form.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.