Give a push down automaton for this language:
{w| the length of w is odd and it's middle symbol is 0}
Here is the CFG I wrote for this language:
S --> 0|0S0|0s1|1s0|1s1
This what I have done for odd length part (I'm not using a stack for first part but I'm sure I need to use stack for second part):
I've spent days on this question but no luck,