I have an easy question about the DPDA. Could you read an input and push a different symbol to the stack.
An example would be A transition from q1 to q2 where read input is v pop is epsilon(empty string) and push is x Both v and x are symbols
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityIf you mean, you can push a symbol different from what your machine has read from the input, then yes you can. The input and stack symbols are not related and there is no rule that requires them to be the same (see the formal definition here). Most of the time you would see examples where the same symbol is read and pushed just for convenience. You can even have the set of input and stack symbols to be disjoint.