GATE | GATE CS 2019 | Question 24
For Σ = {a, b}, let us consider the regular language
L = {x ∣ x = a2 + 3k or x = b10 + 12k, k ≥ 0}
Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for L?
(A)
3
(B)
5
(C)
9
(D)
24
Answer: (D)
Explanation:
According to Pumping lemma, there must be repetition (DFA then it repeats some states, and regular grammar repeats its nonterminal in derivation.) for all acceptable stings. Therefore, minimum Pumping Length should be 11, because string with length 10 (i.e., w = b10) does not repeat anything, but string with length 11 (i.e., w = b11) will repeat states. Therefore, pumping length for given language should greater than 10, which is 24. Option (D) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
01 Oct, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...