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
来源
CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE | 2016年 / 28卷 / 01期
关键词
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 条
  • [1] Efficient CPU-GPU cooperative computing for solving the subset-sum problem
    Wan, Lanjun
    Li, Kenli
    Liu, Jing
    Li, Keqin
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2016, 28 (02): : 492 - 516
  • [2] An efficient approximation scheme for the Subset-Sum Problem
    Kellerer, H
    Pferschy, U
    Speranza, MG
    ALGORITHMS AND COMPUTATION, PROCEEDINGS, 1997, 1350 : 394 - 403
  • [3] A low-space algorithm for the subset-sum problem on GPU
    Curtis, V. V.
    Sanches, C. A. A.
    COMPUTERS & OPERATIONS RESEARCH, 2017, 83 : 120 - 124
  • [4] Parallel solution of the subset-sum problem: an empirical study
    Bokhari, Saniyah S.
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2012, 24 (18): : 2241 - 2254
  • [5] Efficient Parallelization of a Two-List Algorithm for the Subset-Sum Problem on a Hybrid CPU/GPU Cluster
    Kang, Letian
    Wan, Lanjun
    Li, Kenli
    2014 SIXTH INTERNATIONAL SYMPOSIUM ON PARALLEL ARCHITECTURES, ALGORITHMS AND PROGRAMMING (PAAP), 2014, : 93 - 98
  • [6] Priority algorithms for the Subset-Sum problem
    Ye, Yuli
    Borodin, Allan
    COMPUTING AND COMBINATORICS, PROCEEDINGS, 2007, 4598 : 504 - +
  • [7] Quantum Algorithms for the Subset-Sum Problem
    Bernstein, Daniel J.
    Jeffery, Stacey
    Lange, Tanja
    Meurer, Alexander
    POST-QUANTUM CRYPTOGRAPHY, PQCRYPTO 2013, 2013, 7932 : 16 - 33
  • [8] An efficient fully polynomial approximation scheme for the Subset-Sum Problem
    Kellerer, H
    Mansini, R
    Pferschy, U
    Speranza, MG
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2003, 66 (02) : 349 - 370
  • [9] Integer factorization as subset-sum problem
    Hittmeir, Markus
    JOURNAL OF NUMBER THEORY, 2023, 249 : 93 - 118
  • [10] GPU implementation of a parallel two-list algorithm for the subset-sum problem
    Wan, Lanjun
    Li, Kenli
    Liu, Jing
    Li, Keqin
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2015, 27 (01): : 119 - 145