- Research
- Open access
- Published:
RETRACTED ARTICLE: Strong limiting behavior in binary search trees
Journal of Inequalities and Applications volume 2013, Article number: 60 (2013)
Abstract
Abstract
In a binary search tree of size n, each node has no more than two children, we denote the number of the node with k children by . In this paper, we study the strong limit behavior of the random variables and , where represents the number of subtrees of size m. The results can imply some known results.
MSC: 60F05, 05C80.
1 Introduction
A binary tree is either empty or composed of a root node together with left and right subtrees which are themselves binary trees. A binary search tree T for a set of keys from a total order, say , is a binary tree in which each node has a key value and all the keys of the left subtree are less than the key at the root, and all the keys of the right subtree are greater than the key at the root, i.e., the first key is associated with the root, the next key is placed in the left child of the root if it is smaller than the key of the root and it is sent to the right child of the root if it is larger than the key of the root. In this way, we proceed further by inserting key by key. This property holds recursively for the left and right subtrees of the tree T.
Usually, it is assumed that every permutation of is equally likely and has the same probability . Hence, any parameter of the binary search trees may be considered as a random variable.
The binary tree model turns out to be appropriate in formal language theory, computer algebra, etc., whereas the binary search tree model is of importance in sorting and searching algorithms and a lot of combinatorial algorithms. See, e.g., [1–4] for a detailed description. There are several papers devoted to the study of properties of the parameters. Kirschenhofer (see [5]) considered the height of leaves; Panholzer and Prodinger (see [6]) studied the number of ascendants and the number of descendants of any fixed node. Devroye and Neininger (see [7]) obtained the tail bounds and the order of higher moments for the path distance between any couples of nodes. Mahmoud and Neininger (see [8]) arrived at a Gaussian limit law for the distance between randomly selected pairs of nodes in random binary search trees and identified the rate of convergence. Svante (see [9]) got the exact and asymptotic formulas for moments and an asymptotic distribution for the difference between the left and right total pathlenghts. Devroye (see [10]) analyzed the properties of some parameter in binary search trees by applying the Stein’s method. There were also many authors, who were interested in the height of binary search trees and drew a variety of properties such as the asymptotic expected value, the variance and the limiting distribution of the height (see [11–20]). Prodinger (see [21]) computed the probability that a random binary tree with n nodes had i nodes with 2 children. Rote (see [22]) gave three combinatorial proofs for the number of the binary trees having a given number of nodes with 0, 1, and 2 children. Liu et al. (see [23]) have studied the limiting theorems for the nodes in binary search trees. Su et al. (see [24]) have studied some limit properties on the subtrees of random binary search trees.
Let denote a random binary search tree of size n. In the binary search tree, every node has two children at most, we denote the number of the node with k () children by . Let be the number of subtrees of size m in . In [23], Liu et al. have studied the limit properties of and in the sense of probably. In this paper, by computing the exact expression of the fourth moment of and , we obtain the strong limit properties (in the sense of a.e.) of them by the Chebyshev inequality and the Borel-Cantelli lemma. Obviously, the results can imply the case in [23].
In , we have , as , and . Let and be the size of the left and right subtrees of . It is clear that . From the procession of constructing binary search trees, we can see that and are two random variables with uniform distribution on . We write if X and Y have the same distribution. It is easy to find that
In the following, we will show several properties of , and , the proofs can be seen in [23] and [24].
Lemma 1 (see [23])
Let be the number of nodes having no children in a binary search tree of size n. For any positive integer , we have
where , and the two random variables and are the independent conditioning on .
Lemma 2 (see [23])
In a binary search tree of size n, when , we have
and
When ,
when ,
where EX and VarX denote the expectation and variance of X, respectively.
In the following, by computing the fourth moment of and , we obtain the strong limit properties (in the sense of a.e.) of them by the Chebyshev inequality and the Borel-Cantelli lemma.
2 Main result
Theorem 1 In a binary search tree of size n, for any integer , we have
Proof From the Theorem 5 of [23], we already have and . Then we have by Lemma 2
In the following, we will show the exact expression of , then we can get (4) by the Borel-Cantelli lemma.
By the independence of and , and , we have
By , (7), (8), and (9), we have
Using (10) once again, we arrive at
Hence, we have
By (11), we obtain
By (12),
By the Chebyshev inequality and (13), for arbitrary , we have
Then
By the Borel-Cantelli lemma and (14), for arbitrary , we have
By (15), we have (4) holds in the case ; by (13), (5), and (6), we have (4) holds in the case and . This completes the proof. □
In the following, we will show the strong limit property of in a random binary search tree of size n.
Theorem 2 Let n, m be two positive integers, be the number of subtrees of size m (<n) in random binary search trees of size n. Then
Proof When , ; ; when , by (2) and (3), we have
The second term of (17),
where means that as . Then by , the third term of (17),
The last term of (17),
By (17), (18), (19), and (20), we have
Repeating (21), we have
By (22), for n large enough and fixed m, we have
By the Chebyshev inequality, the Borel-Cantelli lemma and (23), for arbitrary , we have
By (24), (16) holds. This is the end of the proof. □
References
Kemp R: Fundamentals of the Average Case Analysis of Particular Algorithms. Wiley-Teubner, Stuttgart; 1984.
Knuth D 3. In The Art of Computer Programming: Sorting and Searching. Addison-Wesley, Reading; 1973.
Mahmoud H: Evolution of Random Search Trees. Wiley, New York; 1992.
Sedgewick R, Flajolet P: An Introduction to the Analysis of Algorithms. Addison-Wesley, Reading; 1996.
Kirschenhofer P: On the height of leaves in binary trees. J. Comb. Inf. Syst. Sci. 1983, 8: 44–60.
Panholzer A, Prodinger H: Descendants and ascendants in binary trees. Discrete Math. Theor. Comput. Sci. 1997, 1: 247–266.
Devroye L, Neininger R: Distances and finger search in random binary search trees. SIAM J. Comput. 2004, 33: 647–658. 10.1137/S0097539703424521
Mahmoud H, Neininger R: Distribution of distances in random binary search trees. Ann. Appl. Probab. 2003, 13(1):253–276.
Svante J: Left and right pathlenghts in random binary trees. Algorithmica 2006, 46: 419–429. 10.1007/s00453-006-0099-3
Devroye L: Applications of Stein’s method in the analysis of random binary search trees. Institute for Mathematical Sciences Lecture Notes Series 5. In Stein’s Method and Applications. Edited by: Chen L, Barbour A. World Scientific, Singapore; 2005:247–297.
Drmota M: An analytic approach to the height of binary search trees. J. Assoc. Comput. Mach. 2001, 29: 89–119.
Drmota M: An analytic approach to the height of binary search trees II. J. Assoc. Comput. Mach. 2003, 50: 333–374. 10.1145/765568.765572
Devroye L: A note on the height of binary search trees. J. Assoc. Comput. Mach. 1986, 33: 489–498. 10.1145/5925.5930
Devroye L: Branching processes in the analysis of the height of trees. Acta Inform. 1987, 24: 277–298.
Drmota M: The variance of the height of binary search trees. Theor. Comput. Sci. 2002, 270: 913–919. 10.1016/S0304-3975(01)00006-8
Flajolet P, Martinez C, Gourdon X: Patterns in random binary search trees. Random Struct. Algorithms 1997, 11: 223–244. 10.1002/(SICI)1098-2418(199710)11:3<223::AID-RSA2>3.0.CO;2-2
Robson JM: On the concentration of the height of binary search trees. Lecture Notes in Computer Science 1256. ICALP 97 Proceedings 1997, 441–448.
Robson JM: Constant bounds on the moments of the height of binary search trees. Theor. Comput. Sci. 2002, 276: 435–444. 10.1016/S0304-3975(01)00306-1
Su C, Liu J, Feng QQ: A note on the distance in random recursive trees. Stat. Probab. Lett. 2006, 76: 1748–1755. 10.1016/j.spl.2006.04.020
Su C, Liu J, Hu ZS: The law of large numbers of the size of complete interval trees. Adv. Math. China 2007, 36(2):181–188. (in Chinese)
Prodinger H: A note on the distribution of the three types of nodes in uniform binary trees. Sémin. Lothar. Comb. 1996., 38: Article ID 38b (electronic)
Rote G: Binary trees having a given number of nodes with 0, 1, and 2 children. Sémin. Lothar. Comb. 1997., 38: Article ID 38b (electronic)
Liu J, Su C, Chen Y: Limiting barticle for the nodes in binary search trees. Sci. China Ser. A, Math. 2008, 51(1):101–114. 10.1007/s11425-007-0129-x
Su C, Miao BQ, Feng QQ: On the subtrees of random binary search trees. Chin. J. Appl. Probab. Stat. 2006, 22(3):304–310. (in Chinese)
Acknowledgements
This work is supported by Anhui Scientific Research Foundation (KJ2012A205, KJ2012B117, KJ2013B162) and Chaohu University Scientific Research Foundation.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The author declares that they have no competing interests.
An erratum to this article can be found at http://dx.doi.org/10.1186/1029-242X-2013-416.
The paper contains some ethical problems, so the authors were advised by the editor to retract their paper and resubmit it after corrections.
A retraction note to this article can be found online at http://dx.doi.org/10.1186/1029-242X-2013-416.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Chen, P., Peng, W. RETRACTED ARTICLE: Strong limiting behavior in binary search trees. J Inequal Appl 2013, 60 (2013). https://doi.org/10.1186/1029-242X-2013-60
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1029-242X-2013-60