I am studying Automaton Theory for first time and I am having problems to see if I do well some exercises and if I really finish them. For example, one exercises asks to give a PDA for all palindrome strings on $\{a, b\}^*$ and I have thought the following. Every palindrom has in it middle three posibilities:
- $\varepsilon$ (the empty string) and therefore the palindrome has even long.
- $a$
- $b$
The last two possibilities cover odd long palindromes.
Then, by intuition I thought that the following PDA should work, but I am not really sure how to justify it and if I am doing well, so every possible correction or advise would be appreciated. (In my college we denote by bottom symbol of the stack by $z_0$)