A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs

Research output: Contribution to journalArticleResearchpeer review

Authors

  • Megha Khosla
  • Avishek Anand

Research Organisations

View graph of relations

Details

Original languageEnglish
Pages (from-to)3707-3724
Number of pages18
JournalALGORITHMICA
Volume81
Issue number9
Publication statusPublished - 12 Jun 2019

Abstract

Hash tables are ubiquitous in computer science for efficient access to large datasets. However, there is always a need for approaches that offer compact memory utilisation without substantial degradation of lookup performance. Cuckoo hashing is an efficient technique of creating hash tables with high space utilisation and offer a guaranteed constant access time. We are given n locations and m items. Each item has to be placed in one of the k≥ 2 locations chosen by k random hash functions. By allowing more than one choice for a single item, cuckoo hashing resembles multiple choice allocations schemes. In addition it supports dynamically changing the location of an item among its possible locations. We propose and analyse an insertion algorithm for cuckoo hashing that runs in linear time with high probability and in expectation. Previous work on total allocation time has analysed breadth first search, and it was shown to be linear only in expectation. Our algorithm finds an assignment (with probability 1) whenever it exists. In contrast, the other known insertion method, known as random walk insertion, may run indefinitely even for a solvable instance. We also present experimental results comparing the performance of our algorithm with the random walk method, also for the case when each location can hold more than one item. As a corollary we obtain a linear time algorithm (with high probability and in expectation) for finding perfect matchings in a special class of sparse random bipartite graphs. We support this by performing experiments on a real world large dataset for finding maximum matchings in general large bipartite graphs. We report an order of magnitude improvement in the running time as compared to the Hopkraft–Karp matching algorithm.

Keywords

    Bipartite matching, Cuckoo hashing, Load balancing

ASJC Scopus subject areas

Cite this

A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs. / Khosla, Megha; Anand, Avishek.
In: ALGORITHMICA, Vol. 81, No. 9, 12.06.2019, p. 3707-3724.

Research output: Contribution to journalArticleResearchpeer review

Khosla M, Anand A. A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs. ALGORITHMICA. 2019 Jun 12;81(9):3707-3724. doi: 10.48550/arXiv.1611.07786, 10.1007/s00453-019-00595-4
Khosla, Megha ; Anand, Avishek. / A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs. In: ALGORITHMICA. 2019 ; Vol. 81, No. 9. pp. 3707-3724.
Download
@article{b03bd58b44414c6081fa4c3bb289e4c3,
title = "A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs",
abstract = "Hash tables are ubiquitous in computer science for efficient access to large datasets. However, there is always a need for approaches that offer compact memory utilisation without substantial degradation of lookup performance. Cuckoo hashing is an efficient technique of creating hash tables with high space utilisation and offer a guaranteed constant access time. We are given n locations and m items. Each item has to be placed in one of the k≥ 2 locations chosen by k random hash functions. By allowing more than one choice for a single item, cuckoo hashing resembles multiple choice allocations schemes. In addition it supports dynamically changing the location of an item among its possible locations. We propose and analyse an insertion algorithm for cuckoo hashing that runs in linear time with high probability and in expectation. Previous work on total allocation time has analysed breadth first search, and it was shown to be linear only in expectation. Our algorithm finds an assignment (with probability 1) whenever it exists. In contrast, the other known insertion method, known as random walk insertion, may run indefinitely even for a solvable instance. We also present experimental results comparing the performance of our algorithm with the random walk method, also for the case when each location can hold more than one item. As a corollary we obtain a linear time algorithm (with high probability and in expectation) for finding perfect matchings in a special class of sparse random bipartite graphs. We support this by performing experiments on a real world large dataset for finding maximum matchings in general large bipartite graphs. We report an order of magnitude improvement in the running time as compared to the Hopkraft–Karp matching algorithm.",
keywords = "Bipartite matching, Cuckoo hashing, Load balancing",
author = "Megha Khosla and Avishek Anand",
year = "2019",
month = jun,
day = "12",
doi = "10.48550/arXiv.1611.07786",
language = "English",
volume = "81",
pages = "3707--3724",
journal = "ALGORITHMICA",
issn = "0178-4617",
publisher = "Springer New York",
number = "9",

}

Download

TY - JOUR

T1 - A Faster Algorithm for Cuckoo Insertion and Bipartite Matching in Large Graphs

AU - Khosla, Megha

AU - Anand, Avishek

PY - 2019/6/12

Y1 - 2019/6/12

N2 - Hash tables are ubiquitous in computer science for efficient access to large datasets. However, there is always a need for approaches that offer compact memory utilisation without substantial degradation of lookup performance. Cuckoo hashing is an efficient technique of creating hash tables with high space utilisation and offer a guaranteed constant access time. We are given n locations and m items. Each item has to be placed in one of the k≥ 2 locations chosen by k random hash functions. By allowing more than one choice for a single item, cuckoo hashing resembles multiple choice allocations schemes. In addition it supports dynamically changing the location of an item among its possible locations. We propose and analyse an insertion algorithm for cuckoo hashing that runs in linear time with high probability and in expectation. Previous work on total allocation time has analysed breadth first search, and it was shown to be linear only in expectation. Our algorithm finds an assignment (with probability 1) whenever it exists. In contrast, the other known insertion method, known as random walk insertion, may run indefinitely even for a solvable instance. We also present experimental results comparing the performance of our algorithm with the random walk method, also for the case when each location can hold more than one item. As a corollary we obtain a linear time algorithm (with high probability and in expectation) for finding perfect matchings in a special class of sparse random bipartite graphs. We support this by performing experiments on a real world large dataset for finding maximum matchings in general large bipartite graphs. We report an order of magnitude improvement in the running time as compared to the Hopkraft–Karp matching algorithm.

AB - Hash tables are ubiquitous in computer science for efficient access to large datasets. However, there is always a need for approaches that offer compact memory utilisation without substantial degradation of lookup performance. Cuckoo hashing is an efficient technique of creating hash tables with high space utilisation and offer a guaranteed constant access time. We are given n locations and m items. Each item has to be placed in one of the k≥ 2 locations chosen by k random hash functions. By allowing more than one choice for a single item, cuckoo hashing resembles multiple choice allocations schemes. In addition it supports dynamically changing the location of an item among its possible locations. We propose and analyse an insertion algorithm for cuckoo hashing that runs in linear time with high probability and in expectation. Previous work on total allocation time has analysed breadth first search, and it was shown to be linear only in expectation. Our algorithm finds an assignment (with probability 1) whenever it exists. In contrast, the other known insertion method, known as random walk insertion, may run indefinitely even for a solvable instance. We also present experimental results comparing the performance of our algorithm with the random walk method, also for the case when each location can hold more than one item. As a corollary we obtain a linear time algorithm (with high probability and in expectation) for finding perfect matchings in a special class of sparse random bipartite graphs. We support this by performing experiments on a real world large dataset for finding maximum matchings in general large bipartite graphs. We report an order of magnitude improvement in the running time as compared to the Hopkraft–Karp matching algorithm.

KW - Bipartite matching

KW - Cuckoo hashing

KW - Load balancing

UR - http://www.scopus.com/inward/record.url?scp=85067408348&partnerID=8YFLogxK

U2 - 10.48550/arXiv.1611.07786

DO - 10.48550/arXiv.1611.07786

M3 - Article

AN - SCOPUS:85067408348

VL - 81

SP - 3707

EP - 3724

JO - ALGORITHMICA

JF - ALGORITHMICA

SN - 0178-4617

IS - 9

ER -