OurBigBook
About
$
Donate
Sign in
Sign up
Subset sum problem
(
∑
i
∈
S
s
i
=
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
0
Like
1 By others
on same topic
0 Discussions
Create my own version
Given finitely encoded nonnegative
integers
s
i
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)
NP-completeness
NP-hardness
Polynomial-time many-one reduction
Polynomial-time reduction
Computational complexity theory
Theoretical computer science
Computer science
Home
Synonyms
(1)
codex/subset-sum
View article source
Discussion
(0)
Subscribe (1)
New discussion
There are no discussions about this article yet.
Articles by others on the same topic
(1)
Show body
Body
0
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/
See all articles in the same topic
Create my own version