|
ABSTRACT
Linear hashing and spiral storage are two dynamic hashing schemes originally designed for external files. This paper shows how to adapt these two methods for hash tables stored in main memory. The necessary data structures and algorithms are described, the expected performance is analyzed mathematically, and actual execution times are obtained and compared with alternative techniques. Linear hashing is found to be both faster and easier to implement than spiral storage. Two alternative techniques are considered: a simple unbalanced binary tree and double hashing with periodic rehashing into a larger table. The retrieval time of linear hashing is similar to double hashing and substantially faster than a binary tree, except for very small trees. The loading times of double hashing (with periodic reorganization), a binary tree, and linear hashing are similar. Overall, linear hashing is a simple and efficient technique for applications where the cardinality of the key set is not known in advance.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Carter, L.J. and Wegman, M.L. Universal Classes of Hash Functions, Journal of Computer and System Sciences 18, 1 (1979), 1.43-154.
|
 |
2
|
|
| |
3
|
|
| |
4
|
Larson, P.-A. Dynamic hashing. BIT 18, 2 (1978}, 184--201.
|
| |
5
|
Larson, P.-,~. Linear hashing with partial expansions. In Proceedings of the 6th Conference on Very Large Databases, (New York, 1980), 224-232.
|
 |
6
|
|
 |
7
|
|
| |
8
|
Larson, P.-.~. Dynamic Hash Tables, Technical Report CS-86-21, University of Waterloo, 1986.
|
| |
9
|
Litwin, W. Linear hashing: A new tool for file and table addressing. In Proceedings of the 6th Conference on Very Large Databases, (New York, 1980}, 212-223.
|
| |
10
|
|
| |
11
|
Mullin, J. K. Spiral storage: Efficient dynamic hashing with constant performance. Comput. J. 28, 3 {1985), 330-334.
|
| |
12
|
Ramakrishna, M.V. Perfect Hashing for External Files, Technical Report CS-86-25, University of Waterloo, 1986.
|
| |
13
|
Ramamohanarao, K. and Lloyd, J. K. Dynamic hashing schemes. Comput. J. 25, 4 (1982), 478-485.
|
 |
14
|
|
CITED BY 16
|
|
Ashok Rathi , Huizhu Lu , G. E. Hedrick, Performance comparison of extendible hashing and linear hashing techniques, Proceedings of the 1990 ACM SIGSMALL/PC symposium on Small systems, p.178-185, March 28-30, 1990, Crystal City, Virginia, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|