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
- A.
2x - 1
- B.
2x
- C.
2x + 1
- D.
2x
Attempted by 192 students.
Show answer
Correct answer: A
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…