skip to main content
article
Free access

Storing a sparse table

Published: 01 November 1979 Publication History

Abstract

The problem of storing and searching large sparse tables is ubiquitous in computer science. The standard technique for storing such tables is hashing, but hashing has poor worst-case performance. We propose a good worst-case method for storing a static table of n entries, each an integer between 0 and N - 1. The method requires O(n) words of storage and allows O(logn N) access time. Although our method is a little complicated to use in practice, our analysis shows why a simpler algorithm used for compressing LR parsing tables works so well.

References

[1]
Alto, A.V., Hopcroft, J.E., and Ullman, J.D. The Design and Analysis of Computer d Igorithm. Addison-Wesley, Reading, Mass., 1974,
[2]
Aho, A.V., and Ullman, J.D. Principles of Compiler Design. Addison-Wesley, Reading, Mass., 1977.
[3]
Downey, P.J., Sethi, R., and Tarjan, R.E. Variations on the common subexpression problem. To appear in J. A CM.
[4]
Even, S., Lichtenstein, D.I., and Shiloach, Y. Remarks on Ziegler's method for matrix compression. Unpublished manuscript, 1977.
[5]
Knuth, D.E. The Art of Computer Programming, VoL 3: Sorting and Searching. Addison-Wesley, Reading, Mass., 1973.
[6]
Sprugnoli, R. Perfect hashing functions: A single probe retrieving method for static sets. Comm. ACM 20, 11 (Nov. 1977), 841-850.
[7]
Tarjan, R.E. Graph theory and Gaussian elimination. In Sparse Matrix Computations, J.R. Bunch and D.J. Rose, Eds., Academic Press, New York, 1976, pp. 3-22.
[8]
Ziegler, S.F. Smaller faster table driven parser. Unpublished manuscript, Madison Academic Comptg. Ctr., U. of Wisconsin, Madison, Wisconsin, 1977.

Cited By

View all
  • (2022)Squaring the circleProceedings of the International Conference on Parallel Architectures and Compilation Techniques10.1145/3559009.3569665(148-159)Online publication date: 8-Oct-2022
  • (2022)Nearly Optimal Static Las Vegas Succinct DictionarySIAM Journal on Computing10.1137/20M136364951:3(STOC20-174-STOC20-249)Online publication date: 2-May-2022
  • (2021)PTHash: Revisiting FCH Minimal Perfect HashingProceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval10.1145/3404835.3462849(1339-1348)Online publication date: 11-Jul-2021
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 November 1979
Published in CACM Volume 22, Issue 11

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Gaussian elimination
  2. parsing
  3. searching
  4. sparse matrix
  5. table compression
  6. table lookup

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)246
  • Downloads (Last 6 weeks)35
Reflects downloads up to 09 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2022)Squaring the circleProceedings of the International Conference on Parallel Architectures and Compilation Techniques10.1145/3559009.3569665(148-159)Online publication date: 8-Oct-2022
  • (2022)Nearly Optimal Static Las Vegas Succinct DictionarySIAM Journal on Computing10.1137/20M136364951:3(STOC20-174-STOC20-249)Online publication date: 2-May-2022
  • (2021)PTHash: Revisiting FCH Minimal Perfect HashingProceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval10.1145/3404835.3462849(1339-1348)Online publication date: 11-Jul-2021
  • (2020)Sparse-TPUProceedings of the 34th ACM International Conference on Supercomputing10.1145/3392717.3392751(1-12)Online publication date: 29-Jun-2020
  • (2020)Nearly optimal static Las Vegas succinct dictionaryProceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing10.1145/3357713.3384274(1389-1401)Online publication date: 22-Jun-2020
  • (2019)Realizing all Index Generation Functions by the Row-Shift Method2019 IEEE 49th International Symposium on Multiple-Valued Logic (ISMVL)10.1109/ISMVL.2019.00032(138-143)Online publication date: May-2019
  • (2019)Morton filters: fast, compressed sparse cuckoo filtersThe VLDB Journal10.1007/s00778-019-00561-029:2-3(731-754)Online publication date: 6-Aug-2019
  • (2018)Morton filtersProceedings of the VLDB Endowment10.14778/3213880.321388411:9(1041-1055)Online publication date: 1-May-2018
  • (2017)Mobile Unified Memory-Storage Structure Based on Hybrid Non-Volatile MemoriesACM Journal on Emerging Technologies in Computing Systems10.1145/300765013:3(1-18)Online publication date: 21-Apr-2017
  • (2017)Memory-Centric Reconfigurable Accelerator for Classification and Machine Learning ApplicationsACM Journal on Emerging Technologies in Computing Systems10.1145/299764913:3(1-24)Online publication date: 1-May-2017
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media