Open Access Open Access  Restricted Access Subscription Access

Reconstruction of A Binary Search Tree from Its Preorder Tree Traversal With The Unique Non-Recursive Approach


Affiliations
1 Department of Computer Science, Graphic Era University, Dehradun, India
 

This paper presents a new approach of reconstruction of Binary search tree using its Pre order tree-traversal only. There are many approaches given with the help of combination of two- tree traversals. But, in this paper we have not used any other combination of tree traversals to reconstruct the Binary search tree. Our work shows the implementation of this algorithm in C language. Our algorithm is found to be very simple and faster than other non recursive algorithms due to its unique implementation. Due to this reason the time and space complexities are significantly reduced.

Keywords

Binary Search Tree Reconstruction, Non Recursive Algorithm, Pre order Traversal, Binary Search Tree, Struct.
User
Notifications
Font Size

Abstract Views: 180

PDF Views: 0




  • Reconstruction of A Binary Search Tree from Its Preorder Tree Traversal With The Unique Non-Recursive Approach

Abstract Views: 180  |  PDF Views: 0

Authors

Manoj C. Lohani
Department of Computer Science, Graphic Era University, Dehradun, India
Upendra S. Aswal
Department of Computer Science, Graphic Era University, Dehradun, India
Ramesh S. Rawat
Department of Computer Science, Graphic Era University, Dehradun, India

Abstract


This paper presents a new approach of reconstruction of Binary search tree using its Pre order tree-traversal only. There are many approaches given with the help of combination of two- tree traversals. But, in this paper we have not used any other combination of tree traversals to reconstruct the Binary search tree. Our work shows the implementation of this algorithm in C language. Our algorithm is found to be very simple and faster than other non recursive algorithms due to its unique implementation. Due to this reason the time and space complexities are significantly reduced.

Keywords


Binary Search Tree Reconstruction, Non Recursive Algorithm, Pre order Traversal, Binary Search Tree, Struct.