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

基于图分解的最短啤酒路径查询

Shortest Beer Path Queries based on Graph Decomposition

Tesshu Hanaka, Hirotaka Ono, Kunihiko Sadakane, Kosuke Sugiyama

AI总结:

本文研究一般有向加权图上的啤酒路径索引查询问题,基于树分解和三连通分量分解提出索引结构与算法,并在串并联图上达到最优空间和查询时间。

摘要:

给定一个有向边加权图 $G=(V, E)$,其中啤酒顶点集合为 $B\subseteq V$,两个顶点 $u$ 和 $v$ 之间的啤酒路径是指 $u$ 和 $v$ 之间至少经过 $B$ 中一个啤酒顶点的路径,两个顶点之间的啤酒距离是啤酒路径的最短长度。我们考虑啤酒路径上的索引问题,即图是预先给定的,我们为图构建一些数据结构(称为索引)。之后,给定两个顶点,我们利用该数据结构找出它们之间的啤酒距离或啤酒路径。对于这种方案,已经针对外平面图和区间图提出了使用索引进行啤酒距离和啤酒路径查询的高效算法。例如,Bacic 等人(2021)为外平面图提出了大小为 $O(n)$ 的索引,以及使用这些索引在 $O(α(n))$ 时间内回答给定两个顶点之间啤酒距离的算法,其中 $α(\cdot)$ 是逆阿克曼函数;该性能被证明是最优的。本文基于两种图分解:树分解和三连通分量分解,提出了一般图上啤酒路径查询的索引数据结构和算法。我们基于三连通分量分解提出了大小为 $O(m+nr^2)$ 的索引,其中 $r$ 是最大三连通分量的大小。对于给定的查询 $u,v\in V$,我们使用索引的算法可以在查询时间 $O(α(m))$ 内输出啤酒距离。特别地,我们的索引数据结构和算法在外平面图更广泛的类——串并联图上实现了最优性能(空间和查询时间)。

英文摘要:

Given a directed edge-weighted graph $G=(V, E)$ with beer vertices $B\subseteq V$, a beer path between two vertices $u$ and $v$ is a path between $u$ and $v$ that visits at least one beer vertex in $B$, and the beer distance between two vertices is the shortest length of beer paths. We consider \emph{indexing problems} on beer paths, that is, a graph is given a priori, and we construct some data structures (called indexes) for the graph. Then later, we are given two vertices, and we find the beer distance or beer path between them using the data structure. For such a scheme, efficient algorithms using indexes for the beer distance and beer path queries have been proposed for outerplanar graphs and interval graphs. For example, Bacic et al. (2021) present indexes with size $O(n)$ for outerplanar graphs and an algorithm using them that answers the beer distance between given two vertices in $O(α(n))$ time, where $α(\cdot)$ is the inverse Ackermann function; the performance is shown to be optimal. This paper proposes indexing data structures and algorithms for beer path queries on general graphs based on two types of graph decomposition: the tree decomposition and the triconnected component decomposition. We propose indexes with size $O(m+nr^2)$ based on the triconnected component decomposition, where $r$ is the size of the largest triconnected component. For a given query $u,v\in V$, our algorithm using the indexes can output the beer distance in query time $O(α(m))$. In particular, our indexing data structures and algorithms achieve the optimal performance (the space and the query time) for series-parallel graphs, which is a wider class of outerplanar graphs.

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

↑