English

Sampling Lov\'asz Local Lemma For General Constraint Satisfaction Solutions In Near-Linear Time

Data Structures and Algorithms 2023-03-10 v3 Discrete Mathematics

Abstract

We give a fast algorithm for sampling uniform solutions of general constraint satisfaction problems (CSPs) in a local lemma regime. Suppose that the CSP has nn variables with domain size at most q, each constraint contains at most k variables, shares variables with at most Δ\Delta constraints, and is violated with probability at most pp by a uniform random assignment. The algorithm returns an almost uniform satisfying assignment in expected poly(q,k,Δ)O~(n)\mathrm{poly}(q,k,\Delta)\cdot\tilde{O}(n) time, as long as a local lemma condition is satisfied: kpq2Δ5C0for a suitably small absolute constant C0. k\cdot p\cdot q^2\cdot \Delta^5\le C_0\quad\text{for a suitably small absolute constant }C_0. Previously, under similar local lemma conditions, sampling algorithms with running time polynomial in both nn and Δ\Delta were only known for the almost atomic case, where each constraint is violated by a small number of forbidden local configurations. The key term Δ5\Delta^5 in our local lemma condition also improves the previously best known Δ7\Delta^7 for general CSPs [JPV21b] and Δ5.714\Delta^{5.714} for atomic CSPs, including the special case of kk-CNF [JPV21a, HSW21]. Our sampling approach departs from previous fast algorithms for sampling LLL, which were based on Markov chains. A crucial step of our algorithm is a recursive marginal sampler that is of independent interests. Within a local lemma regime, this marginal sampler can draw a random value for a variable according to its marginal distribution, at a cost independent of the size of the CSP.

Keywords

Cite

@article{arxiv.2204.01520,
  title  = {Sampling Lov\'asz Local Lemma For General Constraint Satisfaction Solutions In Near-Linear Time},
  author = {Kun He and Chunyang Wang and Yitong Yin},
  journal= {arXiv preprint arXiv:2204.01520},
  year   = {2023}
}