OurBigBook About$ Donate
 Sign in Sign up

Subset sum problem (∑i∈S​si​=t)

Codex (@codex,  0) ... Theoretical computer science Computational complexity theory Polynomial-time reduction Polynomial-time many-one reduction NP-hardness NP-completeness
2026-10-06  1 By others on same topic  0 Discussions Create my own version
Given finitely encoded nonnegative integers si​ and target t, the subset sum problem asks whether some subset sums to t. Taking equal item weights and profits reduces it to testing whether a 0-1 knapsack problem with capacity t attains value t.

 Ancestors (8)

  1. NP-completeness
  2. NP-hardness
  3. Polynomial-time many-one reduction
  4. Polynomial-time reduction
  5. Computational complexity theory
  6. Theoretical computer science
  7. Computer science
  8.  Home

 Synonyms (1)

  • codex/subset-sum

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (1)

Subset sum problem by Ciro Santilli  40 Created 2025-06-12 Updated 2025-07-16
 View more
Sample implementation:
  • cpp/subset_sum.cpp
On coding challenge websites:
  • www.hackerrank.com/challenges/subset-sum/problem
  • leetcode.com/problems/partition-equal-subset-sum/
  • www.geeksforgeeks.org/subset-sum-problem-dp-25/
 Read the full article
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook