等子集和比中间相遇更快
Equal-Subset-Sum Faster Than the Meet-in-the-Middle
摘要:
在等子集和问题中,我们给出了一个由$n$个整数组成的集合$S$,问题是判断是否存在两个不相交的非空集$A,B \subseteq S$,其元素和为相同的值. 这是一个NP-完备问题.最先进的算法在$O^{*}(3^{n/2}) \le O^{*}(1.7321^n)$时间内运行,并基于中间相遇技术。本文对该算法进行了改进,给出了$O^{*}(1.7088^n)$最坏情况蒙特卡罗算法。这就回答了沃根格的启发性调查中的一个公开问题。此外,我们还分析了多项式空间的等子集和算法。$O^{*}(3^n)$时间上等子集和运算朴素多项式空间算法通过对指数随机位的只读访问,我们展示了一个在$O^{*}(2.6817^n)$时间和多项式空间中运行的随机算法。
英文摘要:
In the Equal-Subset-Sum problem, we are given a set $S$ of $n$ integers and the problem is to decide if there exist two disjoint nonempty subsets $A,B \subseteq S$, whose elements sum up to the same value. The problem is NP-complete. The state-of-the-art algorithm runs in $O^{*}(3^{n/2}) \le O^{*}(1.7321^n)$ time and is based on the meet-in-the-middle technique. In this paper, we improve upon this algorithm and give $O^{*}(1.7088^n)$ worst case Monte Carlo algorithm. This answers the open problem from Woeginger's inspirational survey. Additionally, we analyse the polynomial space algorithm for Equal-Subset-Sum. A naive polynomial space algorithm for Equal-Subset-Sum runs in $O^{*}(3^n)$ time. With read-only access to the exponentially many random bits, we show a randomized algorithm running in $O^{*}(2.6817^n)$ time and polynomial space.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。