Academia.eduAcademia.edu

Descendants and ascendants in binary trees

1997, Discrete Mathematics & Theoretical Computer Science

Abstract

There are three classical algorithms to visit all the nodes of a binary tree - preorder, inorder and postorder traversal. From this one gets a natural labelling of the internal nodes of a binary tree by the numbers , indicating the sequence in which the nodes are visited. For given (size of the tree) and (a number between 1 and