arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1312.4508cs.DCcs.DMcs.DSmath.CO
收藏

一种基于多边调度的分布式素数筛选算法

A distributed prime sieving algorithm based on Scheduling by Multiple Edge Reversal

Gabriel Paillard, Christian Lavault, Felipe Franca

摘要:

本文提出了一种新的分布式方法,用于生成给定整数区间内的所有素数。从埃拉托色尼(Eratosthenes)阐述了第一个素筛(2000多年前),到当前一代的并行计算机(可以达到更大的区间范围或在更短的时间内获得以前的结果),素数生成仍然代表着一个有吸引力的研究领域,并在密码学中发挥着核心作用。基于\emph{wheel sieve}和SMER(\emph{Scheduling by Multiple Edge Reversal})多重图动力学,提出了一个全分布式的寻找区间$[2\ldots, n]$中所有素数的算法。给定一个任意拓扑的多重图$\mathcal{M}$,它有$N$节点,一个SMER驱动的系统由$\mathcal{M}$的任意两个节点之间的有向边(弧)的数目和$\mathcal{M}$中所有“弧反转”的全局周期长度定义。新的素数生成方法继承了SMER的分布式和并行性质,并且最多需要$n + \lfloor \sqrt{n}\rfloor$时间步长。消息复杂度最多达到$nΔ_N + \lfloor \sqrt{n}\rfloor Δ_N$,其中$1\le Δ_N\le N - 1$是$\mathcal{M}$的最大多阶,并且每个进程所需的最大存储空间量是$\mathcal{O}(n)$位。

英文摘要:

This paper presents a new distributed approach for generating all prime numbers in a given interval of integers. From Eratosthenes, who elaborated the first prime sieve (more than 2000 years ago), to the current generation of parallel computers, which have permitted to reach larger bounds on the interval or to obtain previous results in a shorter time, prime numbers generation still represents an attractive domain of research and plays a central role in cryptography. We propose a fully distributed algorithm for finding all primes in the interval $[2\ldots, n]$, based on the \emph{wheel sieve} and the SMER (\emph{Scheduling by Multiple Edge Reversal}) multigraph dynamics. Given a multigraph $\mathcal{M}$ of arbitrary topology, having $N$ nodes, a SMER-driven system is defined by the number of directed edges (arcs) between any two nodes of $\mathcal{M}$, and by the global period length of all "arc reversals" in $\mathcal{M}$. The new prime number generation method inherits the distributed and parallel nature of SMER and requires at most $n + \lfloor \sqrt{n}\rfloor$ time steps. The message complexity achieves at most $nΔ_N + \lfloor \sqrt{n}\rfloor Δ_N$, where $1\le Δ_N\le N - 1$ is the maximal multidegree of $\mathcal{M}$, and the maximal amount of memory space required per process is $\mathcal{O}(n)$ bits.

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

↑