0
我的朋友問我一個關於下推自動機的問題。 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?