我的朋友问我一个关于下推自动机的问题。 abacaa。我正在查看一些类似的问题,但所有问题都包含偶数,就像0^a 1^a,但现在我有3个值。我发现an example有关但我不能转换我的问题。下推自动机(a^x b a^y c a^x + y)
aabbabcc:
read a push 1
read a push 1
read b pop 1
read b pop 1
stack is empty so push 0
read a push 1
read b pop 1
top of stack is 0 so push 0
read c pop 0
read c pop 0
我该如何转换abacaa?