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 条
[41]   Dynamic combinatorial optimisation problems: an analysis of the subset sum problem [J].
Philipp Rohlfshagen ;
Xin Yao .
Soft Computing, 2011, 15 :1723-1734
[42]   Complexity of solving the Subset Sum problem with the branch-and-bound method with domination and cardinality filtering [J].
R. M. Kolpakov ;
M. A. Posypkin ;
Si Tu Tant Sin .
Automation and Remote Control, 2017, 78 :463-474
[43]   Complexity of solving the Subset Sum problem with the branch-and-bound method with domination and cardinality filtering [J].
Kolpakov, R. M. ;
Posypkin, M. A. ;
Sin, Si Tu Tant .
AUTOMATION AND REMOTE CONTROL, 2017, 78 (03) :463-474
[44]   Sampling-based Lattice Reduction Algorithm for Subset Sum Problem [J].
Cao J.-Z. ;
Cheng Q.-F. ;
Shi W.-B. ;
Lu N. .
Ruan Jian Xue Bao/Journal of Software, 2022, 33 (11) :3917-3929
[45]   The Subset Sum game [J].
Darmann, Andreas ;
Nicosia, Gaia ;
Pferschy, Ulrich ;
Schauer, Joachim .
EUROPEAN JOURNAL OF OPERATIONAL RESEARCH, 2014, 233 (03) :539-549
[46]   A Faster Pseudopolynomial Time Algorithm for Subset Sum [J].
Koiliaris, Konstantinos ;
Xu, Chao .
PROCEEDINGS OF THE TWENTY-EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2017, :1062-1072
[47]   LATTICE BASIS REDUCTION - IMPROVED PRACTICAL ALGORITHMS AND SOLVING SUBSET SUM PROBLEMS [J].
SCHNORR, CP ;
EUCHNER, M .
MATHEMATICAL PROGRAMMING, 1994, 66 (02) :181-199
[48]   Near Optimal Solution for Traveling Salesman Problem using GPU [J].
Yelmewad, Pramod ;
Talawar, Basavaraj .
2018 IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, COMPUTING AND COMMUNICATION TECHNOLOGIES (CONECCT), 2018,
[49]   Multiple Subset Sum with Inclusive Assignment Set Restrictions [J].
Kellerer, Hans ;
Leung, Joseph Y. -T. ;
Li, Chung-Lun .
NAVAL RESEARCH LOGISTICS, 2011, 58 (06) :546-563
[50]   An Investigation into the Use of DNA Strand Displacement Reaction Networks for Subset Sum Problem Solutions [J].
Zheng, Yawen ;
Yang, Jing ;
Zhang, Tongtong ;
Jiang, Tianyi .
BIO-INSPIRED COMPUTING: THEORIES AND APPLICATIONS, PT 1, BIC-TA 2023, 2024, 2061 :371-383