Given string is bna2nbn where n > 1
The strings accepted by a language are L = { bbaaaabb , bbbaaaaaabbb , bbbbaaaaaaaabbbb , ....................................soo on}
we can pick any one of the strings to apply pumping lemma.
let us consider the string s = bbbaaaaaabbb
The substring y might changes based on the string choosen
Different automatas follow different rules for applying pumping lemma.
we can make this language possible by using context free language.
The rules are as follows to apply pumping lemma for context free language.
If a language L is context-free, then there exists some integer p ≥ 1 such that any string s in L with |s| ≥ p (where p is a "pumping length") can be written as
s = uvxyz ( our example: bbbaaaaaabbb )
with substrings u, v, x, y and z, such that
There are number of chances to select y as a substring by following this rules.
NOTE:As mentioned above it is also dependent on the length of the string.
Given a language b"a2nb" where n > 1. How many different ways are there to choose the substring y when apply...
Use the pumping lemma to show that the following language is non-regular: [a"b2n,n> 1) 1) usually we need to find a word in the language as an example, what length of the word we should use as the example? what are the three possible ways to choose substring y in the pumping lemma? if a language satisfy the pumping lemma, is this language a regular language? Why?
Let ?= (a, b). The Language L = {w E ?. : na(w) < na(w)) is not regular. (Note: na(w) and nu(w) are the number of a's and 's in tw, respectively.) To show this language is not regular, suppose you are given p. You now have complete choice of w. So choose wa+1, Of course you see how this satisfies the requirements of words in the language. Now, answer the following: (a) What is the largest value of lryl?...
Give a context free grammar for the language L where L = {a"bam I n>:O and there exists k>-o such that m=2"k+n) 3. Give a nondeterministic pushdown automata that recognizes the set of strings in L from question 3 above. Acceptance should be by accept state. 4. 5 Give a context-free grammar for the set (abc il j or j -k) ie, the set of strings of a's followed by b's followed by c's, such that there are either a...
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...
1. How many ways can 4 different contracts be distributed amongst 15 different firms, if any one firm can be awarded multiple contracts? ways 2. Let U be the universal set with disjoint subsets A and B, where n(U-46, n(A)-15, and n(B)-14. Find n(An B) 3. Use the symbols A, B, C, U, n, and', as necessary, to describe the shaded region. Choose the correct set below. OA. (Anc)U B ов. В, n (AUC) OC. Bn (AUC) O D. (Auc)'...
Prove the following languages are not context-free by using the pumping lemma. {b(n) #6(n + 1) | n є N, n-1} where b(n) is binary representation of n with no leading 0 {b(n) #6(n + 1) | n є N, n-1} where b(n) is binary representation of n with no leading 0
A system is given by y(n + 1)-ay(n) + bc(n), where a and b are unknown. When y(0) 1,c(n) 0 for n <0 and c(n) - 1 for n 2 0, it is known that y(1) 0.5, y(2) 1.25, y(3) 1.625, y(4) 1.8125, and y(5) 1.90625. Use direct adaptive control to generate c (3), c(4), and c(5) for tracking the reference r(n)-1. Express your answer by giving the equation for the control values c(3),c(4), and c(5) A system is given...
There are 5 different French books and 5 different Spanish books. How many ways are there to arrange them on a shelf if: (a) Books of the same language are grouped together, French on the left, Spanish on right? (b) French & Spanish books must alternate in the grouping, beginning with a French book?
25. Task Assignments How many ways can an adviser choose 4 students from a class of 12 if they are all assigned the same task? How many ways can the students be chosen if they are each given a different task?
Consider the expression x + y/2 in the language C. How many different meanings dose this expression have, depending on the types of x and y? Explain each meaning.