A CFG(Context Free Grammar) is said to be in Chomsky Normal Form (CNF), if all…

ISRO Scientist/Engineer SC · 2018 · Computer Science

A CFG(Context Free Grammar) is said to be in Chomsky Normal Form (CNF), if all the productions are of the form A -> BC or A -> a. Let G be a CFG in CNF. To derive a string of terminals of length x, the number of products to be used is

  1. A.

    2x - 1

  2. B.

    2x

  3. C.

    2x + 1

  4. D.

    2x

Attempted by 192 students.

Show answer

Correct answer: A

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…