Skip to main content
QUICK REVIEW

[Paper Review] Cache-Oblivious Priority Queues with Decrease-Key and Applications to Graph Algorithms

John Iacono, Riko Jacob|arXiv (Cornell University)|Mar 7, 2019
Distributed systems and fault toleranceComputer Science1 citations
TL;DR

This paper presents cache-oblivious priority queues supporting Insert, DecreaseKey, ExtractMin, and Update operations with improved I/O efficiency in external memory. By introducing a parameterized structure using x-boxes and buffered repository trees, the authors achieve optimal I/O bounds for graph algorithms on massive dense graphs, particularly for single-source shortest paths, DFS, and BFS, with I/O complexity O(E/B log(E/V B) E/B) when E/V = Ω(M).

ABSTRACT

We present priority queues in the cache-oblivious external memory model with block size $B$ and main memory size $M$ that support on $N$ elements, operation extsc{UPDATE} (combination of extsc{INSERT} and extsc{DECREASEKEY}) in $O \left(\frac{1}{B}\log_{\frac{\lambda}{B}} \frac{N}{B} ight)$ amortized I/Os and operations extsc{EXTRACT-MIN} and extsc{DELETE} in $O \left(\lceil \frac{\lambda^{\varepsilon}}{B} \log_{\frac{\lambda}{B}} \frac{N}{B} ceil \log_{\frac{\lambda}{B}} \frac{N}{B} ight)$ amortized I/Os, using $O \left(\frac{N}{B}\log_{\frac{\lambda}{B}} \frac{N}{B} ight)$ blocks, for a user-defined parameter $\lambda \in [2, N ]$ and any real $\varepsilon \in (0,1)$. Our result improves upon previous I/O-efficient cache-oblivious and cache-aware priority queues [Chowdhury and Ramachandran, TALG 2018], [Brodal et al., SWAT 2004], [Kumar and Schwabe, SPDP 1996], [Arge et al., SICOMP 2007], [Fadel et al., TCS 1999]. We also present buffered repository trees that support on a multi-set of $N$ elements, operation extsc{INSERT} in $O \left(\frac{1}{B}\log_{\frac{\lambda}{B}} \frac{N}{B} ight)$ I/Os and operation extsc{EXTRACT} on $K$ extracted elements in $O \left(\frac{\lambda^{\varepsilon}}{B} \log_{\frac{\lambda}{B}} \frac{N}{B} + \frac{K}{B} ight)$ amortized I/Os, using $O \left(\frac{N}{B} ight)$ blocks, improving previous cache-aware and cache-oblivious results [Arge et al., SICOMP '07], [Buchsbaum et al., SODA '00]. In the cache-oblivious model, for $\lambda = O \left(E/V ight)$, we achieve $O \left(\frac{E}{B}\log_{\frac{E}{V B}} \frac{E}{B} ight)$ I/Os for single-source shortest paths, depth-first search and breadth-first search algorithms on massive directed dense graphs $(V,E)$. Our algorithms are I/O-optimal for $E/V = \Omega (M)$ (and in the cache-aware setting for $\lambda = O(M)$).

Motivation & Objective

  • To design cache-oblivious priority queues that support DecreaseKey and Update operations efficiently in external memory.
  • To improve I/O complexity for fundamental graph algorithms like SSSP, DFS, and BFS in the cache-oblivious model.
  • To achieve optimal I/O bounds for dense graphs where E/V = Ω(M), leveraging parameter λ = O(E/V).
  • To extend the use of x-boxes and buffered repository trees to enable efficient, parameterized I/O operations in cache-oblivious settings.

Proposed method

  • Introduces a parameterized cache-oblivious priority queue using x-boxes with size parameter λ ∈ [2, N] and α ∈ (0, 1).
  • Employs batched insertion and fractional cascading in x-boxes to support efficient search and extraction with O(1/B) amortized I/O per element.
  • Uses a layered structure of x-boxes with increasing size to support Insert in O(1/B logλB (N/B)) amortized I/Os.
  • Applies buffered repository trees (BRTs) with x-boxes to support Insert and Extract operations in O(1/B logλB (N/B)) and O(λα/(1+α)/B logλB (N/B) + K/B) amortized I/Os, respectively.
  • Sets λ = O(E/V) to optimize performance for dense graphs in graph algorithms.
  • Combines the data structures with known external-memory graph algorithms (e.g., Vitter’s SSSP, Buchsbaum’s DFS/BFS) to derive end-to-end I/O bounds.

Experimental results

Research questions

  • RQ1Can cache-oblivious priority queues support DecreaseKey and Update operations with I/O complexity matching the optimal base-(M/B) logarithmic bound?
  • RQ2What is the optimal I/O complexity for cache-oblivious priority queues supporting all standard operations including DecreaseKey?
  • RQ3Can x-boxes be used to design efficient, parameterized cache-oblivious data structures for priority queues and BRTs?
  • RQ4How do the proposed data structures improve I/O efficiency for graph algorithms on massive dense graphs?
  • RQ5What parameter settings (e.g., λ = O(E/V)) yield I/O-optimality for SSSP, DFS, and BFS in the cache-oblivious model?

Key findings

  • The proposed cache-oblivious priority queue supports Update in O(1/B logλB (N/B)) amortized I/Os and ExtractMin in O(⌈λε/B logλB (N/B)⌉ logλB (N/B)) amortized I/Os, using O(N/B logλB (N/B)) blocks.
  • For λ = O(M), the I/O complexity becomes optimal O(1/B logM/B (N/B)) amortized I/Os, matching the best-known cache-aware bounds.
  • The buffer repository tree supports Insert in O(1/B logλB (N/B)) and Extract in O(λα/(1+α)/B logλB (N/B) + K/B) amortized I/Os per element.
  • When λ = O(E/V), the SSSP, DFS, and BFS algorithms achieve I/O complexity O(E/B log(E/V B) E/B), which is I/O-optimal for E/V = Ω(M).
  • The results improve upon prior cache-oblivious approaches that either lacked DecreaseKey support or incurred O(1/B log²(N/B)) I/Os.
  • The framework enables I/O-optimality for dense graphs in the cache-oblivious model, unifying efficient priority queues and BRTs for external memory graph processing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.