The following decision problems are NP-complete.
- Syndrome decoding (coset weights). Input: a binary matrix , a vector and an integer . Question: is there a vector of Hamming weight at most with ?
- Minimum distance. Input: a binary matrix and an integer . Question: is there a nonzero vector of Hamming weight at most with ?
Problem 1 was shown NP-complete by Berlekamp, McEliece and van Tilborg, who also proved NP-completeness of deciding whether a code has a codeword of weight exactly . Problem 2, which they left open, was settled by Vardy. The proofs are reductions from known NP-complete problems and are not reproduced here.
Consequently, unless , there is no polynomial-time algorithm that performs minimum-distance decoding for every linear code, and none that computes the minimum distance of every linear code.
The statement is about arbitrary codes in the worst case. It does not prevent specific families from having fast decoders, and it does not by itself say that decoding a random code is hard, which is the stronger assumption underlying code-based cryptography.