Skip to main content
Log in

Optimal parallel algorithms for the knapsack problem without memory conflicts

  • Published:
Journal of Computer Science and Technology Aims and scope Submit manuscript

Abstract

The knapsack problem is well known to be NP-complete. Due to its importance in cryptosystem and in number theory, in the past two decades, much effort has been made in order to find techniques that could lead to practical algorithms with reasonable running time. This paper proposes a new parallel algorithm for the knapsack problem where the optimal merging algorithm is adopted. The proposed algorithm is based on anEREW-SIMD machine with shared memory. It is proved that the proposed algorithm is both optimal and the first without memory conflicts algorithm for the knapsack problem. The comparisons of algorithm performance show that it is an improvement over the past researches.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Garey M R, Johnson D S. Computer and Intractability: A Guide to the Theory of NP-Completeness. San Francisco, W H Freeman and Co., 1979.

    Google Scholar 

  2. Shamir A. A polynomial-time algorithm for breaking the basic Merkle-Hellman cryptosystem.IEEE Trans. Inform. Theory, 1984, 30(5): 699–704.

    Article  MATH  MathSciNet  Google Scholar 

  3. Chor B, Rivest R L. A knapsack-type public key cryptosystem based on arithmetic in finite fields.IEEE Trans. Inform. Theory, 1988, 34(5): 901–909.

    Article  MathSciNet  Google Scholar 

  4. Laih C S, Lee J Y, Harin L, Su Y K. Linearly shift knapsack public-key cryptosystem.IEEE J. Selected Areas Commun, 1989, 7(4): 534–539.

    Article  Google Scholar 

  5. Horowitz E, Sahni S. Computing partitions with applications to the knapsack problem.J. ACM, 1974, 21(2): 277–292.

    Article  MATH  MathSciNet  Google Scholar 

  6. Aardal K, Bixby R E, Hurkens C A J, Lensta A Ket al. Market split and basis reduction: Towards a solution of the Cornuejils-Dawande instances. InThe 7th International IPCO Conference, 1999,Lecture Notes in Computer Science 1610, pp.1–16.

  7. Schroeppel R, Shamir A.A T= 2n/2 , S=O 2n/4) algorithm for certain NP-complete problems.SIAM J. Comput., 1981, 10(3): 456–464.

    Article  MATH  MathSciNet  Google Scholar 

  8. Ferreira A G. A parallel time/hardware tradeoffT ·H = O(2 n/2) for the knapsack problem.IEEE Trans. Comput., 1991, 40(2): 221–225.

    Article  MathSciNet  Google Scholar 

  9. Karnin E D. A parallel algorithm for the knapsack problem.IEEE Trans, Comput., 1984, 33(5): 404–408.

    Article  MATH  MathSciNet  Google Scholar 

  10. Amirazizi H R, Hellman M E. Time-memory-processor tradeoffs.IEEE Trans. Inform. Theory, 1988, 34(3): 502–512.

    Article  MathSciNet  Google Scholar 

  11. Ferreira A G. Work and memory efficient parallel algorithms for the knapsack problem.International Journal of High Speed Computing, 1995, 4: 595–606.

    Article  Google Scholar 

  12. Chang H K C, Chen J J R, Shyu S J. A parallel algorithm for the knapsack problem using a generation and searching technique.Parallel Computing, 1994, 20(2): 233–243.

    Article  MathSciNet  Google Scholar 

  13. Lou D C, Chang C C. A paralle two-list algorithm for the knapsack problem.Parallel Computing, 1997, 22: 1985–1996.

    Article  MATH  MathSciNet  Google Scholar 

  14. Aanches C A A, Soma N Y, Yanasse H H. Comments on parallel algorithms for the knapsack problem.Parallel Computing, 2002, 28: 1501–1505.

    Article  Google Scholar 

  15. Ferreira A G, Robson J M. Fast and scalable parallel algorithms for knapsack-like problems.Journal of Parallel and Distributed Computing, 1996, 39: 1–13.

    Article  MATH  Google Scholar 

  16. Quinn M J. Parallel Computing: Theory and Practice. Second Edition. New York, Mcgraw-Hill, Inc., 1994.

    Google Scholar 

  17. Akl S G. Optimal parallel merging and sorting without memory conflicts.IEEE Trans, Comput., 1987, 36(11): 1367–1369.

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ken-Li Li.

Additional information

Supported by the National Natural Science Foundation of China under Grant No.60273075, the National High Technology Development 863 Program of China under Grant No.863-306-ZD-11-01-06.

Ken-Li Li received his B.S. and M.S. degrees in mathematics from National University of Defense Technology and Central South University in 1995 and 2000 respectively and he is now a Ph.D. candidate in computer software and theory at Huazhong University of Science and Technology. His main research interests include parallel computing and combinatorial optimization.

Ren-Fa Li received his Ph.D. degree in computer software and theory at Huazhong University of Science and Technology, and he is concurrently a professor and Ph.D. supervisor in School of Computer and Communication, Human University. His main research interests include network computing.

Qing-Hua Li received his M.S. degree in computer science from Huazhong University of Science and Technology in 1981, and he is concurrently a professor and Ph.D. supervisor in School of Computer Science and Technology, Huazhong University of Science and Technology. His current research interests include parallel processing, combinatorial optimization, and grid computing.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Li, KL., Li, RF. & Li, QH. Optimal parallel algorithms for the knapsack problem without memory conflicts. J. Comput. Sci. & Technol. 19, 760–768 (2004). https://doi.org/10.1007/BF02973436

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02973436

Keywords

Navigation