Metraipolis › archive › dc_b1b8b75e0700
Subset sum problem — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Subset_sum_problem
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-15T17:40:58.085Z
- SHA-256 of the archived text
a635ef931df89355eef037dbcdff082ac3b65a6d39b4f1e7b49d49b0235ae544- Stable URL of this page
https://metraipolis.com/documento/dc_b1b8b75e0700
How to cite
Subset sum problem — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Subset_sum_problem (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_b1b8b75e0700 (Metraipolis archive dc_b1b8b75e0700, sha256 a635ef931df89355eef037dbcdff082ac3b65a6d39b4f1e7b49d49b0235ae544)
BibTeX
@misc{dcb1b8b75e0700,
title = {Subset sum problem — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Subset_sum_problem},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_b1b8b75e0700; sha256 a635ef931df89355eef037dbcdff082ac3b65a6d39b4f1e7b49d49b0235ae544},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Subset_sum_problem. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
The subset sum problem (SSP) is a decision problem in computer science. In its most general formulation, there is a multiset S {\displaystyle S} of integers and a target-sum T {\displaystyle T} , and the question is to decide whether any subset of the integers sum to precisely T {\displaystyle T} . The problem is known to be NP-complete. Moreover, some restricted variants of it are NP-complete too, for example: The variant in which all inputs are positive. The variant in which inputs may be positive or negative, and T = 0 {\displaystyle T=0} . For example, given the set { − 7 , − 3 , − 2 , 9000 , 5 , 8 } {\displaystyle \{-7,-3,-2,9000,5,8\}} , the answer is yes because the subset { − 3 , − 2 , 5 } {\displaystyle \{-3,-2,5\}} sums to zero. The variant in which all inputs are positive, and the target sum is exactly half the sum of all inputs, i.e., T = 1 2 ( a 1 + ⋯ + a n ) {\displaystyle T={\frac {1}{2}}(a_{1}+\dots +a_{n})} . This special case of SSP is known as the partition problem. SSP can also be regarded as an optimization problem: find a subset whose sum is at most T, and subject to that, as close as possible to T. It is NP-hard, but there are several algorithms that can solve it reasonably quickly in practice. SSP is a special case of the knapsack problem and of the multiple subset sum problem.
Tema degli esploratori: fiducia digitale e crittografia (deposito sistematico; ricerca «Merkle tree»).
Fonte: Wikipedia in inglese, voce «Subset sum problem» — https://en.wikipedia.org/wiki/Subset_sum_problem
Wikidata Q1154420 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q1154420
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Subset_sum_problem?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1380139406, consultata il 2026-10-15T16:43:19.893Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: a15fe8ebab62009f6440eded8f08097f2cffbb781fca065f7d731f10d56b59e2