Question #42825

Let L be a language given by L = {a^n b^n : n ≥ 0 } , then
L2 is equal to
a) { a^n b^n a^m b^m :n ≥ 0,m ≥ 0 }
b) { a^n b^n :n ≥ 0 }
c) { a^n b^n a^n b^n :n ≥ 0 }
d) none of these.

Expert's answer

Answer on Question #42825, Math, Other

Problem. Let LL be a language given by L={anbn:n0}L = \{a^n b^n : n \geq 0\}, then L2L^2 is equal to

a) {anbnambm:n0,m0}\{a^n b^n a^m b^m : n \geq 0, m \geq 0\}

b) {anbn:n0}\{a^n b^n : n \geq 0\}

c) {anbnanbn:n0}\{a^n b^n a^n b^n : n \geq 0\}

d) none of these.

Solution.

If L1L_1 and L2L_2 are languages over some common alphabet, then concatenation L1L2L_1L_2 consists of all strings of the form vwvw where vv is a string from L1L_1 and ww is a string from L2L_2.

The language L2L^2 consists of all strings anbnambma^n b^n a^m b^m, where n0n \geq 0 and m0m \geq 0.

Answer: a) {anbnambm:n0,m0}\{a^n b^n a^m b^m : n \geq 0, m \geq 0\}

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS