By careful researches of the traversal of binarytree, a new method of traversingbinarytree is brought forward, which is able to solve the problem of traversal of binary tree.
Compared with recursive algorithm for binarytreetraversing, non-recursive algorithm reduces expenses of function calls, gains performance advantage.
二叉树遍历的非递归算法相对于递归算法,减少了函数调用等开销,具有性能优势。
3
By using binarytree instead of2-D table, the new method can avoid of traversing in whole table to find a matched code, and can speedup lookup pro cess2 ~ 3times.