skip to main content
10.1145/780542.780578acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
Article

Random knapsack in expected polynomial time

Published:09 June 2003Publication History

ABSTRACT

In this paper, we present the first average-case analysis proving an expected polynomial running time for an exact algorithm for the 0/1 knapsack problem. In particular, we prove, for various input distributions, that the number of dominating solutions (i.e., Pareto-optimal knapsack fillings) to this problem is polynomially bounded in the number of available items. An algorithm by Nemhauser and Ullmann can enumerate these solutions very efficiently so that a polynomial upper bound on the number of dominating solutions implies an algorithm with expected polynomial running time.The random input model underlying our analysis is very general and not restricted to a particular input distribution. We assume adversarial weights and randomly drawn profits (or vice versa). Our analysis covers general probability distributions with finite mean, and, in its most general form, can even handle different probability distributions for the profits of different items. This feature enables us to study the effects of correlations between profits and weights. Our analysis confirms and explains practical studies showing that so-called strongly correlated instances are harder to solve than weakly correlated ones.

References

  1. E. Balas and E. Zemel. An algorithm for large zero-one knapsack problems. Operations Research, Vol. 28, pp. 1130--1154, 1980.Google ScholarGoogle ScholarCross RefCross Ref
  2. K. H. Borgwardt and J. Brzank. Average Saving Effects in Enumerative Methods for Solving Knapsack Problems. J. of Complexity 10, pp. 129--141, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. M. Coster, A. Joux, B. LaMacchia, A. Odlyzko, C. P. Schnorr, J. Stern. Improved Low-Density Subset Sum Algorithms. J. of Computational Complexity, 111--128, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. G. B. Dantzig. Discrete Variable Extremum Problems. Operations Research, Vol 5, pp. 266--277, 1957.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. G. D'Atri and C. Puech. Probabilistic Analysis of the Subset-Sum Problem. Discrete Applied Math., Vol 4, 329--334, 1982.Google ScholarGoogle Scholar
  6. M. E. Dyer and A. M. Frieze. Probabilistic Analysis of the Multidimensional Knapsack Problem. Mathematics of Operations Research 14(1), 162--176, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. D. Fayard and G. Plateau. An algorithm for the solution of the 0-1 knapsack problem. Computing, Vol. 28, pp. 269--287, 1982.Google ScholarGoogle ScholarCross RefCross Ref
  8. A. M. Frieze. On the Lagarias-Odlyzko algorithm for the Subset-Sum Problem. SIAM J. Comput. 15(2), 536--539, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. R. Garey and D. S~Johnson. Computers and Intractability: A Guide to the Theory of NP completeness. Freeman, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. S. Martello, D. Pisinger and P. Toth. New Trends in Exact Algorithms for the 0/1 Knapsack Problem. European Journal of Operational Research, Vol. 123, pp. 325--332, 2000.Google ScholarGoogle ScholarCross RefCross Ref
  11. S. Martello and P. Toth. Knapsack Problems -- Algorithms and Computer Implementations. Wiley, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. A. Goldberg and A. Marchetti-Spaccamela. On Finding the Exact Solution to a Zero-One Knapsack Problem. Proceedings of the 16th ACM Symposium on Theory of Computing (STOC), 359--368, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. R. Impagliazzo and M. Naor. Efficient Cryptographic Schemes Provably as Secure as Subset Sum. J. of Cryptology 9(4), 199--216, 1996.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. G. S. Lueker. On the Average Difference Between the Solutions to Linear and Integer Knapsack Problems. Applied Probability - Computer Science, the Interface, 1, Birkhauser, 1982.Google ScholarGoogle Scholar
  15. G. S. Lueker. Average-Case Analysis of Off-Line and On-Line Knapsack Problems. J. of Algorithms, 19, 277--305, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. G. S. Lueker. Exponentially Small Bounds on the Expected Optimum of the Partition and Subset Sum Problems. Random Structures and Algorithms, 12, 51--62, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. G. Nemhauser and Z. Ullmann. Discrete Dynamic Programming and Capital Allocation. Management Science, 15(9), 494--505, 1969.Google ScholarGoogle Scholar
  18. E. Horowitz and S. Sahni. Computing Partitions with Applications to the Knapsack Problem, J. of the ACM, Vol. 21, 277--292, 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. D. Pisinger. Algorithms for Knapsack Problems. Ph.D. thesis, DIKU, University of Copenhagen, 1995.Google ScholarGoogle Scholar
  20. D. Pisinger and P. Toth. Knapsack Problems. In D-Z. Du, P. Pardalos (ed.), Handbook of Combinatorial Optimization, vol. 1, Kluwer Academic Publishers, 299--428, 1998.Google ScholarGoogle Scholar
  21. D. A. Spielman and Shang-Hua Teng. Smoothed Analysis of Algorithms: Why The Simplex Algorithm Usually Takes Polynomial Time. Proceedings of the 33rd ACM Symposium on Theory of Computing (STOC), 296--305, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. H.M. Weingartner and D.N. Ness. Methods for the Solution of the Multi-Dimensional 0/1 Knapsack problem. Operations Research, Vol. 15, No. 1, 83--103, 1967.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Random knapsack in expected polynomial time

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        STOC '03: Proceedings of the thirty-fifth annual ACM symposium on Theory of computing
        June 2003
        740 pages
        ISBN:1581136749
        DOI:10.1145/780542

        Copyright © 2003 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 9 June 2003

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        STOC '03 Paper Acceptance Rate80of270submissions,30%Overall Acceptance Rate1,469of4,586submissions,32%

        Upcoming Conference

        STOC '24
        56th Annual ACM Symposium on Theory of Computing (STOC 2024)
        June 24 - 28, 2024
        Vancouver , BC , Canada

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader