PAPER DIGEST
Most Influential SIGMOD 2005 Paper · 2026-03 edition

Efficient Keyword Search For Smallest LCAs In XML Databases

Yu Xu; Yannis Papakonstantinou

Venue
ACM SIGMOD Conference (SIGMOD) 2005
Recognition
Most Influential SIGMOD 2005 Paper (Rank No. 5)
Edition
2026-03
Impact factor
7
Certificate ID
2d7d6dfcb265c115

Abstract

Keyword search is a proven, user-friendly way to query HTML documents in the World Wide Web. We propose keyword search in XML documents, modeled as labeled trees, and describe corresponding efficient algorithms. The proposed keyword search returns the set of smallest trees containing all keywords, where a tree is designated as "smallest" if it contains no tree that also contains all keywords. Our core contribution, the Indexed Lookup Eager algorithm, exploits key properties of smallest trees in order to outperform prior algorithms by orders of magnitude when the query contains keywords with significantly different frequencies. The Scan Eager variant is tuned for the case where the keywords have similar frequencies. We analytically and experimentally evaluate two variants of the Eager algorithm, along with the Stack algorithm [13]. We also present the XKSearch system, which utilizes the Indexed Lookup Eager, Scan Eager and Stack algorithms and a demo of which on DBLP data is available at http://www.db.ucsd.edu/projects/xksearch. Finally, we extend the Indexed Lookup Eager algorithm to answer Lowest Common Ancestor (LCA) queries.

Download PDF certificate