I'm stuck on a PDA question. The question is as follows:
Find push-down automata for the following languages: L={xcy : x, y ∈ (a+b)*, y is not the reverse of x, c is literal}
I've built the following machine: https://i.stack.imgur.com/ZqBkW.jpg
My machine does not accept strings of form xc (where y is the empty string), or any string of form xcy, |y| < |x|, y is not the reversal of x.
I need to make the machine transition from q1 to q2 when the input ends, but the stack is not empty... But adding an empty input transition from q1 to q2 would cause my machine to accept all strings of form xcy, regardless of whether y is the reversal of x.
Any insight is appreciated.