LI Kun, ZHAO Gang. Non-recursive Algorithm of Restoring a Binary Tree by Preorder Traversal and Postorder Traversal[J]. Journal of nanchang hangkong university(Natural science edition), 2010, 24(3): 30-32.
Citation: LI Kun, ZHAO Gang. Non-recursive Algorithm of Restoring a Binary Tree by Preorder Traversal and Postorder Traversal[J]. Journal of nanchang hangkong university(Natural science edition), 2010, 24(3): 30-32.

Non-recursive Algorithm of Restoring a Binary Tree by Preorder Traversal and Postorder Traversal

  • There has been a conclusion that the preorder traversal sequence and the postorder traversal sequence cannot restore a unique binary tree in the first literature.In the paper it has been pointed out and proved that preorder traversal sequence and the postorder traversal sequence can restore a unique binary tree under certain conditions.That is,the degree of binary tree is zero or two.The viewpoint has been illuminated in this paper.The non-recursive algorithm has been implemented in Visual C++ 6.0.
  • loading

Catalog

    Turn off MathJax
    Article Contents

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return