In fact, if you were to trace this algorithm, you would realize that it builds a list of all the possible stack configurations and the transitions between them.
事实上,如果跟踪该算法的过程,就会认识到它构建一个所有可能的堆栈配置以及在这些配置间的转换的列表。
It's easier to understand this portion of the algorithm if you remember that each state represent a certain stack configuration.
如果您记得每种状态表示一个堆栈配置,则理解算法的这一部分是较容易的。
To better understand the algorithm, you might to compare this transition diagram with a stack.
为了更好地理解该算法,可以将该转换图与堆栈相比较。
应用推荐