Modified Non-Recursive Algorithm for Reconstructing a Binary Tree
Nitin Arora, Vivek Kumar Tamta, Suresh Kumar
Abstract
Open-access reader
Nitin Arora, Vivek Kumar Tamta, Suresh Kumar
Abstract
Open-access reader
Binary tree traversal refers to the process of visiting each node in a specified order.Given the inorder traversal of a binary tree, along with one of its preorder or postorder traversals, the original binary tree can be uniquely identified.Many recursive and non recursive method of construction of the tree from inorder and any of the postorder or preorder traversal have been proposed.In this paper one of the proposed algorithms has been examined.This algorithm computes the wrong tree for some input sequences.We show a particular situation in which the algorithm fails and a solution for this situation is proposed.The proposed a modified non-recursive algorithm for reconstructing a binary tree which generates the correct tree otherwise an error has been reported.
OpenAlex reports 22 citations for this work. Citation counts describe recorded attention and do not establish research quality.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
Binary tree traversal refers to the process of visiting each node in a specified order.Given the inorder traversal of a binary tree, along with one of its preorder or postorder traversals, the original binary tree can be uniquely identified.Many recursive and non recursive method of construction of the tree from inorder and any of the postorder or preorder traversal have been proposed.In this paper one of the proposed algorithms has been examined.This algorithm computes the wrong tree for some input sequences.We show a particular situation in which the algorithm fails and a solution for this situation is proposed.The proposed a modified non-recursive algorithm for reconstructing a binary tree which generates the correct tree otherwise an error has been reported.
Key concepts: Computer science, Binary tree, Binary number, Algorithm, Tree (set theory), Binary search tree, Theoretical computer science, Arithmetic