Converting online algorithms to local computation algorithms

Yishay Mansour, Aviad Rubinstein, Shai Vardi, Ning Xie

Abstract

This paper presents a general framework for transforming online algorithms into Local Computation Algorithms (LCAs). By assigning random ranks to input elements and simulating online decision-making, the authors bound the computational complexity using query trees. This approach significantly improves upon previous results by removing the maximum graph degree from the exponent of the time complexity, achieving polylogarithmic performance for problems such as maximal matching, load balancing, and hypergraph coloring.

Introduction

In the era of massive datasets, computing a global solution to a problem—such as finding a valid matching in a graph with billions of nodes—is often computationally infeasible. Local Computation Algorithms (LCAs) address this by allowing a system to "zoom in" on a specific part of the output. When queried about a specific element (e.g., "Is this edge part of the matching?"), an LCA must provide an answer in polylogarithmic time ($O(\log^c n)$) that remains consistent with a single global, valid solution.

The primary challenge in LCA design is maintaining this consistency across independent queries without global communication or visibility. Historically, many LCAs suffered from a "curse of the degree," where time complexity grew exponentially with the graph's maximum degree ($d$), often appearing as $O(\log^{d+1} n)$. This paper introduces a "Random Rank" simulation method that fundamentally changes this scaling behavior.

The Random Rank Framework

The authors propose a simulation-based approach to bridge the gap between online algorithms and local computation:

  1. Random Ordering: Every input element (such as a vertex or edge) is assigned a random rank $r(v) \in [0, 1]$. This effectively creates a random permutation of the input set.
  2. Online Simulation: To determine the status of an element $v$, the LCA simulates a greedy online algorithm. It recursively checks the status of all "previous" neighbors—those assigned a lower rank than $v$.
  3. Query Trees: This recursive dependency creates a "query tree." To resolve the state of $v$, the algorithm may need to resolve $u$, which in turn may depend on $w$.

Mathematical Insights

The core contribution of the paper is a tighter analysis of these query trees using the theory of Galton-Watson branching processes. The authors prove that the size of these dependency trees is only $O(\log n)$ with high probability.

Crucially, they demonstrate that the graph's maximum degree $d$ only affects the constant factor of the complexity, rather than the exponent of the logarithm. This represents a significant theoretical shift, moving the complexity from $O(\log^{d+1} n)$ to a more manageable $O(\log^c n)$. Furthermore, the authors extended this analysis to handle "negative dependence" in bipartite graphs, proving the method's robustness in load-balancing scenarios where choices are not perfectly independent.

Key Results and Applications

The framework was applied to several classic problems in distributed and local computing:

  • Maximal Matching: The authors provide an LCA that finds a maximal matching in $O(\log^3 n)$ time and space, regardless of the degree $d$.
  • Load Balancing: The method converts "power of $d$ choices" algorithms into LCAs that run in $O(\log n)$ time, achieving the same balanced distributions as global online versions.
  • Hypergraph 2-Coloring & k-CNF: For hypergraphs where each edge intersects at most $d$ others, the authors achieved a complexity of $O(\log^4 n)$. This is a massive improvement over previous bounds that were exponential in $d$.
  • Optimality: The authors proved a theoretical lower bound of $\Omega(\log n / \log \log n)$ for the query tree size, suggesting their $O(\log n)$ upper bound is nearly optimal.

Limitations and Future Work

While the paper successfully removes $d$ from the exponent, the resulting constant factor $C(d)$ is still exponentially dependent on $d$. The authors identify the quest for a polynomial dependency on $d$ as a major open question. Additionally, the constraints for hypergraph coloring ($k \ge 16 \log d + 19$) suggest that the "local" version of the Lovász Local Lemma could be further optimized to handle smaller clause sizes.

Summary updated

BibTeX
@inproceedings{mansour2012converting,
  author = {Yishay Mansour and Aviad Rubinstein and Shai Vardi and Ning Xie},
  title = {{Converting online algorithms to local computation algorithms}},
  booktitle = {ICALP},
  year = {2012},
  doi = {10.1007/978-3-642-31594-7\_55},
}
Figure