超越最坏情况子集和:一种适应性、结构感知的求解器,具有低于2^{n/2}的枚举
Beyond Worst-Case Subset Sum: An Adaptive, Structure-Aware Solver with Sub-$2^{n/2}$ Enumeration
AI总结:
本文提出了一种适应性、结构感知的子集和求解器,通过减少枚举空间和优化运行时间,实现了低于2^{n/2}的效率提升。
摘要:
子集和问题,即给定n个整数是否有一个子集的和等于目标t,是密码学和组合优化中的一个基础性NP完全问题。Horowitz-Sahni提出的经典meet-in-the-middle(MIM)算法运行时间为O*(2^{n/2}),仍然是目前已知的最佳确定性界。然而在实践中,许多实例显示出部分和中的大量碰撞,因此真正的难度通常由U=|Σ(S)|,即不同子集和的数量决定。\n我们提出了一个结构感知、适应性的求解器,仅枚举不同的子集和,在运行过程中剪枝重复项,实现确定性运行时间O(U·n²)和期望随机化运行时间O(U·n)。其核心是一个标准的唯一子集和枚举器,结合双meet-in-the-middle策略,支持随时和在线模式。\n为了确保在无结构输入上也能获得最坏情况的改进,我们引入了一种受控别名技术,可以证明将枚举空间减少一个固定常数因子。这导致了一个保证的全局运行时间为O*(2^{n/2 - ε}),对于某些ε>0,严格优于经典界。\n实证结果表明,该求解器能够高效适应结构化的输入,如熵低的实例(例如具有小倍增常数、重复或加法进展的实例),通常接近动态规划性能。我们最后概述了如何将这种适应性框架扩展到其他NP完全问题。
英文摘要:
The Subset Sum problem, which asks whether a set of $n$ integers has a subset summing to a target $t$, is a fundamental NP-complete problem in cryptography and combinatorial optimization. The classical meet-in-the-middle (MIM) algorithm of Horowitz--Sahni runs in $\mathcal{O}^*(2^{n/2})$, which remains the best-known deterministic bound. Yet in practice, many instances exhibit abundant collisions in partial sums, so the true difficulty is often governed by $U = |Σ(S)|$, the number of unique subset sums. We present a structure-aware, adaptive solver that enumerates only the distinct subset sums, pruning duplicates on the fly and achieving deterministic runtime $\mathcal{O}(U \cdot n^2)$ and expected randomized runtime $\mathcal{O}(U \cdot n)$. Its core is a canonical unique-subset-sums enumerator combined with a double meet-in-the-middle strategy, supporting anytime and online modes. To ensure worst-case gains even on unstructured inputs, we introduce a Controlled Aliasing technique that provably reduces the enumeration space by a fixed constant factor. This yields a guaranteed global runtime of $\mathcal{O}^*(2^{n/2 - \varepsilon})$ for some $\varepsilon > 0$, strictly improving upon classical bounds. Empirical results show that the solver adapts efficiently to structured inputs with low entropy (e.g., instances with small doubling constants, duplicates, or additive progressions) often approaching near-dynamic programming performance. We conclude by outlining how this adaptive framework can be extended to other NP-complete problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。