Back to search

McGill University

Two-way hashing with separate chaining and linear probing

Abstract

dc:description.abstract

Two-way chaining is a novel hashing scheme that uses two independent truly uniform hash functions f and g to insert m keys into a hash table with n chains, where each key x is inserted into the shortest chain among the chains f(x) and g( x), breaking ties randomly. It is known [13, 18] that the worst-case search time of two-way chaining is log2 log n + m/n + O(1), asymptotically almost surely. In this thesis, we study the two-way chaining paradigm under different assumptions. First, we generalize the result to nonuniform hash functions. We analyze two-way chaining in the fixed density model where the two independent hash functions behave according to two densities defined on the unit interval. When m = O(n), we prove that asymptotically almost surely, the worst-case search time is at least log2 log n - O(1). If, in addition, the densities are bounded, then it is at most log2 log n + O( m/n). Secondly, we consider the off-line version of two-way chaining where all the hashing values available for the m keys are known in advance. For constant k ~ N , we show that there is a threshold ck such that if m ≤ ckn, then one can assign the keys to the chains so that the maximum search time is at most 2k, asymptotically almost surely. We tightly estimate ck, and prove that it is, in fact, asymptotic to k. Algorithms for finding such assignments are also given. Thirdly, we utilize the two-way chaining paradigm to design efficient open addressing hashing schemes. We study two-way linear probing algorithms. These are algorithms that employ two independent linear probe sequences to hash the keys. We prove an O(log log n) universal lower bound on the worst-case search time of any two-way linear probing algorithm, where n is the hash table size. We show, however, that some simple two-way linear probing algorithms, unexpectedly, have implausible worst-case performances. Subsequently, we present several efficient two-way linear probing algorithms whose performance matches the lower bound. Simulations back up the theoretical results.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Grantor dc:publisher
McGill University
Year dc:date.issued
2004

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Malalla, Ebrahim

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
Language dc:language.iso
en

Identifiers

dc:identifier.*
OCLC
891948467
Dc Identifier Other
hyrax:9880vr41s

Chain of custody

source
Harvested from
McGill University
Base URL
mcgill.scholaris.ca/server/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Malalla, Ebrahim. Two-way hashing with separate chaining and linear probing. McGill University, 2004. https://doi.org/10.82308/45910