The transition function is,
1.
2.
Consider, the current state of is m and the current state of is n. Change the current state of A to if the next character is to be read from when a is the next character. After the character is read, read the next character from .
Change the current state of B to if the next character is to be read from when b is the next character.
The language L is said to be regular if there exist an FA that recognizes the language L. Here, the is defined for the languageperfect shuffle.
Therefore, the class of regular languages is closed under perfect shuffle.