Abstract
We present a labeling scheme for rooted trees which allows to compute, from the label ofv alone, unique identifiers for the ancestors of v that are at distance at most d from v. For any constant d our labeling scheme produce labels of length logn + O(√log n), and for d ∈ O(√log n) the labels are still of length O(logn).
In particular, given the labels of two nodes u and v we can determine from the labels alone whether u is the parent of v or vice versa, whether u and v are siblings, and whether u and v are at distance at most d from each other.
The need for such labeling scheme arises in several application areas, including in particular communication networks and search engines for large collections of Web XML files. In the latter application XML files are viewed as trees, and typical queries ask for XML files containing a particular set of nodes with specific ancestor, parent, or sibling relationships among them.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
S. Abiteboul, P. Buneman, and D. Suciu. Data on the Web: From Relations to Semistructured Data and XML. Morgan-Kaufmann, 340 Pine Street, Sixth Floor San Francisco, CA 94104, October 1999.
S. Abiteboul, H. Kaplan, and T. Milo. Compact labeling schemes for ancestor queries. In Proc. 12th Symp. Discrete Algorithms (SODA’01), January 2001.
Stephen Alstrup and Theis Rauhe, January 2001. Private communication at SODA’01.
D. Butler. Souped-up search engines. Nature, 405:112–115, May 2000.
A. Deutsch, M. Fernandez, D. Florescu, A. Levy, and D. Suciu. A query language for xml. In International World Wide Web Conference, 1999.
Cyril Gavoille, David Peleg, Stephane Perennes, and Ran Raz. Distance labeling in graphs. In Proc. 12th Symp. Discrete Algorithms (SODA’01), January 2001.
T. C. Hu and C. Tucker. Optimum computer search trees. SIAM J. Appl. Math., 21:514–532, 1971.
M. Katz, N. Katz, and D. Peleg. Distance labeling schemes for well-separated graph classes. In S. Tison H. Reichel, editor, STACS’00, volume 1170 of Lecture Notes in Computer Science, pages 370–381. Springer Verlag, 2000.
David Peleg. Proximity-preserving labeling schemes and their applications. In Graph-Theoretic Concepts in Computer Science, 25th International Workshop, WG’99, volume 1665 of Lecture Notes in Computer Science, pages 30–41. Springer Verlag, 1999.
S. Rudich S. Kannan, M. Naor. Implicit representation of graphs. In Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing (STOC’88), pages 334–343, 1988.
N. Santoro and R. Khatib. Labeling and implicit routing in networds. The Computer J., 28:5–8, 1985.
M. Thorup and U. Zwick. Compact routing schemes. In To appear in the Proceedings of the Thirteenth ACM Symposium on Parallel Algorithms and Architectures (SPAA), 2001.
W3C. Extensible markup language (xml) 1.0. http://www.w3.org/TR/REC-xml.
W3C. Extensible stylesheet language (xsl). http://www.w3.org/Style/XSL/.
W3C. The w3c query languages workshop, dec 1998, boston, massachussets. http://www.w3.org/TandS/QL/QL98/cfp.html.
Xyleme. A dynamic data warehouse for the xml data of the web. http://www.xyleme.com.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kaplan, H., Milo, T. (2001). Short and Simple Labels for Small Distances and Other Functions. In: Dehne, F., Sack, JR., Tamassia, R. (eds) Algorithms and Data Structures. WADS 2001. Lecture Notes in Computer Science, vol 2125. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44634-6_23
Download citation
DOI: https://doi.org/10.1007/3-540-44634-6_23
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-42423-9
Online ISBN: 978-3-540-44634-7
eBook Packages: Springer Book Archive