Professional Documents
Culture Documents
where a1 . . . an A and b1 . . . bn B}
7. (Sipser 1.67) Let L be any language, and let the swap of L be the
language
SW AP (L) = {qp|pq L}
(a) Show that for any language L, swapping the language once is the
same as swapping the language twice.
(b) Show that SW AP (L) is regular, if L is regular.