基于四分裂的最优二叉搜索树粗粒度多机并行算法
Four-splitting based coarse-grained multicomputer parallel algorithm for the optimal binary search tree problem
摘要:
本文提出了一种基于粗粒度多机模型的并行算法,利用四分裂技术求解最优二叉搜索树问题。Knuth的著名的顺序算法在$\mathcal{O}\left(n^2\right)$时间和空间上解决了这个问题,其中$n$是用于构建最优二叉搜索树的键的数量。为了在CGM模型上并行化该算法,提出了不规则划分技术,包括将依赖图细分为可变大小的子图(或块),以解决最小化通信轮数和平衡处理器负载的权衡。然而,这种技术导致处理器的高延迟时间(其占全局通信时间的大部分),因为改变块的大小不能使它们在它们需要的数据可用时就开始评估一些块。本文提出的四分裂技术解决了这个缺点,通过评估一个块作为一个序列的计算和通信步骤的四个子块。这种基于CGM的并行解决方案需要$\mathcal{O}\left(n^2/\sqrt{p} \right)$执行时间和$\mathcal{O}\left( k \sqrt{p}\right)$通信循环,其中$p$是处理器的数量,$k$是块大小被细分的次数。实验结果表明,与基于不规则划分技术的并行解决方案相比,当使用$k = 2$时,在128个处理器上,40960个密钥的加速因子高达$\times$ 10.39,该解的加速因子高达$\times$ 13.12,当$k = 5$时,加速因子上升到$\times$ 14.93。
英文摘要:
This paper presents a parallel solution based on the coarse-grained multicomputer (CGM) model using the four-splitting technique to solve the optimal binary search tree problem. The well-known sequential algorithm of Knuth solves this problem in $\mathcal{O}\left(n^2\right)$ time and space, where $n$ is the number of keys used to build the optimal binary search tree. To parallelize this algorithm on the CGM model, the irregular partitioning technique, consisting in subdividing the dependency graph into subgraphs (or blocks) of variable size, has been proposed to tackle the trade-off of minimizing the number of communication rounds and balancing the load of processors. This technique however induces a high latency time of processors (which accounts for most of the global communication time) because varying the blocks' sizes does not enable them to start evaluating some blocks as soon as the data they need are available. The four-splitting technique proposed in this paper solves this shortcoming by evaluating a block as a sequence of computation and communication steps of four subblocks. This CGM-based parallel solution requires $\mathcal{O}\left(n^2/\sqrt{p} \right)$ execution time with $\mathcal{O}\left( k \sqrt{p}\right)$ communication rounds, where $p$ is the number of processors and $k$ is the number of times the size of blocks is subdivided. An experimental study conducted to evaluate the performance of this CGM-based parallel solution showed that compared to the solution based on the irregular partitioning technique where the speedup factor is up to $\times$10.39 on one hundred and twenty-eight processors with 40960 keys when $k = 2$, the speedup factor of this solution is up to $\times$13.12 and rises up to $\times$14.93 when $k = 5$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。