English

Incremental Edge Orientation in Forests

Data Structures and Algorithms 2021-07-07 v1

Abstract

For any forest G=(V,E)G = (V, E) it is possible to orient the edges EE so that no vertex in VV has out-degree greater than 11. This paper considers the incremental edge-orientation problem, in which the edges EE arrive over time and the algorithm must maintain a low-out-degree edge orientation at all times. We give an algorithm that maintains a maximum out-degree of 33 while flipping at most O(loglogn)O(\log \log n) edge orientations per edge insertion, with high probability in nn. The algorithm requires worst-case time O(lognloglogn)O(\log n \log \log n) per insertion, and takes amortized time O(1)O(1). The previous state of the art required up to O(logn/loglogn)O(\log n / \log \log n) edge flips per insertion. We then apply our edge-orientation results to the problem of dynamic Cuckoo hashing. The problem of designing simple families H\mathcal{H} of hash functions that are compatible with Cuckoo hashing has received extensive attention. These families H\mathcal{H} are known to satisfy \emph{static guarantees}, but do not come typically with \emph{dynamic guarantees} for the running time of inserts and deletes. We show how to transform static guarantees (for 11-associativity) into near-state-of-the-art dynamic guarantees (for O(1)O(1)-associativity) in a black-box fashion. Rather than relying on the family H\mathcal{H} to supply randomness, as in past work, we instead rely on randomness within our table-maintenance algorithm.

Keywords

Cite

@article{arxiv.2107.02318,
  title  = {Incremental Edge Orientation in Forests},
  author = {Michael A. Bender and Tsvi Kopelowitz and William Kuszmaul and Ely Porat and Clifford Stein},
  journal= {arXiv preprint arXiv:2107.02318},
  year   = {2021}
}
R2 v1 2026-06-24T03:54:55.484Z