Abstract
We analyze the implementation of set operations using binary tries. Our techniques are substantially simpler than previous techniques used for this problem, and allow us to analysis not only the expected performance but also the probability distribution of the performance. We show that by making use of constant-time equality tests, we can achieve better performance than any previously known method for performing set operations. In particular, for two sets A and B of n elements that differ in only k elements, we can perform any set operation such as A ⋂ B in only O(k log n) expected time (without knowing in advance anything about the differences between A and B).
Preview
Unable to display preview. Download preview PDF.
References
John Allen. Anatomy of LISP, McGraw Hill Book Company, NY, 1978.
Daniel Yellin, Representing Sets with Constant Time Equality Testing, ACM-SIAM Symposium on Discrete Algorithms, 64–73. January 1990.
Eiichi Goto and Yasumasa Kanada. Hashing Lemmas on Time Complexities with Applications to Formula Manipulation, Proceedings of the 1976 ACM Symposium on Symbolic and Algebraic Computation, pp 154–158.
Luis Isidoro Trabb Pardo. Set Representation and Set Intersection, Ph.D. thesis, Stanford University, 1978
M. Sassa and E. Goto. A hashing method for fast set operations. Inf. Proc. Let. 5(2):31–34, June 1976.
J.M. Spitzen and K.N. Levitt. An example of hierarchical design and proof, Communications of the ACM, 21(12):1064–1075, December 1978.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pugh, W. (1991). Probabilistic analysis of set operations with constant-time set equality test. In: Akl, S.G., Fiala, F., Koczkodaj, W.W. (eds) Advances in Computing and Information — ICCI '90. ICCI 1990. Lecture Notes in Computer Science, vol 468. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-53504-7_62
Download citation
DOI: https://doi.org/10.1007/3-540-53504-7_62
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-53504-1
Online ISBN: 978-3-540-46677-2
eBook Packages: Springer Book Archive