PROBABILISTIC ANALYSIS OF DISJOINT SET UNION ALGORITHMS

被引:3
作者
BOLLOBAS, B
SIMON, I
机构
[1] LOUISIANA STATE UNIV, DEPT MATH, BATON ROUGE, LA 70803 USA
[2] CALIF STATE UNIV HAYWARD, DEPT MATH & COMP SCI, HAYWARD, CA 94542 USA
关键词
PROBABILISTIC METHOD; RANDOM GRAPHS; ANALYSIS OF ALGORITHMS; EXPECTED TIME BOUNDS; UNION-FIND PROBLEM; EQUIVALENCE ALGORITHMS; DISJOINT SET UNION; QUICK-FIND ALGORITHMS;
D O I
10.1137/0222064
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A number of open questions are settled about the expected costs of two disjoint set Union and Find algorithms raised by Knuth and Schonhage [Theoret. Comput. Sci., 6 (1978), pp. 281-3151. This paper shows that the expected time of the Weighted Quick-Find (QFW) algorithm to perform (n - 1) randomly chosen unions is cn + o (n / log n), where c = 2.0847 .... Through an observation of Tarjan and Van Leeuwen in V. Assoc. Comput. Mach., 22 (1975), pp. 215-2251 this implies linear time bounds to perform 0(n) unions and finds for a class of other union-find algorithms. It is also proved that the expected time of the Unweighted Quick-Find (QF) algorithm is n2/8 + O(n(log n)2). The expected costs of QFW and QF are analyzed when fewer than (n - 1) unions are performed. Among other results, for QFW it is shown that the expected cost of m = o(n) randomly chosen unions is m(1 + o(1)). If m = alphan/2, where alpha less-than-or-equal-to e-2, this cost is m(1 + epsilon(alpha) + o(1)), where epsilon(alpha) --> 0 as a --> 0 and epsilon(e-2) less-than-or-equal-to .026. For QF, the expected cost of n/2 - n2/3(log n)2/3 randomly chosen unions is 0(n log n).
引用
收藏
页码:1053 / 1074
页数:22
相关论文
共 26 条