adplus-dvertising
frame-decoration

Question

Using the pumping constant n, If there is a string in the language of length between _____ and ____ then the language is infite else not.

a.

n, 2n-1

b.

2n, n

c.

n+1, 3n+6

d.

0, n+1

Answer: (a).n, 2n-1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Using the pumping constant n, If there is a string in the language of length between _____ and ____ then the language is infite else not.

Similar Questions

Discover Related MCQs

Q. Which of the following is/are CFL not closed under?

Q. If L1 and L2 are context free languages, L1-L2 are context free:

Q. A___________ is context free grammar with atmost one non terminal in the right handside of the production.

Q. There is a linear grammar that generates a context free grammar

Q. The following format of grammatical notation is accepted by which of the following:
AB->CD

A->BC or

A->B or

A->a

where A, B, C, D are non terminal symbols and a is a terminal symbol.

Q. Every Kuroda Normal form grammar generates ___________

Q. Which of the following can generate Unrestricted grammars?

Q. Given a grammar in GNF and a derivable string in the grammar with the length n, any ___________will halt at depth n.

Q. Which of the following grammars is similar to Floyd Normal form?

Q. Which among the following can parse a context free grammar?

Q. The standard version of CYK algorithm operates only on context free grammars in the following form:

Q. The __________ running time of CYK is O(n^3 .|G|)
where n is the length of the parse string and |G| is the size of the context free grammar G.

Q. Which of the following is true for Valiants algorithm?

Q. Which among the following is a correct option in format for representing symbol and expression in Backus normal form?

Q. Which of the following is not a negative property of Context free languages?

Q. The intersection of context free language and regular language is _________

Q. Which of the following is regular?

Q. Which of the following is not context free?

Q. Which of the following can be used to prove a language is not context free?

Q. Which of the following are valid membership algorithms?