Find Every Lattice Point in a Ball: A Worked Enumeration Example
Turn a radius into integer coordinate bounds and verify each branch of a two-dimensional search.
Background reading Gram–Schmidt and QR
Start from the last coordinate
Take basis columns (2, 0) and (1, 2). The matrix is already upper triangular with positive diagonal, so its QR factors are Q = I and R = the basis matrix. For integer coefficients (a, b), the squared norm is (2a + b)² + 4b². Search the closed ball with radius 3.
The last term bounds b to −1, 0, or 1. For each b, the remaining horizontal component must satisfy |2a + b| ≤ √(9 − 4b²). Subtract b, divide by 2, and take the ceiling of the lower endpoint and floor of the upper endpoint.
Walk the tree and verify the leaves
root ├─ b = −1 → a = 0, 1 → (−1,−2), (1,−2) ├─ b = 0 → a = −1,0,1 → (−2,0), (0,0), (2,0) └─ b = 1 → a = −1,0 → (−1,2), (1,2)
The outer rows have squared norm 5. The horizontal nonzero points have squared norm 4, and the origin has squared norm zero. The bounds cover all candidates, and each leaf has squared norm at most 9. To solve SVP over this enumeration, discard zero and choose (±2, 0).
Use the same recurrence inside a BKZ block
In a projected block, work upward from the last row of the triangular factor. Subtract the squared length already spent and center the next integer interval using the higher coordinates. A full search at a valid radius certifies completeness within that ball. Heuristic pruning can skip branches and trades that guarantee for speed.
Try radius 2. The three points on the horizontal axis survive, and any |b| = 1 forces an odd horizontal coordinate, so the outer rows contribute none. Continue with projected blocks in BKZ.