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

树和图上路计算问题的线性时间指针机算法

Linear-Time Pointer-Machine Algorithms for Path-Evaluation Problems on Trees and Graphs

Adam L. Buchsbaum, Loukas Georgiadis, Haim Kaplan, Anne Rogers, Robert E. Tarjan, Jeffery R. Westbrook

摘要:

我们提出的算法,运行在线性时间的指针机器上的问题的集合,其中每个直接或间接地需要在树中的路径上定义的函数的评价。这些问题以前有线性时间算法,但仅适用于随机存取机(RAM);最好的指针机算法是超线性的逆阿克曼函数因子。我们的算法也更简单,在某些情况下,基本上,比以前的线性时间RAM算法。我们的改进主要来自三个新的想法:一个精致的分析路径压缩,如果压缩有利于某些节点,一个基于指针的基数排序作为一个替代基于表的方法,并更仔细的分区的树容易管理的部分,给出了一个线性范围。我们的算法离线计算最近共同祖先,验证和构造最小生成树,对流图进行区间分析,找到流图的支配者,并建立加权树的组件树。

英文摘要:

We present algorithms that run in linear time on pointer machines for a collection of problems, each of which either directly or indirectly requires the evaluation of a function defined on paths in a tree. These problems previously had linear-time algorithms but only for random-access machines (RAMs); the best pointer-machine algorithms were super-linear by an inverse-Ackermann-function factor. Our algorithms are also simpler, in some cases substantially, than the previous linear-time RAM algorithms. Our improvements come primarily from three new ideas: a refined analysis of path compression that gives a linear bound if the compressions favor certain nodes, a pointer-based radix sort as a replacement for table-based methods, and a more careful partitioning of a tree into easily managed parts. Our algorithms compute nearest common ancestors off-line, verify and construct minimum spanning trees, do interval analysis on a flowgraph, find the dominators of a flowgraph, and build the component tree of a weighted tree.

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

↑