← LibraryFinding Short Vectors in LatticesEngineering · MathematicsLesson 256/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginshortest vectorenumerationFincke-Pohstclosest vector

Lattices and LLL Reduction

Finding Short Vectors in Lattices

Enumeration and reduction-based methods for finding short lattice vectors, and where the exact shortest vector is genuinely needed.

Engineering / MathematicsLattices and LLL Reduction2 min readKV-MATH-0553

LLL returns a short vector, not the shortest. When the exact shortest is required, enumeration over a bounded region is the standard approach, and its cost depends sharply on how good the reduced basis is.

Enumeration

Given a bound on the length, enumerate all lattice vectors within it by working through the Gram-Schmidt coordinates from the last downward, at each level bounding the range of the next coefficient.

Fincke-Pohst enumeration

  1. Reduce firstApply LLL, or a stronger reduction, to the basis.
  2. Set a boundTake the length of the shortest basis vector as an initial bound.
  3. RecurseEnumerate coefficients from the highest index down, pruning whenever the partial length exceeds the bound.
  4. UpdateWhenever a shorter vector is found, tighten the bound.

Cost

Practical limits of exact shortest vector computation
RankFeasibility of exact enumeration
Up to about 10Routine
Around 20 to 40Feasible with good reduction and pruning
Substantially higherImpractical; rely on approximation

The closest vector problem

A related question asks for the lattice vector nearest a given target point. Babai's rounding gives a fast approximation by expressing the target in the reduced basis and rounding coefficients; enumeration gives the exact answer at similar cost to the shortest vector search.

Where exactness matters

Ideal reduction

An approximately short vector suffices — the goal is a small representative, not the smallest.

Polynomial factorisation

The sought vector is known to be much shorter than all others, so LLL alone finds it.

Form reduction in rank two

The exact shortest vector is wanted, but rank two admits a direct algorithm — see form reduction.

Number field sieve polynomial selection

Exactness is not required; quality of the search is what matters.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 2.7.3. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Detecting Algebraic and Linear Dependence with LLLArticle · MathematicsNEXT LESSON →Polynomial Representation and StorageArticle · MathematicsInteger Kernel and Image via LLLArticle · MathematicsPolynomial Multiplication StrategiesArticle · Mathematics