arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.15902cs.DScs.DMmath.NT
收藏

简单的格基计算——欧几里得算法的推广

Simple Lattice Basis Computation -- The Generalization of the Euclidean Algorithm

Kim-Manuel Klein, Janina Reuter

AI总结:

本文将欧几里得算法自然推广至高维,提出一种易于实现的格基计算算法,通过减半满秩子系统行列式降低迭代次数,并利用简单选主元规则将基元素限制在多项式范围内,优于现有HNF方法。

摘要:

欧几里得算法是人类已知最古老的算法之一。给定两个整数 $a_1$ 和 $a_2$,它以一种非常优雅的方式计算 $a_1$ 和 $a_2$ 的最大公约数(gcd)。从格的角度来看,它计算两个一维格 $a_1 \mathbb{Z}$ 和 $a_2 \mathbb{Z}$ 之和的基,即 $\gcd(a_1,a_2) \mathbb{Z} = a_1 \mathbb{Z} + a_2 \mathbb{Z}$。在本文中,我们展示了经典的欧几里得算法可以以一种非常自然的方式进行推广,在给定向量 $a_1, \ldots , a_m \in \mathbb{Z}^n$ 且 $m> \mathrm{rank}(a_1, \ldots ,a_m)$ 的情况下,计算一般格 $L(a_1, \ldots , a_m)$ 的基。与欧几里得算法类似,我们的算法非常易于描述和实现,可以用 12 行以内的伪代码写出。欧几里得算法在每次迭代中将最大的数字减半,而我们的推广算法则将满秩子系统的行列式减半,对于某个初始子系统 $B$,这导致最多 $\log (\det B)$ 次迭代。因此,我们可以使用至多 $\tilde{O}((m-n)n\log(\det B) + mn^{\omega-1}\log(||A||_\infty))$ 次算术运算来计算格的基,其中 $\omega$ 是矩阵乘法指数,$A = (a_1, \ldots, a_m)$。即使使用最坏情况下的 Hadamard 界作为行列式上界,我们的算法也优于现有算法。我们算法的另一个主要优点是,可以使用简单的选主元规则将所得格基的元素限制在 $\tilde{O}(n^2\cdot ||A||_{\infty})$ 以内。这与计算格基的典型方法形成对比,后者使用 Hermite 正规型(HNF)。在 HNF 中,元素可以大到与行列式一样,因此只能用指数项来限制。

英文摘要:

The Euclidean algorithm is one of the oldest algorithms known to mankind. Given two integral numbers $a_1$ and $a_2$, it computes the greatest common divisor (gcd) of $a_1$ and $a_2$ in a very elegant way. From a lattice perspective, it computes a basis of the sum of two one-dimensional lattices $a_1 \mathbb{Z}$ and $a_2 \mathbb{Z}$ as $\gcd(a_1,a_2) \mathbb{Z} = a_1 \mathbb{Z} + a_2 \mathbb{Z}$. In this paper, we show that the classical Euclidean algorithm can be adapted in a very natural way to compute a basis of a general lattice $L(a_1, \ldots , a_m)$ given vectors $a_1, \ldots , a_m \in \mathbb{Z}^n$ with $m> \mathrm{rank}(a_1, \ldots ,a_m)$. Similar to the Euclidean algorithm, our algorithm is very easy to describe and implement and can be written within 12 lines of pseudocode. While the Euclidean algorithm halves the largest number in every iteration, our generalized algorithm halves the determinant of a full rank subsystem leading to at most $\log (\det B)$ many iterations, for some initial subsystem $B$. Therefore, we can compute a basis of the lattice using at most $\tilde{O}((m-n)n\log(\det B) + mn^{ω-1}\log(||A||_\infty))$ arithmetic operations, where $ω$ is the matrix multiplication exponent and $A = (a_1, \ldots, a_m)$. Even using the worst case Hadamard bound for the determinant, our algorithm improves upon existing algorithm. Another major advantage of our algorithm is that we can bound the entries of the resulting lattice basis by $\tilde{O}(n^2\cdot ||A||_{\infty})$ using a simple pivoting rule. This is in contrast to the typical approach for computing lattice basis, where the Hermite normal form (HNF) is used. In the HNF, entries can be as large as the determinant and hence can only be bounded by an exponential term.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑