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

子集和问题的新算法

New Algorithms for Subset Sum Problem

Zhengjun Cao, Lihua Liu

摘要:

给定一个n个数的集合(或多集合)S和一个目标数t,子集和问题是判断是否存在S的子集和为t。有几种方法可以解决这个问题,包括穷举搜索,分治法,和贝尔曼的动态规划方法。但是,它们都不能生成通用的、轻量级的代码。在本文中,我们提出了一个新的确定性算法的基础上一种新的数据安排,它可以产生这样的代码,并返回所有的解决方案。如果n足够小,它对于通常的目的是有效的。我们还提出了一个概率版本的单侧误差和贪心算法,它可以产生一个最小化的方差的解决方案。

英文摘要:

Given a set (or multiset) S of n numbers and a target number t, the subset sum problem is to decide if there is a subset of S that sums up to t. There are several methods for solving this problem, including exhaustive search, divide-and-conquer method, and Bellman's dynamic programming method. However, none of them could generate universal and light code. In this paper, we present a new deterministic algorithm based on a novel data arrangement, which could generate such code and return all solutions. If n is small enough, it is efficient for usual purpose. We also present a probabilistic version with one-sided error and a greedy algorithm which could generate a solution with minimized variance.

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

↑