How would you design a PDA to recognize the language of binary strings that end with a different symbol than they start with?

281 Views Asked by At

How would you design a PDA (Push Down Automata) to recognize the language of binary strings that end with a different symbol than they start with? This can be a description or a diagrammatic state machine

1

There are 1 best solutions below

0
On BEST ANSWER

Elaborating on Parcly Taxel's comment, your language is $0\{0,1\}^*1 \cup 1\{0,1\}^*0$ and hence is regular. You should be able to find the minimal deterministic automaton of this language. Hint: you need 5 states.