Skip to main content

Efficient equality-testing and updating of sets

  • Algorithms
  • Conference paper
  • First Online:
Algorithms, Concurrency and Knowledge (ACSC 1995)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1023))

Included in the following conference series:

  • 132 Accesses

Abstract

This paper is concerned with data structures and algorithms for managing an arbitrary number of sets such that we can dynamically update each individual set and test whether any two sets are equal. Previous schemes can support set equality-testing in constant time and an update operation (i.e. insert or delete an element) in time O(log2 m) [7, 5] or O(log m log* m) [2], where m is the number of insert operations performed. Note that m is an upper bound of n, the total size of the sets, but maybe a loose one. When we have performed a lot of delete operations, having few elements left in the sets, it is natural to expect the operations to be performed faster. Yet existing schemes are not favored when n is much smaller than m. It is desirable to have a scheme whose performance is in terms of n instead of m.

This paper presents a new scheme which is more dynamic in nature and supports each insert or delete operation in O(log n) time, while maintaining the constant time complexity of set equality-testing.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. A.V. Aho, J.E. Hopcroft, and J.D. Ullman, The Design and Analysis of Computer Algorithms, Ex 2.12, 71.

    Google Scholar 

  2. T.W. Lam and K.H. Lee, On Set Equality-Testing, Proceedings of the 2nd Italian Conference on Algorithms and Complexity, 1994, 179–191.

    Google Scholar 

  3. W. Pugh and T. Teitelbaum, Incremental Computation via Function Caching, Proceedings of the Sixteenth ACM Symposium on Principles of Programming Languages, 1989, 315–328.

    Google Scholar 

  4. M. Sassa and E. Goto, A Hashing Method for Set Operations, Information Processing Letters, 5, 1976, 265–279.

    Google Scholar 

  5. R. Sundar and R.E. Tarjan, Unique Binary Search Tree Representations and Equality Testing of Sets and Sequences, Proceedings of the Twenty-second Annual ACM Symposium on Theory of Computing, 1990, 18–25.

    Google Scholar 

  6. M.N. Wegman and J.L. Carter, New Hash Functions and Their Use in Authentication and Set Equality, Journal of Computer and System Sciences, 22, 1981, 265–279.

    Google Scholar 

  7. D.M. Yellin, Representing Sets with Constant Time Equality Testing, Journal of Algorithms, 13, 1992, 353–373; a preliminary version appeared in the Proceedings of the First Annual ACM-SIAM Symposium on Algorithms, 1990, 64–73.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Kanchana Kanchanasut Jean-Jacques Lévy

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lam, T.W., Lee, K.H. (1995). Efficient equality-testing and updating of sets. In: Kanchanasut, K., Lévy, JJ. (eds) Algorithms, Concurrency and Knowledge. ACSC 1995. Lecture Notes in Computer Science, vol 1023. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60688-2_34

Download citation

  • DOI: https://doi.org/10.1007/3-540-60688-2_34

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60688-8

  • Online ISBN: 978-3-540-49262-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics