arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.02219cs.DScs.DC
收藏

LCP感知的并行串排序

LCP-Aware Parallel String Sorting

Jonas Ellert, Johannes Fischer, Nodari Sitchinava

摘要:

当对字符串进行字典排序时,并不总是需要检查所有符号。例如,“europar”在字符串“eureka”、“eurasia”和“excells”中的词典排名仅取决于其所谓的相关前缀“euro”。一组字符串的区别前缀大小$D$是建立所有字符串的字典序时实际需要检查的符号数。有效的字符串排序器应该是$D$感知的,即它们的复杂性应该取决于$D$而不是所有字符串中所有符号的总数$N$。虽然在顺序设置中有许多$D$感知的排序器,但在PRAM模型中似乎没有这样的结果。我们提出了一个框架,产生一个$D$感知修改任何现有的PRAM字符串排序。导出的算法相对于其原始算法是工作最优的:如果原始算法需要$O(w(N))$工作,则导出的算法需要$O(w(D))$工作。执行时间仅增加一个小的因子,该因子是最长相关前缀长度的对数。我们的框架普遍适用于PRAM模型的所有变体中的确定性和随机算法,因此未来($D$ -不知道)并行字符串排序的改进将直接导致$D$ -知道并行字符串排序的改进。

英文摘要:

When lexicographically sorting strings, it is not always necessary to inspect all symbols. For example, the lexicographical rank of "europar" amongst the strings "eureka", "eurasia", and "excells" only depends on its so called relevant prefix "euro". The distinguishing prefix size $D$ of a set of strings is the number of symbols that actually need to be inspected to establish the lexicographical ordering of all strings. Efficient string sorters should be $D$-aware, i.e. their complexity should depend on $D$ rather than on the total number $N$ of all symbols in all strings. While there are many $D$-aware sorters in the sequential setting, there appear to be no such results in the PRAM model. We propose a framework yielding a $D$-aware modification of any existing PRAM string sorter. The derived algorithms are work-optimal with respect to their original counterpart: If the original algorithm requires $O(w(N))$ work, the derived one requires $O(w(D))$ work. The execution time increases only by a small factor that is logarithmic in the length of the longest relevant prefix. Our framework universally works for deterministic and randomized algorithms in all variations of the PRAM model, such that future improvements in ($D$-unaware) parallel string sorting will directly result in improvements in $D$-aware parallel string sorting.

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

↑