Skip to main content

Constant-Time Approximation Algorithms for the Knapsack Problem

  • Conference paper
Theory and Applications of Models of Computation (TAMC 2012)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7287))

Abstract

In this paper, we give a constant-time approximation algorithm for the knapsack problem. Using weighted sampling, with which we can sample items with probability proportional to their profits, our algorithm runs with query complexity O(ε − 4 logε − 1), and it approximates the optimal profit with probability at least 2/3 up to error at most an ε-fraction of the total profit. For the subset sum problem, which is a special case of the knapsack problem, we can improve the query complexity to O(ε − 1 logε − 1).

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alon, N., de la Vega, W., Kannan, R., Karpinski, M.: Random sampling and approximation of MAX-CSPs. Journal of Computer and System Sciences 67(2), 212–243 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  2. Arora, S., Karger, D., Karpinski, M.: Polynomial time approximation schemes for dense instances of np-hard problems. In: Proc. 27th Annual ACM Symposium on Theory of Computing (STOC), pp. 284–293. ACM (1995)

    Google Scholar 

  3. Bar-Yossef, Z., Kumar, R., Sivakumar, D.: Sampling algorithms: lower bounds and applications. In: Proc. 33rd Annual ACM Symposium on Theory of Computing, pp. 266–275 (2001)

    Google Scholar 

  4. Batu, T., Berenbrink, P., Sohler, C.: A sublinear-time approximation scheme for bin packing. Theoretical Computer Science 410(47-49), 5082–5092 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  5. Chazelle, B., Rubinfeld, R., Trevisan, L.: Approximating the minimum spanning tree weight in sublinear time. SIAM Journal on Computing 34(6), 1370–1379 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  6. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman & Co. (1979)

    Google Scholar 

  7. Ibarra, O.H., Kim, C.E.: Fast approximation algorithms for the knapsack and sum of subset problems. Journal of the ACM 22, 463–468 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  8. Kellerer, H., Mansini, R., Pferschy, U., Speranza, M.G.: An efficient fully polynomial approximation scheme for the subset-sum problem. Journal of Computer and System Sciences 66(2), 349–370 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  9. Kellerer, H., Pferschy, U.: A new fully polynomial time approximation scheme for the knapsack problem. Journal of Combinatorial Optimization 3, 59–71 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  10. Kellerer, H., Pferschy, U.: Improved dynamic programming in connection with an FPTAS for the knapsack problem. Journal of Combinatorial Optimization 8, 5–11 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  11. Kellerer, H., Pferschy, U., Pisinger, D.: Knapsack Problems. Springer (2004)

    Google Scholar 

  12. Lawler, E.L.: Fast approximation algorithms for knapsack problems. In: Proc. 18th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 206–213 (1977)

    Google Scholar 

  13. Magazine, M., Oguz, O.: A fully polynomial approximation algorithm for the 0-1 knapsack problem. European Journal of Operational Research 8(3), 270–273 (1981)

    Article  MathSciNet  MATH  Google Scholar 

  14. Nguyen, H.N., Onak, K.: Constant-time approximation algorithms via local improvements. In: Proc. 49th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 327–336 (2008)

    Google Scholar 

  15. Yoshida, Y.: Optimal constant-time approximation algorithms and (unconditional) inapproximability results for every bounded-degree CSP. In: Proc. 43rd Annual ACM Symposium on Theory of Computing (STOC), pp. 665–674 (2011)

    Google Scholar 

  16. Yoshida, Y., Yamamoto, M., Ito, H.: An improved constant-time approximation algorithm for maximum matchings. In: Proc. 41st Annual ACM Symposium on Theory of Computing (STOC), pp. 225–234 (2009)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Ito, H., Kiyoshima, S., Yoshida, Y. (2012). Constant-Time Approximation Algorithms for the Knapsack Problem. In: Agrawal, M., Cooper, S.B., Li, A. (eds) Theory and Applications of Models of Computation. TAMC 2012. Lecture Notes in Computer Science, vol 7287. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-29952-0_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-29952-0_17

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-29951-3

  • Online ISBN: 978-3-642-29952-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics