ON THE AVERAGE SIZE OF THE INTERSECTION OF BINARY-TREES

被引:4
|
作者
BAEZAYATES, R [1 ]
CASAS, R [1 ]
DIAZ, J [1 ]
MARTINEZ, C [1 ]
机构
[1] UNIV POLITECN CATALUNYA,DEPT LLENGUATGES & SISTEMES,E-08028 BARCELONA,SPAIN
关键词
AVERAGE COMPLEXITY; BINARY SEARCH TREES; GENERATING FUNCTIONS;
D O I
10.1137/0221002
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The average-case analysis of algorithms for binary search trees yields very different results from those obtained under the uniform distribution. The analysis itself is more complex and replaces algebraic equations by integral equations. In this work this analysis is carried out for the computation of the average size of the intersection of two binary trees. The development of this analysis involves Bessel functions that appear in the solutions of partial differential equations, and the result has an average size of O(n2 square-root 2-2/square-root log n), contrasting with the size O(1) obtained when considering a uniform distribution.
引用
收藏
页码:24 / 32
页数:9
相关论文
共 50 条