English

Interval Query Problem on Cube-free Median Graphs

Data Structures and Algorithms 2022-02-14 v3

Abstract

In this paper, we introduce the \emph{interval query problem} on cube-free median graphs. Let GG be a cube-free median graph and S\mathcal{S} be a commutative semigroup. For each vertex vv in GG, we are given an element p(v)p(v) in S\mathcal{S}. For each query, we are given two vertices u,vu,v in GG and asked to calculate the sum of p(z)p(z) over all vertices zz belonging to a uvu-v shortest path. This is a common generalization of range query problems on trees and grids. In this paper, we provide an algorithm to answer each interval query in O(log2n)O(\log^2 n) time. The required data structure is constructed in O(nlog3n)O(n\log^3 n) time and O(nlog2n)O(n\log^2 n) space. To obtain our algorithm, we introduce a new technique, named the \emph{stairs decomposition}, to decompose an interval of cube-free median graphs into simpler substructures.

Keywords

Cite

@article{arxiv.2010.05652,
  title  = {Interval Query Problem on Cube-free Median Graphs},
  author = {Soh Kumabe},
  journal= {arXiv preprint arXiv:2010.05652},
  year   = {2022}
}

Comments

ISAAC'21, 21 pages

R2 v1 2026-06-23T19:16:32.243Z