{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,22]],"date-time":"2026-08-22T09:27:34Z","timestamp":1787390854284,"version":"build-2736575974"},"reference-count":30,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2012,1]]},"abstract":"<jats:p>Given n elements with nonnegative integer weights $w_1, \\ldots, w_n$ and an integer capacity C, we consider the counting version of the classic knapsack problem: find the number of distinct subsets whose weights add up to at most the given capacity. We give a deterministic algorithm that estimates the number of solutions to within relative error $1\\pm\\varepsilon$ in time polynomial in n and $1\/\\varepsilon$ (fully polynomial approximation scheme). More precisely, our algorithm takes time $O(n^3\\varepsilon^{-1}\\log(n\/\\varepsilon))$. Our algorithm is based on dynamic programming. Previously, randomized polynomial-time approximation schemes were known first by Morris and Sinclair via Markov chain Monte Carlo techniques and subsequently by Dyer via dynamic programming and rejection sampling.<\/jats:p>","DOI":"10.1137\/11083976x","type":"journal-article","created":{"date-parts":[[2012,4,20]],"date-time":"2012-04-20T08:42:59Z","timestamp":1334911379000},"page":"356-366","source":"Crossref","is-referenced-by-count":23,"title":["A Deterministic Polynomial-Time Approximation Scheme for Counting Knapsack Solutions"],"prefix":"10.1137","volume":"41","author":[{"given":"Daniel","family":"\u0160tefankovi\u010d","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Santosh","family":"Vempala","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Eric","family":"Vigoda","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2012,4,19]]},"reference":[{"key":"R1","doi-asserted-by":"publisher","DOI":"10.4007\/annals.2004.160.781"},{"key":"R2","first-page":"199","volume":"5","author":"Ajtai M.","year":"1989","journal-title":"Adv. Comput. Res. Randomness Computation"},{"key":"R3","doi-asserted-by":"crossref","unstructured":"S. Arora and B. Barak,\n                      Computational Complexity: A Modern Approach\n                      , Cambridge University Press, Cambridge, UK, 2009.","DOI":"10.1017\/CBO9780511804090"},{"key":"R4","doi-asserted-by":"crossref","unstructured":"M. Bayati, D. Gamarnik, D. Katz, C. Nair, and P. Tetali,\n                      Simple deterministic approximation algorithms for counting matchings\n                      , in Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC), 2007, pp. 122\u2013127.","DOI":"10.1145\/1250790.1250809"},{"key":"R5","doi-asserted-by":"crossref","unstructured":"M. Dyer,\n                      Approximate counting by dynamic programming\n                      , in Proceedings of the 35th Annual ACM Symposium on Theory of Computing (STOC), 2003, pp. 693\u2013699.","DOI":"10.1145\/780542.780643"},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1145\/102782.102783"},{"key":"R7","doi-asserted-by":"publisher","DOI":"10.1017\/S0963548300000675"},{"key":"R8","doi-asserted-by":"crossref","unstructured":"A. Galanis, Q. Ge, D. \u0160tefankovi\u010d, E. Vigoda, and L. Yang,\n                      Improved inapproximability results for counting independent sets in the hard-core model\n                      , in Proceedings of the 15th International Workshop on Randomization and Computation (RANDOM), 2011, pp. 567\u2013578.","DOI":"10.1007\/978-3-642-22935-0_48"},{"key":"R9","unstructured":"D. Gamarnik and D. Katz,\n                      Correlation decay and deterministic FPTAS for counting list-colorings of a graph\n                      , in Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2007, pp. 1245\u20131254."},{"key":"R10","unstructured":"P. Gopalan, A. Klivans, and R. Meka,\n                      Polynomial-time approximation schemes for knapsack and related counting problems using branching programs\n                      , arXiv:1008.3187, 2010."},{"key":"R11","doi-asserted-by":"crossref","unstructured":"P. Gopalan, A. Klivans, R. Meka, D. \u0160tefankovi\u010d, S. Vempala, and E. Vigoda,\n                      An FPTAS for #Knapsack and related counting problems\n                      , Proceedings of the 52nd Annual Symposium on Foundations of Computer Science (FOCS), 2011, pp. 817\u2013826.","DOI":"10.1109\/FOCS.2011.32"},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1002\/rsa.3240070205"},{"key":"R13","doi-asserted-by":"publisher","DOI":"10.1137\/0218077"},{"key":"R14","doi-asserted-by":"publisher","DOI":"10.1137\/0222066"},{"key":"R15","unstructured":"M. Jerrum and A. Sinclair,\n                      The Markov chain Monte Carlo method: An approach to approximate counting and integration\n                      , in Approximation Algorithms for NP-Hard Problems, D. S. Hochbaum, ed., PWS Publishing, Boston, 1996, pp. 482\u2013520."},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1145\/1008731.1008738"},{"key":"R17","doi-asserted-by":"publisher","DOI":"10.1016\/0885-064X(85)90021-4"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1016\/j.jcss.2005.08.004"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539799360355"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1007\/BF01940873"},{"key":"R21","doi-asserted-by":"crossref","unstructured":"N. Megiddo,\n                      On the complexity of linear programming\n                      , in Advances in Economic Theory, Econom. Soc. Monogr. 12, Cambridge, UK, 1989, pp. 225\u2013268.","DOI":"10.1017\/CCOL0521340446.006"},{"key":"R22","doi-asserted-by":"crossref","unstructured":"R. Meka and D. Zuckerman,\n                      Pseudorandom generators for polynomial threshold functions\n                      , n Proceedings of the 42nd ACM Symposium on Theory of Computing (STOC), 2010, pp. 427\u2013436.","DOI":"10.1145\/1806689.1806749"},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539702411915"},{"key":"R24","doi-asserted-by":"publisher","DOI":"10.1287\/opre.41.2.338"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1006\/jctb.2000.1989"},{"key":"R26","doi-asserted-by":"crossref","unstructured":"A. Sly,\n                      Computational transition at the uniqueness threshold\n                      , in Proceedings of the 51th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2010, pp. 287\u2013296.","DOI":"10.1109\/FOCS.2010.34"},{"key":"R27","doi-asserted-by":"publisher","DOI":"10.1145\/1516512.1516520"},{"key":"R28","unstructured":"D. \u0160tefankovi\u010d, S. Vempala, and E. Vigoda,\n                      A deterministic polynomial-time approximation scheme for counting knapsack solutions\n                      , arXiv:1008.1687, 2010."},{"key":"R29","doi-asserted-by":"publisher","DOI":"10.1007\/BF02579369"},{"key":"R30","doi-asserted-by":"crossref","unstructured":"D. Weitz,\n                      Counting independent sets up to the tree threshold\n                      , in Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC), 2006, pp. 140\u2013149.","DOI":"10.1145\/1132516.1132538"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/11083976X","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:29:02Z","timestamp":1787336942000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/11083976X"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,1]]},"references-count":30,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2012,1]]}},"alternative-id":["10.1137\/11083976X"],"URL":"https:\/\/doi.org\/10.1137\/11083976x","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,1]]}}}