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.

We will be happy to hear your thoughts

Leave a reply

Gkseries.com
Logo
Register New Account