International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 9 - Number 2 |
Year of Publication: 2010 |
Authors: Nishant Doshi, Tarun Sureja, Bhavesh Akbari, Hiren Savaliya, Viraj Daxini |
10.5120/1355-1829 |
Nishant Doshi, Tarun Sureja, Bhavesh Akbari, Hiren Savaliya, Viraj Daxini . Article:Width of a Binary Tree. International Journal of Computer Applications. 9, 2 ( November 2010), 41-43. DOI=10.5120/1355-1829
Till current date in majority books on algorithm and research papers, they talk about height of a binary tree in terms like height balanced binary tree. In this paper the notion of width of a binary tree has been introduced and later the recursive algorithm based on the traversal techniques of the binary tree is given. Later the iterative version of algorithm using the notion of stack is introduced. The width of a binary tree is defined based on the number of nodes at every level. The highest of all is the width of a binary tree. The same concept can be applied to the general tree.