arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.01693cs.DS
收藏

子集和问题交替枚举技术的设计与评价

Design and Evaluation of Alternate Enumeration Techniques for Subset Sum Problem

Avni Verma, Kamalakar Karlapalem

摘要:

子集和问题,也称为SSP,是一个NP-难计算问题。SSP在密码学、数论、运筹学和复杂性理论等领域有着广泛的应用。最著名的求解SSP的算法是回溯算法,它具有指数级的时间复杂度。因此,我们的目标是设计和开发更好的交替枚举技术,更快地生成SSP解决方案。给定由Xn和目标和S表示的前n个自然数的集合,我们提出了各种替代枚举技术,这些技术找到Xn的所有子集加起来为和S。在本文中,我们提出了这个指数问题背后的数学。分析了Xn的幂集的分布,给出了幂集的分布公式。本文介绍了Xn幂集的三种主要分布:和分布、长和分布和元素分布。这些分布是preposing程序的各种替代枚举技术解决SSP。我们提出了新的算法:使用和分布的子集生成,使用长度和分布的子集生成,基本桶算法,最大和最小频率驱动的桶算法和使用最大和最小子集的局部搜索用于枚举SSP。我们比较这些方法对传统的回溯算法的性能。这些算法的效率和有效性的帮助下,这些实验结果。此外,我们还研究了由各种算法产生的子集的上解集,以得到子集和问题的完全解。最后,我们提出了一个关于子集和问题所有解所需枚举子集个数的上界的猜想。

英文摘要:

The subset sum problem, also referred as SSP, is a NP-Hard computational problem. SSP has its applications in broad domains like cryptography, number theory, operation research and complexity theory. The most famous algorithm for solving SSP is Backtracking Algorithm which has exponential time complexity. Therefore, our goal is to design and develop better alternate enumeration techniques for faster generation of SSP solutions. Given the set of first n natural numbers which is denoted by Xn and a target sum S, we propose various alternate enumeration techniques which find all the subsets of Xn that add up to sum S. In this paper, we present the mathematics behind this exponential problem. We analyze the distribution of power set of Xn and present formulas which show definite patterns and relations among these subsets. We introduce three major distributions for power set of Xn: Sum Distribution, Length-Sum Distribution and Element Distribution. These distributions are prepossessing procedures for various alternate enumeration techniques for solving SSP. We propose novel algorithms: Subset Generation using Sum Distribution, Subset Generation using Length-Sum Distribution, Basic Bucket Algorithm, Maximum and Minimum Frequency Driven Bucket Algorithms and Local Search using Maximal and Minimal Subsets for enumerating SSP. We compare the performance of these approaches against the traditional backtracking algorithm. The efficiency and effectiveness of these algorithms are presented with the help of these experimental results. Furthermore, we studied the over solution set of subsets generated by various algorithms to get the complete solution for subset sum problem. Finally, we present a conjecture about upper bound on the number of subsets that has to be enumerated to get all solutions for Subset Sum Problem.

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

↑