A Faster Closest-Point Algorithm for the $A_n^*$ Lattices
Abstract
The dual root lattice is an important lattice in quantization, coding, and estimation. It can be represented as the projection of the integer lattice onto the -dimensional hyperplane whose coordinates sum to zero. This representation makes particularly natural for quantizing simplex-constrained data, such as histograms and probability distributions. This paper studies the closest-point problem for : given a query vector , find the lattice point minimizing . The fastest previously known method is the linear-time algorithm of McKilliam, Clarkson, Smith, and Quinn (MCSQ), which employs bucket sort as a core operation. We present a faster linear-time algorithm. The key observation is that the closest-point objective depends on the rounding residuals only through two prefix aggregates: a count and a residual sum. Hence the elements inside each bucket never need to be sorted, stored, or traversed. This replaces the linked-list traversal and pointer chasing of MCSQ with a single bucketing pass over two flat arrays with counting-sort-style accumulates. A scaled objective further makes most of the computation exact integer arithmetic, and when the input coordinates are rationals with a common denominator, for example, histograms or empirical distibutions, the entire algorithm becomes exact and integer-only. Experiments on an Intel Core i9-13900H show speedups of about to over MCSQ for , with larger gains at higher dimensions. The proposed algorithm is also noticeably faster than Conway and Sloan methods for other root lattices, including , , and . An open-source implementation is available in the "fanstar" project.
Cite
@article{arxiv.2607.10479,
title = {A Faster Closest-Point Algorithm for the $A_n^*$ Lattices},
author = {Yuriy A. Reznik},
journal= {arXiv preprint arXiv:2607.10479},
year = {2026}
}