Optimal Parallel Algorithm for the Knapsack Problem Without Memory Conflicts
The knapsack problem is very important in cryptosystem and in number theory. This paper proposes a new parallel algorithm for the knapsack problem where the method of divide and conquer is adopted. Basing on an EREW-SIMD machine with shared memory, the proposed algorithm utilizes O(2n/4) 1-ε processors, 0≤ε≤ 1, and O(2n) memory to find a solution for the n-element knapsack problem in time O(2n/4 (2n/4) ε ). Thus the cost of the proposed parallel algorithm is O(2n), which is optimal, and an improved result over the past researches.
Knapsack problem parallel algorithm optimal algorithm memory conflicts
Kenli LI Qinghua LI Wang-Hui Shengyi JIANG
School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan, 430074,China National High Performance Computing Center (Wuhan), 430074,China
国际会议
成都
英文
518-521
2003-08-27(万方平台首次上网日期,不代表论文的发表时间)