INORDER AND PREORDER TRAVERSAL and DISPLAY OF EXISTING BINARY TREE IN COMPUTER MEMORY
P K Kumaresan
Abstract
P K Kumaresan
Abstract
Depending on three different sequences of traversal of a binary tree, we get its preorder, postorder and inorder form. Similarly depending on preorder or postorder along with inorder, the binary tree can be formed. In this paper, we try to implement, through coding a binary tree is formed physically not virtually in computer memory and also give a realistic view of a binary tree, already created in computer memory. Using inorder and preorder traversal of binary tree and takes the value of the level of the tree we are able to graphically represent any binary tree. Keywords: Binary Tree, Inorder, Preorder, Link List, Structure Pointer, Recursive Function, Data Structure.
A significance statement is not available in the OpenAlex record.
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.
Depending on three different sequences of traversal of a binary tree, we get its preorder, postorder and inorder form. Similarly depending on preorder or postorder along with inorder, the binary tree can be formed. In this paper, we try to implement, through coding a binary tree is formed physically not virtually in computer memory and also give a realistic view of a binary tree, already created in computer memory. Using inorder and preorder traversal of binary tree and takes the value of the level of the tree we are able to graphically represent any binary tree. Keywords: Binary Tree, Inorder, Preorder, Link List, Structure Pointer, Recursive Function, Data Structure.
Key concepts: Preorder, Tree traversal, Binary tree, Computer science, Tree (set theory), Pointer (user interface), Binary number, Algorithm