arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1312.0526cs.DS
收藏

随机超图的Cache不经意剥离

Cache-Oblivious Peeling of Random Hypergraphs

Djamal Belazzougui, Paolo Boldi, Giuseppe Ottaviano, Rossano Venturini, Sebastiano Vigna

摘要:

随机生成超图中剥离顺序的计算是许多构造中最耗时的步骤,例如完美散列方案、随机$r$ -SAT求解器、纠错码和近似集编码。虽然有一个简单的线性时间算法,其I/O性能差,使其不切实际的超图的大小超过可用的内部存储器。我们展示了如何减少剥离顺序的计算,以少量的顺序扫描和排序,并分析其I/O复杂性的高速缓存遗忘模型。所得到的算法需要$O(\mathrm{sort}(n))$ I/O和$O(n \log n)$时间来剥离具有$n$边的随机超图。我们实验评估我们的实现该算法在现实世界中的情况下,使用最小完美哈希函数(MPHF)的建设作为我们的测试用例的性能:我们的算法建立了一个MPHF的$7.6$十亿键在不到$21$小时在一台机器上。所得到的数据结构比用当前最先进的用于大规模密钥集的MPHF构造所获得的数据结构更节省空间并且更快。

英文摘要:

The computation of a peeling order in a randomly generated hypergraph is the most time-consuming step in a number of constructions, such as perfect hashing schemes, random $r$-SAT solvers, error-correcting codes, and approximate set encodings. While there exists a straightforward linear time algorithm, its poor I/O performance makes it impractical for hypergraphs whose size exceeds the available internal memory. We show how to reduce the computation of a peeling order to a small number of sequential scans and sorts, and analyze its I/O complexity in the cache-oblivious model. The resulting algorithm requires $O(\mathrm{sort}(n))$ I/Os and $O(n \log n)$ time to peel a random hypergraph with $n$ edges. We experimentally evaluate the performance of our implementation of this algorithm in a real-world scenario by using the construction of minimal perfect hash functions (MPHF) as our test case: our algorithm builds a MPHF of $7.6$ billion keys in less than $21$ hours on a single machine. The resulting data structure is both more space-efficient and faster than that obtained with the current state-of-the-art MPHF construction for large-scale key sets.

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

↑