Succinct data structures for path queries

  • Authors:
  • Meng He;J. Ian Munro;Gelin Zhou

  • Affiliations:
  • Faculty of Computer Science, Dalhousie University, Canada;David R. Cheriton School of Computer Science, University of Waterloo, Canada;David R. Cheriton School of Computer Science, University of Waterloo, Canada

  • Venue:
  • ESA'12 Proceedings of the 20th Annual European conference on Algorithms
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Consider a tree T on n nodes, each having a weight drawn from [1..σ]. In this paper, we design succinct data structures to encode T using $n H(W_T) + o(n\lg \sigma)$ bits of space, such that we can support path counting queries in $O(\frac{\lg \sigma}{\lg\lg n} + 1)$ time, path reporting queries in $O((occ+1)(\frac{\lg \sigma}{\lg\lg n} + 1))$ time, and path median and path selection queries in $O(\frac{\lg \sigma}{\lg\lg \sigma})$ time, where H(WT) is the entropy of the multiset of the weights of the nodes in T. Our results not only improve the best known linear space data structures [15], but also match the lower bounds for these path queries [18,19,16] when $\sigma = \Omega(n / \textrm{polylog}(n))$.