Question

In: Computer Science

Suppose A and B are regular language. Prove that AB is regular

Suppose A and B are regular language. Prove that AB is regular

Solutions

Expert Solution


Related Solutions

1. Prove the language L is not regular, over the alphabet Σ = {a, b}. L...
1. Prove the language L is not regular, over the alphabet Σ = {a, b}. L = { aib2i : i > 0} 2) Prove the language M is not regular, over the alphabet Σ = {a, b}. M = { wwR : w is an element of Σ* i.e. w is any string, and wR means the string w written in reverse}. In other words, language M is even-length palindromes.
Is the following language a regular language? ( Prove with pumping Lenma ) L = {...
Is the following language a regular language? ( Prove with pumping Lenma ) L = { o^n 1^n 2^n | n => 0} Define CFL pumping lemma
Prove the following using the properties of regular expressions: (ab)* + c + c* = Λ...
Prove the following using the properties of regular expressions: (ab)* + c + c* = Λ + ab + (ab)* + c(Λ + c*)   Λ+ab+abab+ababab(ab)* = Λ + ∅* + (ab)* a(b+c*) + (d+e)* = ab + ac*c* + d + e + (d+e)* a*b + a*a*bc* + d* + ab = d* + ab + a*bc* + Λ a(b+cd*) = a(b+c) + acdd* (a+b)* = ∧* + ∅* + (a*b*)* (ab)*(c*+d*) = (ab)*(c+c*) + (ab)*( ∧ + d*)
Question 4 Prove that the following language is not regular. ? = { 0 ?1 ?...
Question 4 Prove that the following language is not regular. ? = { 0 ?1 ? | ?, ? ≥ 0, ? ≠ 2? + 1 } Question 5 Prove that the following language is not regular. ? = { ? ∈ { 0, 1, 2} ∗ | #0 (?) + #1 (?) = #2 (?) } where #? (?) denotes the number of occurrences of symbol a in string w.
Prove that {0n1n2n:n≥1} is not a regular language. The decimal notation for a number is the...
Prove that {0n1n2n:n≥1} is not a regular language. The decimal notation for a number is the number written in the usual way, as a string over the alphabet {0,1,⋯9}. For example, the decimal notation for 13 is a string of length 2. In unary notation, only the symbol “I” is used; thus 5 would be represented as IIIII in unary notation. Show that each of the following is or is not a regular language. (For regular languages, write down its...
Are the following languages over {a, b} regular? If they are then prove it. If they...
Are the following languages over {a, b} regular? If they are then prove it. If they are not prove it with the Pumping Lemma a) {ap | p is a prime number} b) {xax | x Î{a,b}*} (start by listing some strings in, not in, the language
Prove that the following language are NOT regular using the pumping lemma (20 pt.) ? =...
Prove that the following language are NOT regular using the pumping lemma (20 pt.) ? = {? ∈ {?, #}∗ | ? = ??#??# ... #?? ??? ? ≥ ?, ?? ∈ ?∗ ??? ????? ?, ??? ?? ≠?? ???????? ?≠?} Hint: choose a string ? ∈ ? that contains ? #’s.
What do these regular expressions mean in plain english? a) ba*b + (ab)* b) a*b* +...
What do these regular expressions mean in plain english? a) ba*b + (ab)* b) a*b* + b*ab
L ={x^a y^b z^c | c=a+b} a) Prove that L is not regular. b)Prove by giving...
L ={x^a y^b z^c | c=a+b} a) Prove that L is not regular. b)Prove by giving a context-free grammar that the L is context free. c)Give a regular expression of the complement L'.
L ={x^a y^b z^c | c=a+b} a) Prove that L is not regular. b)Prove by giving...
L ={x^a y^b z^c | c=a+b} a) Prove that L is not regular. b)Prove by giving a context-free grammar that the L is context free. c)Give a regular expression of the complement L'.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT