Multiattribute hashing using Gray codes
Author:
Open Access
- 15 June 1986
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMOD Record
- Vol. 15 (2) , 227-238
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].Keywords
This publication has 16 references indexed in Scilit:
- Gray codes for partial match and range queriesIEEE Transactions on Software Engineering, 1988
- Performance analysis of linear hashing with partial expansionsACM Transactions on Database Systems, 1982
- Partial-match retrieval for dynamic filesBIT Numerical Mathematics, 1982
- Optimal partial-match retrievalBIT Numerical Mathematics, 1980
- Extendible hashing—a fast access method for dynamic filesACM Transactions on Database Systems, 1979
- Optimal partial-match retrieval when fields are independently specifiedACM Transactions on Database Systems, 1979
- Dynamic hashingBIT Numerical Mathematics, 1978
- Multidimensional binary search trees used for associative searchingCommunications of the ACM, 1975
- Analysis and performance of inverted data base structuresCommunications of the ACM, 1975
- Gray Codes and Paths on the n-CubeBell System Technical Journal, 1958