|
ABSTRACT
Multiattribute hashing and its variations have been proposed for partial match and range queries in the past. The main idea is that each record yields a bitstring @@@@ (“record signature”), according to the values of its attributes. The binary value (@@@@)2 of this string decides the bucket that the record is stored. In this paper we propose to use Gray codes instead of binary codes, in order to map record signatures to buckets. In Gray codes, successive codewords differ in the value of exactly one bit position, thus, successive buckets hold records with similar record signatures. The proposed method achieves better clustering of similar records and avoids some of the (expensive) random disk accesses, replacing them with sequential ones. We develop a mathematical model, derive formulas giving the average performance of both methods and show that the proposed method achieves 0% - 50% relative savings over the binary codes. We also discuss how Gray codes could be applied to some retrieval methods designed for range queries, such as the grid file [Nievergelt84a] and the approach based on the so-called z-ordering [Orenstein84a].
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.
 |
Aho79a
|
|
 |
Bentley75a
|
|
 |
Cardenas75a
|
|
 |
Fagin79a
|
|
| |
Faloutsos85a
|
|
| |
Gilbert58a
|
Gtlbert, E N, "Gray Codes and Paths on the n- Cube," Bell System Techn,cal Journal, vol 37, no 3, pp 815-826, May 1958
|
| |
Gray53a
|
Gray, F, Pulse Code Commumcatsons, US Patent 2632058, March 17, 1953
|
| |
Larson78a
|
Larson, P, "Dynamm Hashing," BIT, vol 18, pp 184-201, 1978
|
 |
Larson82a
|
|
| |
Litwin80a
|
Lltwm, W, "Linear Hashing A new Tool for File and Table Addressing," Proc 6th Interaatsonal Conference on VLDB, pp 212-223, Montreal, Oct 1980
|
| |
Lloyd80a
|
Lloyd, J W, "Optimal Partial-Match Retrieval," BIT, vol 20, pp 406-413, 1980
|
| |
Lloyd82a
|
Lloyd, J W and K Ramamohanarao, "Partial- Match Retrieval for Dynamm Files," BIT, vol 22, pp 150-168, 1982
|
| |
Martin79a
|
|
 |
Nievergelt84a
|
|
 |
Orenstein84a
|
|
 |
Ramamohanarao83a
|
|
| |
Reingold77a
|
|
| |
Rivest76a
|
Rlvest, R L, "Partial Match Retrieval Algorithms," SIAM J Compet, vol 5, no 1, pp 19-50, March 1976
|
 |
Robinson81a
|
|
 |
Rothnie74a
|
|
|