Lattice Algorithm Map: Gauss, LLL, BKZ, Enumeration, and Sieving
Choose a lattice algorithm by problem, input, guarantee, cost, and dimension.
Start by choosing an output. Reduction changes the basis while preserving its lattice. A search solver returns a vector or point whose quality is defined by the problem specification.
| Algorithm | Input | Output or guarantee | Cost | When to use |
|---|---|---|---|---|
| Gauss reduction | Rank-two Euclidean basis. | Reduced basis. The first vector is a shortest nonzero vector. | Quick in two dimensions. Each continuing swap strictly decreases the first length. | Learn size reduction and swaps or solve planar SVP. |
| LLL | Independent integer basis and reduction parameters. | Equivalent reduced basis with a proven, dimension-dependent SVP approximation factor. | Polynomial in the integer input size for fixed admissible parameters. | Preprocess a basis or obtain a fast approximation. |
| BKZ | A basis and a block size, with a solver for projected block problems. | Improved basis by optimizing overlapping projected blocks. A stopped run can have weaker quality than a fully reduced basis. | Larger blocks generally cost more, dominated by the local SVP work and the number of tours. | Trade more computation for stronger reduction. |
| Enumeration | A basis, a search radius, and optionally a target. | Complete enumeration certifies the minimum once all eligible vectors have been considered. Pruning can miss it. | Search tree can grow exponentially. Projected lengths, radius and ordering matter. | Find or certify a short vector or closest point in a moderate-dimensional search. |
| Sieving | A basis, a vector sampling strategy, and memory for a list of vectors. | Algorithms combine vectors into shorter ones. Guarantees depend on the particular sieve and model. | Common high-dimensional approaches use exponential memory and time. | Study high-dimensional SVP and block solvers where memory is available. |
Combine the tools
For a small exact CVP exercise, run LLL to improve the basis, use nearest plane for a candidate and radius, then enumerate all points within that radius. For a quick approximate result, stop after nearest plane and report the distance as the quality of the candidate. See the worked counterexample for a case in which the cheaper method misses the optimum.
Suggest a correction to this section
Read the original papers
Lenstra, Lenstra, and Lovász, Factoring Polynomials with Rational Coefficients · Schnorr and Euchner, Lattice Basis Reduction · Micciancio and Voulgaris, Faster Exponential Time Algorithms for the Shortest Vector Problem