通过 $\mathbb{F}_2$ 算术快速计算 $\mathbb{F}_3$ 上的积和式
Fast computation of permanents over $\mathbb{F}_3$ via $\mathbb{F}_2$ arithmetic
AI总结:
本文利用二进制位运算表示并快速处理 $\mathbb{F}_3^n$ 向量,提出加速计算 $\mathbb{F}_3$ 上矩阵积和式的算法,Julia 实现约获 80 倍加速,并通过 Monte Carlo 模拟支持其渐近均匀分布。
摘要:
我们提出一种方法,将 $\mathbb{F}_3^n$ 中的一个元素表示为 $\mathbb{F}_2^n \times \mathbb{F}_2^n$ 中的一个元素,在实际中它将是一对无符号整数。我们展示了如何使用原始二进制运算(and、or、xor)快速执行此类向量的加法、减法以及逐点乘法和除法。我们利用这一机制开发了一种快速算法,用于计算 $\mathbb{F}_3^{n\times n}$ 中矩阵的积和式。我们给出了积和式自然实现的 Julia 代码,并表明对于实际规模的问题,我们改进后的实现大约带来 80 倍的加速。使用这一改进代码,我们进行了 Monte Carlo 模拟,结果表明随着 $n \to \infty$,$\mbox{perm}(A)$ 的分布趋于均匀分布。
英文摘要:
We present a method of representing an element of $\mathbb{F}_3^n$ as an element of $\mathbb{F}_n^2 \times \mathbb{F}_n^2$ which in practice will be a pair of unsigned integers. We show how to do addition, subtraction and pointwise multiplication and division of such vectors quickly using primitive binary operations (and, or, xor). We use this machinery to develop a fast algorithm for computing the permanent of a matrix in $\mathbb{F}_3^{n\times n}$. We present Julia code for a natural implementation of the permanent and show that our improved implementation gives, roughly, a factor of 80 speedup for problems of practical size. Using this improved code, we perform Monte Carlo simulations that suggest that the distribution of $\mbox{perm}(A)$ tends to the uniform distribution as $n \to \infty$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。