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

外平面图的最短Beer路

Shortest Beer Path Queries in Outerplanar Graphs

Joyce Bacic, Saeed Mehrabi, Michiel Smid

摘要:

一个\emph{beer graph}是一个无向图$G$,其中每条边都有一个正的权重,并且一些顶点有啤酒库。$G$中两个顶点$u$和$v$之间的\emph{beer path}是$G$中访问至少一个啤酒店的$u$和$v$之间的任何路径。我们证明了任何具有$n$顶点的外平面啤酒图$G$都可以在$O(n)$时间内被预处理成大小为$O(n)$的数据结构,使得对于任意两个查询顶点$u$和$v$,(i)$u$和$v$之间的最短啤酒路径的权重可以在$O(α(n))$时间内被报告(其中$α(n)$是逆阿克曼函数),以及(ii)$u$和$v$之间的最短啤酒路径可以在$O(L)$时间内报告,其中$L$是该路径上的顶点数。两个结果都是最优的,即使当$G$是啤酒树(即,其底层图是树的啤酒图)。

英文摘要:

A \emph{beer graph} is an undirected graph $G$, in which each edge has a positive weight and some vertices have a beer store. A \emph{beer path} between two vertices $u$ and $v$ in $G$ is any path in $G$ between $u$ and $v$ that visits at least one beer store. We show that any outerplanar beer graph $G$ with $n$ vertices can be preprocessed in $O(n)$ time into a data structure of size $O(n)$, such that for any two query vertices $u$ and $v$, (i) the weight of the shortest beer path between $u$ and $v$ can be reported in $O(α(n))$ time (where $α(n)$ is the inverse Ackermann function), and (ii) the shortest beer path between $u$ and $v$ can be reported in $O(L)$ time, where $L$ is the number of vertices on this path. Both results are optimal, even when $G$ is a beer tree (i.e., a beer graph whose underlying graph is a tree).

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

↑