\section{Regular expression} We are given following regular expression: \[ a^* + ba^*b + bba^*\]