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

具有递减密钥的高速缓存不经意优先级算法及其在图算法中的应用

Cache-Oblivious Priority Queues with Decrease-Key and Applications to Graph Algorithms

John Iacono, Riko Jacob, Konstantinos Tsakalidis

摘要:

我们提出了优先级队列中的缓存无关外部存储器模型与块大小$B$和主存储器大小$M$,支持$N$元素,操作\textsc{UPDATE}(\textsc{INSERT}和\textsc{DECREASEKEY}的组合)在$O \left(\frac{1}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$分期I/O和操作\textsc{EXTRACT-MIN}和\textsc{DELETE}在$O \left(\lceil \frac{λ^{\varepsilon}}{B} \log_{\fracλ{B}} \frac{N}{B} \rceil \log_{\fracλ{B}} \frac{N}{B}\right)$分期I/O,使用$O \left(\frac{N}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$块,为用户定义的参数$λ\in [2, N ]$和任何真正的$\varepsilon \in (0,1)$。我们的结果改进了以前的I/O高效缓存无关和缓存感知优先级队列[Chowdhury和Ramachandran,TALG 2018],[Brodal等人,SWAT 2004],[Kumar和Schwabe,SPDP 1996],[Arge等人,SICOMP 2007],[Fadel等人,TCS 1999]。我们还提出了缓冲的存储库树,其支持$N$元素的多集合、$O \left(\frac{1}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$ I/O中的操作\textsc{INSERT}和$O \left(\frac{λ^{\varepsilon}}{B} \log_{\fracλ{B}} \frac{N}{B} + \frac{K}{B}\right)$分摊I/O中的$K$提取元素上的操作\textsc{EXTRACT},使用$O \left(\frac{N}{B}\right)$块,改进了先前的高速缓存感知和高速缓存不经意结果[Arge等人,SICOMP '07],[Buchsbaum等人,SODA '00]。在高速缓存无关模型下,针对$λ= O \left(E/V\right)$,实现了单源最短路径的$O \left(\frac{E}{B}\log_{\frac{E}{V B}} \frac{E}{B}\right)$ I/O,以及大规模有向稠密图$(V,E)$上的深度优先搜索和广度优先搜索算法。我们的算法对于$E/V = Ω(M)$是I/O最优的(并且对于$λ= O(M)$是缓存感知设置)。

英文摘要:

We present priority queues in the cache-oblivious external memory model with block size $B$ and main memory size $M$ that support on $N$ elements, operation \textsc{UPDATE} (combination of \textsc{INSERT} and \textsc{DECREASEKEY}) in $O \left(\frac{1}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$ amortized I/Os and operations \textsc{EXTRACT-MIN} and \textsc{DELETE} in $O \left(\lceil \frac{λ^{\varepsilon}}{B} \log_{\fracλ{B}} \frac{N}{B} \rceil \log_{\fracλ{B}} \frac{N}{B}\right)$ amortized I/Os, using $O \left(\frac{N}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$ blocks, for a user-defined parameter $λ\in [2, N ]$ and any real $\varepsilon \in (0,1)$. Our result improves upon previous I/O-efficient cache-oblivious and cache-aware priority queues [Chowdhury and Ramachandran, TALG 2018], [Brodal et al., SWAT 2004], [Kumar and Schwabe, SPDP 1996], [Arge et al., SICOMP 2007], [Fadel et al., TCS 1999]. We also present buffered repository trees that support on a multi-set of $N$ elements, operation \textsc{INSERT} in $O \left(\frac{1}{B}\log_{\fracλ{B}} \frac{N}{B}\right)$ I/Os and operation \textsc{EXTRACT} on $K$ extracted elements in $O \left(\frac{λ^{\varepsilon}}{B} \log_{\fracλ{B}} \frac{N}{B} + \frac{K}{B}\right)$ amortized I/Os, using $O \left(\frac{N}{B}\right)$ blocks, improving previous cache-aware and cache-oblivious results [Arge et al., SICOMP '07], [Buchsbaum et al., SODA '00]. In the cache-oblivious model, for $λ= O \left(E/V\right)$, we achieve $O \left(\frac{E}{B}\log_{\frac{E}{V B}} \frac{E}{B}\right)$ I/Os for single-source shortest paths, depth-first search and breadth-first search algorithms on massive directed dense graphs $(V,E)$. Our algorithms are I/O-optimal for $E/V = Ω(M)$ (and in the cache-aware setting for $λ= O(M)$).

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

↑