arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.09234cs.DScs.CC
收藏

SARRIGUREN:一种针对具有相对密集子句的随机 $k$-SAT 的多项式时间完备算法

SARRIGUREN: a polynomial-time complete algorithm for random $k$-SAT with relatively dense clauses

Alfredo Goñi Sarriguren

AI总结:

本文提出基于子句计数的SAT完备算法SARRIGUREN,利用子句重叠特性在相对密集子句的随机$k$-SAT中实现多项式时间复杂度,并辅以两种互补算法求解,拓宽了对$k$-SAT问题的认知。

摘要:

本文描述、分析并测试了 SARRIGUREN,这是一种基于子句计数的新的 SAT 完备算法(同样适用于 Unique-SAT 和 #SAT)。尽管现有的 SAT 完备算法在处理包含大量文字的子句时表现更慢,但这对于 SARRIGUREN 却是一种优势,因为子句中的文字越多,子句间重叠的概率就越大,这一特性使得子句计数过程更加高效。实际上,对于具有 $n$ 个变量和 $m$ 个相对密集子句的随机 $k$-SAT 实例,它提供了 $O(m^2 \times n/k)$ 的时间复杂度,其中该密度水平是相对于变量数 $n$ 而言的,即当 $k\geq7\sqrt{n}$ 时子句是相对密集的。尽管理论上可能存在具有指数复杂度的最坏情况,但在具有相对密集子句的随机 $k$-SAT 中发生这些情况的概率实际上为零。该算法已经过经验测试,并且这种多项式时间复杂度在具有较少密集子句($k\geq5\sqrt{n}$)的 $k$-SAT 实例中也同样保持。例如,在 $n=20000$ 个变量和 $k=989$ 个文字的情况下,该密度可能仅为 0.049。此外,还提出了另外两种互补算法,它们提供了 $k$-SAT 实例的解以及关于每个文字解数量的有价值信息。尽管该算法并未解决 NP=P 问题(它不是针对 3-SAT 的多项式算法),但它拓宽了关于该主题的知识,因为 $k>3$ 且具有密集子句的 $k$-SAT 并不比 3-SAT 更难。此外,该算法的 Python 实现以及实验中的所有输入数据集和获得的结果均已公开提供。

英文摘要:

SARRIGUREN, a new complete algorithm for SAT based on counting clauses (which is valid also for Unique-SAT and #SAT) is described, analyzed and tested. Although existing complete algorithms for SAT perform slower with clauses with many literals, that is an advantage for SARRIGUREN, because the more literals are in the clauses the bigger is the probability of overlapping among clauses, a property that makes the clause counting process more efficient. Actually, it provides a $O(m^2 \times n/k)$ time complexity for random $k$-SAT instances of $n$ variables and $m$ relatively dense clauses, where that density level is relative to the number of variables $n$, that is, clauses are relatively dense when $k\geq7\sqrt{n}$. Although theoretically there could be worst-cases with exponential complexity, the probability of those cases to happen in random $k$-SAT with relatively dense clauses is practically zero. The algorithm has been empirically tested and that polynomial time complexity maintains also for $k$-SAT instances with less dense clauses ($k\geq5\sqrt{n}$). That density could, for example, be of only 0.049 working with $n=20000$ variables and $k=989$ literals. In addition, they are presented two more complementary algorithms that provide the solutions to $k$-SAT instances and valuable information about number of solutions for each literal. Although this algorithm does not solve the NP=P problem (it is not a polynomial algorithm for 3-SAT), it broads the knowledge about that subject, because $k$-SAT with $k>3$ and dense clauses is not harder than 3-SAT. Moreover, the Python implementation of the algorithms, and all the input datasets and obtained results in the experiments are made available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑