Here,
Σ = {0, 1, +, =} and
L = {x=y+z | x, y, z are binary integers}
** Caution: there must be one [=] and one [+] in any string in L, so the repeated string must be in one of the binary numbers. But, changing the term renders the equation wrong and changing the numbers added changes its sum, which is again incorrect.
Now, proving the Language L, is not regular using pumping lemma.
Definition of pumping lemma:
“If an infinite language has to be accepted by the finite automata, then there has to be some looping pattern(s) existing in the system which can generate all the finite strings of the language”
Let, L is regular and let p be its pumping length.
Let s=1p+1=10p+1p. this equation is true so s belongs to L.
Now, |s|>=p, and by pumping lemma, s=xyz with |xy|<=p, |y|>0 and xz belongs to L(from the condition of pumping theorem ).
Again, since first p characters of s are all 1 and |xy|<=p, y must be made of 1s only.
So, xz=1p-|y|=10p+1p. Since |y|>0, xz has a different string to left of [=] sign than that of s but is otherwise identical.
But, since the binary expansions are unique, the equation given by xz cannot be true.
Hence, xz doesn’t belongs to L, contradicting the pumping lemma and proving that L is not regular.
6. (10 pts) Is L regular? Either prove that it is not regular using pumping lemma,...
The pumping lemma for regular languages is Theorem 1.70 on page 78 of the required text. Definition: w is a string if and only if there exists an alphabet such that w is a string over that alphabet. Note: For every alphabet, the empty string is a string over that alphabet. Notation: For any symbol o, gº denotes the empty string, and for every positive integer k, ok denotes the string of length k over the alphabet {o}. 1) (20%]...
6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular language L, there exists a pumping length p such that, if s€Lwith s 2 p, then we can write s xyz with (i) xy'z E L for each i 2 0, (ii) ly > 0, and (iii) kyl Sp. Prove that A ={a3"b"c?" | n 2 0 } is not a regular language. S= 6.[15 points] Recall the pumping lemma for regular languages: Theorem: For every regular...
3. Use the pumping lemma to prove the following language is not regular . Use the pumping lemma to prove the following language is not regular Where is the stringwbut with all the Os replaced by Is and all the し1 = {te E Σ.ead I te _ wu) is replaced by 0s. For example, if w = 00110 then w = 11001.
1. (10 marks) Prove that the following languages are non-regular, using the Pumping Lemma. (a) (10 marks) L1 = {W € {0,1}* ||w| is odd, and the symbol in the very middle of the string is 0} For example, the strings 01011, 000000000 and 0 are in L1.]
Use the pumping lemma to show that the following language is not regular: L = {bi ajbi : i, j ≥ 1}
(d) Let L be any regular language. Use the Pumping Lemma to show that In > 1 such that for all w E L such that|> n, there is another string ve L such that lvl <n. (4 marks) (e) Let L be a regular language over {0,1}. Show how we can use the previous result to show that in order to determine whether or not L is empty, we need only test at most 2" – 1 strings. (2...
Is the following language context free or not? (prove / disprove using pumping lemma for CFL ) L = {0n 1 0n | n >= 1}
5.) Is the following language context free or not? (prove / disprove using pumping lemma for CFL ) L = {0n 1 0n | n >= 1}
John Doe claims that the language L, of all strings over the alphabet Σ = { a, b } that contain an even number of occurrences of the letter ‘a’, is not a regular language. He offers the following “pumping lemma proof”. Explain what is wrong with the “proof” given below. “Pumping Lemma Proof” We assume that L is regular. Then, according to the pumping lemma, every long string in L (of length m or more) must be “pumpable”. We...
Prove that the following are not regular languages. Just B and F please Prove that the following are not regular languages. {0^n1^n | n Greaterthanorequalto 1}. This language, consisting of a string of 0's followed by an equal-length string of l's, is the language L_01 we considered informally at the beginning of the section. Here, you should apply the pumping lemma in the proof. The set of strings of balanced parentheses. These are the strings of characters "(" and ")"...