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

Top-k子集和的高效报告

Efficient Reporting of Top-k Subset Sums

Biswajit Sanyal, Subhashis Majumder, Priya Ranjan Sinha Mahapatra

摘要:

“子集和问题”是一个非常著名的NP完全问题。在这项工作中,top-k变化的“子集和问题”被认为是。这个问题在推荐系统中有着广泛的应用,在推荐系统中,需要的不是k个最好的对象,而是具有最低(或最高)总得分的k个最好的对象子集。给定一个n个实数的输入集R和一个正整数k,我们的目标是生成R的k个最佳子集,使得它们的元素之和最小化。我们的解决方案方法是基于构建一个元数据结构G为给定的n。G的每个节点存储大小为n的位向量,从中可以检索R的子集。这里证明了不需要构造整个图G。为了回答一个查询,只需要隐式遍历G的所需部分就足够了,这显然摆脱了预处理步骤,从而减少了整体的时间和空间需求。然后,提出了一种改进的算法来生成每个子集递增,它表明,它是可能的,以消除显式存储的位向量。这不仅提高了空间要求,而且提高了渐近时间复杂度。最后,我们的算法,只报告前k子集和的变化已与现有的算法相比,这表明我们的算法在时间和空间要求方面表现得更好,由一个常数因子。

英文摘要:

The "Subset Sum problem" is a very well-known NP-complete problem. In this work, a top-k variation of the "Subset Sum problem" is considered. This problem has wide application in recommendation systems, where instead of k best objects the k best subsets of objects with the lowest (or highest) overall scores are required. Given an input set R of n real numbers and a positive integer k, our target is to generate the k best subsets of R such that the sum of their elements is minimized. Our solution methodology is based on constructing a metadata structure G for a given n. Each node of G stores a bit vector of size n from which a subset of R can be retrieved. Here it is shown that the construction of the whole graph G is not needed. To answer a query, only implicit traversal of the required portion of G on demand is sufficient, which obviously gets rid of the preprocessing step, thereby reducing the overall time and space requirement. A modified algorithm is then proposed to generate each subset incrementally, where it is shown that it is possible to do away with the explicit storage of the bit vector. This not only improves the space requirement but also improves the asymptotic time complexity. Finally, a variation of our algorithm that reports only the top-k subset sums has been compared with an existing algorithm, which shows that our algorithm performs better both in terms of time and space requirement by a constant factor.

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

↑