English

Shortest Beer Path Queries in Interval Graphs

Data Structures and Algorithms 2022-09-30 v1

Abstract

Our interest is in paths between pairs of vertices that go through at least one of a subset of the vertices known as beer vertices. Such a path is called a beer path, and the beer distance between two vertices is the length of the shortest beer path. We show that we can represent unweighted interval graphs using 2nlogn+O(n)+O(Blogn)2n \log n + O(n) + O(|B|\log n) bits where B|B| is the number of beer vertices. This data structure answers beer distance queries in O(logεn)O(\log^\varepsilon n) time for any constant ε>0\varepsilon > 0 and shortest beer path queries in O(logεn+d)O(\log^\varepsilon n + d) time, where dd is the beer distance between the two nodes. We also show that proper interval graphs may be represented using 3n+o(n)3n + o(n) bits to support beer distance queries in O(f(n)logn)O(f(n)\log n) time for any f(n)ω(1)f(n) \in \omega(1) and shortest beer path queries in O(d)O(d) time. All of these results also have time-space trade-offs. Lastly we show that the information theoretic lower bound for beer proper interval graphs is very close to the space of our structure, namely log(4+23)no(n)\log(4+2\sqrt{3})n - o(n) (or about 2.9n 2.9 n) bits.

Keywords

Cite

@article{arxiv.2209.14401,
  title  = {Shortest Beer Path Queries in Interval Graphs},
  author = {Rathish Das and Meng He and Eitan Kondratovsky and J. Ian Munro and Anurag Murty Naredla and Kaiyu Wu},
  journal= {arXiv preprint arXiv:2209.14401},
  year   = {2022}
}

Comments

To appear in ISAAC 2022

R2 v1 2026-06-28T02:19:35.977Z