1.

What is the pumping length of string of length x?(a) x+1(b) x(c) x-1(d) x2This question was addressed to me during an online interview.This interesting question is from Pumping Lemma for Context Free Language in division Properties of Context Free Languages of Automata Theory

Answer»

Correct option is (a) x+1

For explanation I would say: There exists a property of all strings in the language that are of length P, where p is the constant-called the pumping length .For a FINITE language L, p is equal to the MAXIMUM STRING lengthin L plus 1.



Discussion

No Comment Found

Related InterviewSolutions