An efficient solution to the subset-sum problem on GPU

被引:4
作者
Curtis, V. V. [1 ]
Sanches, C. A. A. [1 ]
机构
[1] Inst Tecnol Aeronaut, CTA ITA IEC, BR-12228900 Sao Paulo, Brazil
关键词
subset-sum problem; knapsack problem; parallel algorithms; GPU; KNAPSACK-PROBLEM;
D O I
10.1002/cpe.3636
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present an algorithm to solve the subset-sum problem (SSP) of capacity c and n items with weights w(i),1 <= i <= n, spending O(n(m - w(min))/p) time and O(n + m - w(min)) space in the Concurrent Read/Concurrent Write (CRCW) PRAM model with 1 <= p <= m - w(min) processors, where w(min) is the lowest weight and m=min {c,Sigma(n)(i) (=)1 w(i)-c}, improving both upper-bounds. Thus, when n <= c, it is possible to solve the SSP in O(n) time in parallel environments with low memory. We also show OpenMP and CUDA implementations of this algorithm and, on Graphics Processing Unit, we obtained better performance than the best sequential and parallel algorithms known so far. Copyright (c) 2015 John Wiley & Sons, Ltd.
引用
收藏
页码:95 / 113
页数:19
相关论文
共 50 条
[21]   ON THE SUBSET SUM PROBLEM IN BRANCH GROUPS [J].
Nikolaev, Andrey ;
Ushakov, Alexander .
GROUPS COMPLEXITY CRYPTOLOGY, 2020, 12 (01)
[22]   An exact algorithm for the subset sum problem [J].
Soma, NY ;
Toth, P .
EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2002, 136 (01) :57-66
[23]   Subset sum problem in polycyclic groups [J].
Nikolaev, Andrey ;
Ushakov, Alexander .
JOURNAL OF SYMBOLIC COMPUTATION, 2018, 84 :84-94
[24]   The Subset Sum Problem in Keno Modelling [J].
Sugden, Stephen J. .
NUMERICAL ANALYSIS AND APPLIED MATHEMATICS, 2008, 1048 :526-529
[25]   Dynamic Programming for the Subset Sum Problem [J].
Fujiwara, Hiroshi ;
Watari, Hokuto ;
Yamamoto, Hiroaki .
FORMALIZED MATHEMATICS, 2020, 28 (01) :89-92
[26]   On the subset sum problem for finite fields [J].
Pavone, Marco .
FINITE FIELDS AND THEIR APPLICATIONS, 2021, 76
[27]   A genetic algorithm for subset sum problem [J].
Wang, RL .
NEUROCOMPUTING, 2004, 57 :463-468
[28]   On tightening 0-1 programs based on extensions ofpure 0-1 knapsack and subset-sum problems [J].
L. F. Escudero ;
S. Martello ;
P. Toth .
Annals of Operations Research, 1998, 81 (0) :379-404
[29]   Generalizing cryptosystems based on the subset sum problem [J].
Kate, Aniket ;
Goldberg, Ian .
INTERNATIONAL JOURNAL OF INFORMATION SECURITY, 2011, 10 (03) :189-199
[30]   On the subset sum problem over finite fields [J].
Li, Jiyou ;
Wan, Daqing .
FINITE FIELDS AND THEIR APPLICATIONS, 2008, 14 (04) :911-929