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

树型积分多端流的线性时间算法

A Linear-time Algorithm for Integral Multiterminal Flows in Trees

Mingyu Xiao, Hiroshi Nagamochi

摘要:

本文研究了在具有非负整数边容量和一组终端的无向树中,求使每两个终端之间的流值之和最大的整数多流的问题.一般来说,已知积分多流的流值由割系统的割值限定,该割系统由不相交的子集组成,每个子集恰好包含一个终端或具有奇数割值,并且存在一对积分多流和割系统,其流值和割值相等;即,一对最大积分多流和最小割。在本文中,我们提出了一个$O(n)$的时间算法,发现这样一对完整的多流和切割系统在一个给定的树实例与$n$顶点。这将以前的最佳结果提高了$Ω(n)$倍。将实例中给定的树视为根树,定义了以每个顶点为根的$O(n)$根树实例,并建立了这些实例的最大整数多流值的递推公式,设计了一个在线性时间内计算所有$O(n)$根实例的最大整数多流值的动态规划.我们可以证明,该算法隐含地保持一个切割系统,使不仅是一个最大的积分多流,但也可以在线性时间内构造一个最小切割系统的任何根的情况下,它是必要的。由此产生的算法是相当紧凑和简洁。

英文摘要:

In this paper, we study the problem of finding an integral multiflow which maximizes the sum of flow values between every two terminals in an undirected tree with a nonnegative integer edge capacity and a set of terminals. In general, it is known that the flow value of an integral multiflow is bounded by the cut value of a cut-system which consists of disjoint subsets each of which contains exactly one terminal or has an odd cut value, and there exists a pair of an integral multiflow and a cut-system whose flow value and cut value are equal; i.e., a pair of a maximum integral multiflow and a minimum cut. In this paper, we propose an $O(n)$-time algorithm that finds such a pair of an integral multiflow and a cut-system in a given tree instance with $n$ vertices. This improves the best previous results by a factor of $Ω(n)$. Regarding a given tree in an instance as a rooted tree, we define $O(n)$ rooted tree instances taking each vertex as a root, and establish a recursive formula on maximum integral multiflow values of these instances to design a dynamic programming that computes the maximum integral multiflow values of all $O(n)$ rooted instances in linear time. We can prove that the algorithm implicitly maintains a cut-system so that not only a maximum integral multiflow but also a minimum cut-system can be constructed in linear time for any rooted instance whenever it is necessary. The resulting algorithm is rather compact and succinct.

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

↑