Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
169 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Shortest Beer Path Queries based on Graph Decomposition (2307.02787v2)

Published 6 Jul 2023 in cs.DS

Abstract: 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(\alpha(n))$ time, where $\alpha(\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+nr2)$ 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(\alpha(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.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (11)
  1. Shortest beer path queries in outerplanar graphs. Algorithmica, 85(6):1679–1705, 2023.
  2. Recursive star-tree parallel data structure. SIAM Journal on Computing, 22(2):221–242, 1993. arXiv:https://doi.org/10.1137/0222017, doi:10.1137/0222017.
  3. Chazelle Bernard. Computing on a free tree via complexity-preserving mappings. Algorithmica, 2(1-4):337–361, 11 1987. URL: https://cir.nii.ac.jp/crid/1360011146378384384, doi:10.1007/bf01840366.
  4. Hans L Bodlaender. Treewidth: Algorithmic techniques and results. In Mathematical Foundations of Computer Science 1997: 22nd International Symposium, MFCS’97 Bratislava, Slovakia, August 25–29, 1997 Proceedings 22, pages 19–36. Springer, 1997.
  5. Shortest Beer Path Queries in Interval Graphs. In Sang Won Bae and Heejin Park, editors, 33rd International Symposium on Algorithms and Computation (ISAAC 2022), volume 248 of Leibniz International Proceedings in Informatics (LIPIcs), pages 59:1–59:17, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/opus/volltexte/2022/17344, doi:10.4230/LIPIcs.ISAAC.2022.59.
  6. Compact navigation and distance oracles for graphs with small treewidth. Algorithmica, 69(1):92–116, 2014. doi:10.1007/s00453-012-9712-9.
  7. Fibonacci heaps and their uses in improved network optimization algorithms. Journal of the ACM (JACM), 34(3):596–615, 1987.
  8. A linear time implementation of spqr-trees. In Joe Marks, editor, Graph Drawing, pages 77–90, Berlin, Heidelberg, 2001. Springer Berlin Heidelberg.
  9. Dividing a graph into triconnected components. SIAM Journal on Computing, 2(3):135–158, 1973. arXiv:https://doi.org/10.1137/0202012, doi:10.1137/0202012.
  10. Faster algorithms for shortest path and network flow based on graph decomposition. J. Graph Algorithms Appl., 23(5):781–813, 2019. doi:10.7155/jgaa.00512.
  11. Mikkel Thorup. Undirected single-source shortest paths with positive integer weights in linear time. Journal of the ACM (JACM), 46(3):362–394, 1999.
Citations (3)

Summary

We haven't generated a summary for this paper yet.