Consider a context-free grammar πΊ with the following 3 rules. π β ππ, π ββ¦
GATE Β· 2024 Β· CS Β· Set 2 Β· Computer Science & IT
Consider a context-free grammar πΊ with the following 3 rules.
Β Β Β Β Β Β Β Β π β ππ, π β ππππ,Β π β π
Let π€ β πΏ(πΊ). Let (π€),(π€), (π€) denote the number of times π, π, π occur in π€, respectively. Which of the following statements is/are TRUE?
- A.
ππ(π€) > ππ(π€)
- B.
ππ(π€) > ππ (π€) β 2
- C.
ππ(π€) = ππ(π€) + 1
- D.
ππ(π€) = ππ(π€) β 2
Attempted by 108 students.
Sign up free to check your answer
Sign up freeLoading lessonβ¦