We give a fast algorithm for sampling uniform solutions of general constraint satisfaction problems (CSPs) in a local lemma regime. The expected running time of our algorithm is near-linear in $n$ and a fixed polynomial in $\Delta$, where $n$ is the number of variables and $\Delta$ is the max degree of constraints. Previously, up to similar conditions, sampling algorithms with running time polynomial in both $n$ and $\Delta$, only existed for the almost atomic case, where each constraint is violated by a small number of forbidden local configurations. Our sampling approach departs from all 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 local cost independent of the size of the CSP.
翻译:我们给出了一种快速算法,用于对当地莱马制度的一般约束性满意度问题(CSPs)的统一解决方案进行取样。我们算法的预期运行时间是近线值以美元为单位,固定的多元值以美元为单位,而固定的多元值以美元为单位,其中美元是变量数,美元是极限值的最大限制程度。在类似条件下,只有几乎原子案例的取样算法以美元和元值为单位,其中每种限制都受到少量禁止的本地配置的违反。我们的取样方法不同于以往所有基于Markov链的取样LLL快速算法。我们算法的一个关键步骤是具有独立利益的递归性边际采样器。在当地的Lemma制度下,这一边际采样器可以根据变量的边际分布随机抽取价值,其本地成本与CSP的规模无关。