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 条
[31]   An Algorithm for Subset Sum Problem on Molecular Computation [J].
Gao, Xiaoli ;
Yu, Wen .
PROCEEDINGS OF 2016 IEEE 7TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS 2016), 2016, :1072-1076
[32]   Generalizing cryptosystems based on the subset sum problem [J].
Aniket Kate ;
Ian Goldberg .
International Journal of Information Security, 2011, 10 :189-199
[33]   A BRANCH BOUND METHOD FOR SUBSET SUM PROBLEM [J].
吴士泉 .
ActaMathematicaeApplicataeSinica(EnglishSeries), 1994, (03) :302-314
[34]   Solving the subset sum problem with a nonideal biological computer [J].
Konopik, Michael ;
Korten, Till ;
Linke, Heiner ;
Lutz, Eric .
NEW JOURNAL OF PHYSICS, 2021, 23 (09)
[35]   Cryptanalysis of a hash function, and the modular subset sum problem [J].
Monico, Chris .
GROUPS COMPLEXITY CRYPTOLOGY, 2019, 11 (01) :17-23
[36]   An efficient algorithm for the subset sum problem based on finite-time convergent recurrent neural network [J].
Gu, Shenshen ;
Cui, Rui .
NEUROCOMPUTING, 2015, 149 :13-21
[37]   Subset sum pseudorandom numbers: fast generation and distribution [J].
von zur Gathen, Joachim ;
Shparlinski, Igor E. .
JOURNAL OF MATHEMATICAL CRYPTOLOGY, 2009, 3 (02) :149-163
[38]   Sub-optimal data compression and the subset sum problem [J].
Katti, Raj ;
Srinivasan, Sudarshan .
AEU-INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATIONS, 2011, 65 (01) :53-61
[39]   Dynamic combinatorial optimisation problems: an analysis of the subset sum problem [J].
Rohlfshagen, Philipp ;
Yao, Xin .
SOFT COMPUTING, 2011, 15 (09) :1723-1734
[40]   Performance Guarantees of Recurrent Neural Networks for the Subset Sum Problem [J].
Wang, Zengkai ;
Liao, Weizhi ;
Jin, Youzhen ;
Wang, Zijia .
BIOMIMETICS, 2025, 10 (04)