A constructive algorithm for the LLL on permutations

David G. Harris, Aravind Srinivasan

Introduction

The Lovász Local Lemma (LLL) is a cornerstone of the probabilistic method, providing a powerful tool to prove that a collection of "bad events" can be avoided simultaneously, provided they are mostly independent and individually unlikely. While the LLL was originally a non-constructive existential tool, the landmark work of Moser and Tardos in 2010 introduced a randomized polynomial-time algorithm that made the LLL constructive for settings involving mutually independent underlying variables.

However, many fundamental problems in combinatorics involve random permutations, where variables are inherently dependent (e.g., if $\pi(1) = 2$, then $\pi(i)$ cannot equal $2$ for any $i \neq 1$). This dependency structure falls under the "lopsided" LLL (LLLL). While the LLLL could prove the existence of configurations like Latin transversals, finding them efficiently remained an open algorithmic challenge. This paper presents the first randomized polynomial-time algorithm specifically tailored for the LLLL on permutations, transforming several famous existential results into efficient solutions.

The Challenge of Permutations

In the standard Moser-Tardos framework, when a bad event occurs, the algorithm resamples the involved variables from scratch. In the context of permutations, this approach fails because simple resampling violates the permutation property. To address this, the authors introduce the Swapping Algorithm.

Instead of a total resample, the algorithm identifies a bad event and performs a series of random swaps on the affected entries. This can be viewed as a localized Fisher-Yates shuffle that introduces enough entropy to "break" the bad event while maintaining the integrity of the permutation. This minimal randomization is a key insight: one does not need to resample the entire state, only to change it in a way that is "random enough" relative to the local constraints.

Analytical Framework: Witness Subdags

To prove that the Swapping Algorithm terminates in polynomial time, the authors extend the traditional "witness tree" analysis used by Moser and Tardos. They introduce witness subdags, a more sophisticated structure that tracks the history of individual swapping operations rather than just the bad events themselves.

This granular approach allows for a finer-grained probabilistic analysis of how dependencies "discharge" over time. The proof demonstrates that while permutations involve complex initial dependencies, the act of swapping effectively dissipates these constraints. The probability of encountering a long chain of dependent swaps—which would indicate a long running time—is shown to decay exponentially, ensuring efficiency.

Parallelization (RNC)

The paper also develops a parallel version of the algorithm (in the complexity class RNC). Parallelizing the LLLL on permutations is non-trivial because even if two bad events are independent in the LLL sense, their corresponding swaps might still interfere with one another. To resolve these conflicts, the authors employ a maximal independent set (MIS) approach combined with a random ordering, allowing the algorithm to resolve conflicts and terminate in polylogarithmic time on a polynomial number of processors.

Applications and Key Results

The theoretical framework is applied to several classical combinatorial problems, yielding both new algorithms and stronger existential bounds:

  • Latin Transversals: The paper provides the first polynomial-time algorithm to find a Latin transversal in any $n \times n$ matrix where each color appears at most $(27/256)n$ times.
  • Optimal $s$-Transversals: For large $s$, the authors demonstrate an algorithmically constructed transversal where no color appears more than $s$ times, provided the maximum color frequency $\Delta \leq (s - O(\sqrt{s}))n$. Notably, this result was not previously known even as an existential proof, suggesting that the algorithmic approach can sometimes surpass traditional probabilistic methods.
  • Rainbow Hamiltonian Cycles: The algorithm efficiently finds cycles in edge-colored graphs where every edge has a distinct color, a problem previously confined to existential proofs.
  • Efficiency: The sequential algorithm typically operates in linear or near-linear time relative to the number of bad events, making it highly practical for large-scale combinatorial structures.

Limitations and Future Directions

While the Swapping Algorithm represents a significant leap forward, it does have limitations. The parallel version requires a small "slack" (an epsilon) in the LLL conditions to guarantee logarithmic-time termination. Furthermore, the analysis for permutations is considerably more complex than the original Moser-Tardos proof.

Future work may focus on "commutativity" to simplify the requirements for choosing which bad events to address first. The ultimate goal remains a "truly generalized" LLL algorithm capable of handling any probability space with variable-like interactions, but this paper provides the essential roadmap for handling the critical case of permutations.

Summary updated

BibTeX
@inproceedings{harris2014constructive,
  author = {David G. Harris and Aravind Srinivasan},
  title = {{A constructive algorithm for the LLL on permutations}},
  booktitle = {SODA},
  year = {2014},
  doi = {10.1137/1.9781611973402.68},
}
Figure