A comparison of labeling schemes for ancestor queries

  • Authors:
  • Haim Kaplan;Tova Milo;Ronen Shabo

  • Affiliations:
  • Tel-Aviv University, Tel Aviv 69978, Israel;Tel-Aviv University, Tel Aviv 69978, Israel;Tel-Aviv University, Tel Aviv 69978, Israel

  • Venue:
  • SODA '02 Proceedings of the thirteenth annual ACM-SIAM symposium on Discrete algorithms
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

Motivated by a recent application in XML search engines we study the problem of labeling the nodes of a tree (XML file) such that given the labels of two nodes one can determine whether one node is an ancestor of the other. We describe several new prefix-based labeling schemes, where an ancestor query roughly amounts to testing whether one label is a prefix of the other. We compare our new schemes to a simple interval-based scheme currently used by search engines, as well as, to schemes with the best theoretical guarantee on the maximum label length. We performed our experimental evaluation on real XML data and on some families of random trees.