retagged by
913 views
0 votes
0 votes
For any context-free grammar there is a parser that takes at most O (n$^3$ )
time to parse a string of n terminals.

True or False?
retagged by

1 Answer

3 votes
3 votes
Yes , it is true , for CFG in Chomsky Normal form , to parse a string it takes O(n^3) time .

Related questions

0 votes
0 votes
1 answer
1
Iamniks4 asked Dec 12, 2018
435 views
Any left factored Context-Free Grammar is both unambiguous and non-left-recursive. True or false?
0 votes
0 votes
1 answer
2
Sagar Chintawar asked Feb 11, 2019
681 views
Construct the predictive parsing table for the grammar and tell whether the grammar is LL(1) or notS (L) / aL L, S / S
0 votes
0 votes
2 answers
3
0 votes
0 votes
1 answer
4
Nikhil Patil asked Feb 7, 2018
357 views
$G: S\rightarrow SbS\mid a$Grammars are ambiguous True/False.