Question 99
Explanation
Let G=(V,T,S,P) be any context-free grammar without any λ-productions or unit productions. Let K be the maximum number of symbols on the right of any production in P.
The maximum number of production rules for any equivalent grammar in Chomsky normal form is given by:
In options, |-| denotes the cardinality of the set.
Answer : (2) (K-1) |P| + |T| The maximum number of production rules for any equivalent grammar in Chomsky normal form is given by:
In options, |-| denotes the cardinality of the set.
Explanation
Previous | Next |
UGC NET CS December 2019 - Question 98 | UGC NET CS December 2019 - Question 100 |
The maximum number of production rules are:
(k−1)|P|+|T|
where k is the maximum number of the symbol on the right of production P.
Reference : Prove that there exists an equivalent grammar in Chomsky Normal Form like G′ such that G′ has at most (K−1)|P|+|T| production rules
So, option 2 is correct answer