Skip to main content
Log in

Approximability of the subset sum reconfiguration problem

  • Published:
Journal of Combinatorial Optimization Aims and scope Submit manuscript

Abstract

The subset sum problem is a well-known NP-complete problem in which we wish to find a packing (subset) of items (integers) into a knapsack with capacity so that the sum of the integers in the packing is at most the capacity of the knapsack and at least a given integer threshold. In this paper, we study the problem of reconfiguring one packing into another packing by moving only one item at a time, while at all times maintaining the feasibility of packings. First we show that this decision problem is strongly NP-hard, and is PSPACE-complete if we are given a conflict graph for the set of items in which each vertex corresponds to an item and each edge represents a pair of items that are not allowed to be packed together into the knapsack. We then study an optimization version of the problem: we wish to maximize the minimum sum among all packings in a reconfiguration. We show that this maximization problem admits a polynomial-time approximation scheme, while the problem is APX-hard if we are given a conflict graph.

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.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

Notes

  1. Note that subset sum in Garey and Johnson (1979) is slightly different from our definition: subset sum in Garey and Johnson (1979) is defined as the problem of finding a packing whose total size is exactly \(k\).

References

  • Bodlaender HL, Jansen K (1993) On the complexity of scheduling incompatible jobs with unit-times. Proceedings of MFCS 1993. LNCS 711:291–300

    Google Scholar 

  • Bonamy M, Johnson M, Lignos I, Patel V, Paulusma D (2011) On the diameter of reconfiguration graphs for vertex colourings. Electron Notes Discr Math 38:161–166

    Article  Google Scholar 

  • Bonsma P (2012) The complexity of rerouting shortest paths. Proceedings of MFCS 2012. LNCS 7464:222–233

  • Bonsma P, Cereceda L (2009) Finding paths between graph colourings: PSPACE-completeness and superpolynomial distances. Theor Comput Sci 410:5215–5226

    Article  MATH  MathSciNet  Google Scholar 

  • Epstein L, Levin A (2006) On bin packing with conflicts. Proceedings of WAOA 2006. LNCS 4368:160–173

    Google Scholar 

  • Garey MR, Johnson DS (1979) Computers and intractability: a guide to the theory of NP-completeness. Freeman, San Francisco, CA

    MATH  Google Scholar 

  • Gopalan P, Kolaitis PG, Maneva EN, Papadimitriou CH (2009) The connectivity of Boolean satisfiability: computational and structural dichotomies. SIAM J Comput 38:2330–2355

    Article  MATH  MathSciNet  Google Scholar 

  • Håstad J (1999) Clique is hard to approximate within \(n^{1-\varepsilon }\). Acta Math 182:105–142

    Article  MATH  MathSciNet  Google Scholar 

  • Hearn RA, Demaine ED (2005) PSPACE-completeness of sliding-block puzzles and other problems through the nondeterministic constraint logic model of computation. Theor Comput Sci 343:72–96

    Article  MATH  MathSciNet  Google Scholar 

  • Hearn RA, Demaine ED (2009) Games, puzzles, and computation, AK Peters, Cambridge

  • Ito T, Demaine ED (2011) Approximability of the subset sum reconfiguration problem. Proceedings of TAMC 2011. LNCS 6648:58–69

  • Ito T, Demaine ED, Harvey NJA, Papadimitriou CH, Sideri M, Uehara R, Uno Y (2011) On the complexity of reconfiguration problems. Theor Comput Sci 412:1054–1065

    Article  MATH  MathSciNet  Google Scholar 

  • Ito T, Kamiński M, Demaine ED (2012a) Reconfiguration of list edge-colorings in a graph. Discr Appl Math 160:2199–2207

    Article  MATH  Google Scholar 

  • Ito T, Kawamura K, Zhou X (2012b) An improved sufficient condition for reconfiguration of list edge-colorings in a tree. IEICE T Inf Syst E95-D:737–745

  • Kamiński M, Medvedev P, Milani\(\check{\rm c}\) M(2011) Shortest paths between shortest paths. Theor Comput Sci 412:5205–5210

    Google Scholar 

  • Kamiński M, Medvedev P, Milani\(\check{\rm c}\) M (2012) Complexity of independent set reconfigurability problems. Theor Comput Sci 439:9–15

    Google Scholar 

  • Kellerer H, Pferschy U, Pisinger D (2004) Knapsack problems, Springer, Berlin

  • Makino K, Tamaki S, Yamamoto M (2010) On the Boolean connectivity problem for Horn relations. Discr Appl Math 158:2024–2030

    Article  MATH  MathSciNet  Google Scholar 

  • Makino K, Tamaki S, Yamamoto M (2011) An exact algorithm for the Boolean connectivity problem for \(k\)-CNF. Theor Comput Sci 412:4613–4618

    Article  MATH  MathSciNet  Google Scholar 

  • Papadimitriou CH (1994) Computational complexity, Addison-Wesley, Menlo Park

  • Pferschy U, Schauer J (2009) The knapsack problem with conflict graphs. J Graph Algorithms Appl 13:233–249

    Article  MATH  MathSciNet  Google Scholar 

  • Savitch WJ (1970) Relationships between nondeterministic and deterministic tape complexities. J Comput Syst Sci 4:177–192

    Article  MATH  MathSciNet  Google Scholar 

  • Vazirani VV (2001) Approximation algorithms. Springer, Berlin

    Google Scholar 

Download references

Acknowledgments

We thank the referees for their helpful comments and suggestions. The first author’s work is partially supported by JSPS KAKENHI Grant No. 22700001. The second author’s work is supported in part by NSF Grant CCF-1161626 and DARPA/AFOSR Grant FA9550-12-1-0423.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Takehiro Ito.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Ito, T., Demaine, E.D. Approximability of the subset sum reconfiguration problem. J Comb Optim 28, 639–654 (2014). https://doi.org/10.1007/s10878-012-9562-z

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10878-012-9562-z

Keywords

Navigation