← Hardness assumptions

Subset Sum / Knapsack Problem

Proposed by: Cryptographic use by Ralph Merkle & Martin Hellman (1978); modern treatment by Impagliazzo–Naor (1989) Category: Combinatorial, post-quantum candidate

Mathematical form

Random subset sum SS(n,M)(n, M). Given a1,,anZMa_1, \ldots, a_n \leftarrow \mathbb{Z}_M and

t=iSaimodMfor random S[n],t = \sum_{i \in S} a_i \bmod M \quad \text{for random } S \subseteq [n],

find SS (search) or distinguish (a,t)(a, t) from uniform (decision — equivalent to search for random instances, Impagliazzo–Naor).

The density δ=n/log2M\delta = n / \log_2 M governs hardness: the assumptiond-hard regime is δ1\delta \approx 1 (M2nM \approx 2^n). Worst-case subset sum is NP-complete.

Best known attacks

Importance

Source: assumptions/subset-sum.md — corrections welcome via pull request.