For ฮฃ = {๐, ๐}, let us consider the regular language ๐ฟ = { ๐ฅ |๐ฅ = ๐2+3๐ or ๐ฅ = ๐10+12๐, ๐ โฅ 0}. Which one of the following
Q. For ฮฃ = {๐, ๐}, let us consider the regular language ๐ฟ = { ๐ฅ |๐ฅ = ๐2+3๐ or ๐ฅ = ๐10+12๐, ๐ โฅ 0}. Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for ๐ฟ ?
(A) 3
(B) 5
(C) 9
(D) 24
Ans: 24
Solution:
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.