AVERAGE-CASE ANALYSIS OF EQUALITY OF BINARY-TREES UNDER THE BST PROBABILITY MODEL

被引:0
|
作者
MARTINEZ, C
机构
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper a simple algorithm to test equality of binary trees currently used in symbolic computation, unification, etc. is investigated. When the uniform probability model for the input is assumed, it is well known that it takes O(1) steps on average to decide if the trees in a given pair of total size n are equal or not. The aim of the paper is to analyze this average complexity when the so-called bst probability model is assumed. The analysis is itself more complex although feasible, involving the solution of partial differential equations and singularity analysis of Bessel functions. Nevertheless, since partial differential equations are generally unsolvable, like the one which is derived from the bivariate recurrence for the equality, an indirect mechanism solving a simpler equation and showing asymptotic equivalence of solutions is used to obtain the main result : testing equality of a pair of binary trees of total size n and distributed accordingly to the bst probability model is THETA (log n) on the average.
引用
收藏
页码:350 / 359
页数:10
相关论文
共 50 条
  • [1] AVERAGE-CASE ANALYSIS ON SIMPLE FAMILIES OF TREES USING A BALANCED PROBABILITY MODEL
    CASAS, R
    DIAZ, J
    MARTINEZ, C
    THEORETICAL COMPUTER SCIENCE, 1993, 117 (1-2) : 99 - 112
  • [2] ON THE AVERAGE SHAPE OF BINARY-TREES
    RUSKEY, F
    SIAM JOURNAL ON ALGEBRAIC AND DISCRETE METHODS, 1980, 1 (01): : 43 - 50
  • [3] ON THE AVERAGE SIZE OF THE INTERSECTION OF BINARY-TREES
    BAEZAYATES, R
    CASAS, R
    DIAZ, J
    MARTINEZ, C
    SIAM JOURNAL ON COMPUTING, 1992, 21 (01) : 24 - 32
  • [4] GENERATING BINARY-TREES WITH UNIFORM PROBABILITY
    JOHNSEN, B
    BIT, 1991, 31 (01): : 15 - 31
  • [5] THE AVERAGE HEIGHT OF BINARY-TREES AND OTHER SIMPLE TREES
    FLAJOLET, P
    ODLYZKO, A
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1982, 25 (02) : 171 - 213
  • [6] On the Complexity of Searching in Trees: Average-Case Minimization
    Jacobs, Tobias
    Cicalese, Ferdinando
    Laber, Eduardo
    Molinaro, Marco
    AUTOMATA, LANGUAGES AND PROGRAMMING, PT I, 2010, 6198 : 527 - 539
  • [7] Average-case analysis of priority trees: a structure for priority queue administration
    Panholzer, A.
    Prodinger, H.
    Algorithmica (New York), 1998, 22 (04): : 600 - 630
  • [8] Average-Case Analysis of Priority Trees: A Structure for Priority Queue Administration
    A. Panholzer
    H. Prodinger
    Algorithmica, 1998, 22 : 600 - 630
  • [9] Average-case analysis of classification algorithms for Boolean functions and decision trees
    Scheffer, T
    ALGORITHMIC LEARNING THEORY, PROCEEDINGS, 2000, 1968 : 194 - 208
  • [10] Average-case analysis of priority trees: A structure for priority queue administration
    Panholzer, A
    Prodinger, N
    ALGORITHMICA, 1998, 22 (04) : 600 - 630