Descendants and ascendants in binary trees

نویسندگان

  • Alois Panholzer
  • Helmut Prodinger
چکیده

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 n internal nodes of a binary tree by the numbers 1; 2; : : : ; n, indicating the sequence in which the nodes are visited. For given n (size of the tree) and j (a number between 1 and n), we consider the statistics number of ascendants of node j and number of descendants of node j. By appropriate trivariate generating functions, we are able to find explicit formulæ for the expectation and the variance in all instances. The heavy computations that are necessary are facilitated by MAPLE and Zeilberger’s algorithm. A similar problem comes from labelling the leaves from left to right by 0; 1; : : : ; n and considering the statistic number of ascendants (=height) of leaf j. For this, Kirschenhofer [1] has computed the average. With our approach, we are also able to get the variance. In the last section, a table with asymptotic equivalents is provided for the reader’s convenience.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Number of Descendants in Simply Generated Random Trees

The aim of this note is to generalize some recent results for binary trees by Panholzer and Prodinger [15] to a larger class of rooted trees. The number of descendants of a node j is the number of nodes in the subtree rooted at j, and the number of ascendants is the number of nodes between j and the root. Recently, Panholzer and Prodinger [15] studied the behavior of these parameters in binary ...

متن کامل

On the Number of Descendants and Ascendants in Random Search Trees

We consider here the probabilistic analysis of the number of descendants and the number of ascendants of a given internal node in a random search tree The performance of several important algorithms on search trees is closely related to these quantities For instance the cost of a successful search is proportional to the number of ascendants of the sought element On the other hand the probabilis...

متن کامل

Decidability of Equivalence for a Class of Non-Deterministic Tree Transducers

In this paper, we consider non-deterministic tree transducers in the letter to letter case, that is to say tree transducers for which trees which appear in the rules are reduced to one letter in the right-hand side as in the left one. We establish the decidability of equivalence for linear and non-deleting top-down transducers. These results are valid in the bottom-up case. R esum e Nous consid...

متن کامل

A New Heuristic Algorithm for Drawing Binary Trees within Arbitrary Polygons Based on Center of Gravity

Graphs have enormous usage in software engineering, network and electrical engineering. In fact graphs drawing is a geometrically representation of information. Among graphs, trees are concentrated because of their ability in hierarchical extension as well as processing VLSI circuit. Many algorithms have been proposed for drawing binary trees within polygons. However these algorithms generate b...

متن کامل

Trimmed Trees and Embedded Particle Systems

In a supercritical branching particle system, the trimmed tree consists of those particles which have descendants at all times. We develop this concept in the superprocess setting. For a class of continuous superprocesses with Feller underlying motion on compact spaces, we identify the trimmed tree, which turns out to be a binary splitting particle system with a new underlying motion that is a ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Discrete Mathematics & Theoretical Computer Science

دوره 1  شماره 

صفحات  -

تاریخ انتشار 1997