GATE CS 2024 Set 1 | Question 59

Theory of Computation › Context Free Grammar · NAT · 2 marks · Answer: 179

  1. Question 59Theory of Computationnat2 marks
    is in Chomsky Normal Form with 10 variables. The string () is derivable from . The number of steps in is _________

    Answer: 179

    Solution

    Answer: 179 In CNF every production is or . For a string of length , deriving it takes exactly binary rule applications (to build a binary tree with leaves) plus terminal rule applications steps. For : .

More GATE PYQ on Context Free Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2024 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →