Optimal Top-k Document Retrieval
Abstract
Let be a collection of documents, which are strings over an alphabet of size , of total length . We describe a data structure that uses linear space and and reports most relevant documents that contain a query pattern , which is a string of length , in time , which is optimal in the RAM model in the general case where , and involves a novel RAM-optimal suffix tree search. Our construction supports an ample set of important relevance measures... [clip] When , we show how to reduce the space of the data structure from to bits... [clip] We also consider the dynamic scenario, where documents can be inserted and deleted from the collection. We obtain linear space and query time , whereas insertions and deletions require time per symbol, for any constant . Finally, we consider an extended static scenario where an extra parameter is defined, and the query must retrieve only documents such that , where this range is specified at query time. We solve these queries using linear space and time, for any constant . Our technique is to translate these top- problems into multidimensional geometric search problems. As an additional bonus, we describe some improvements to those problems.
Cite
@article{arxiv.1307.6789,
title = {Optimal Top-k Document Retrieval},
author = {Gonzalo Navarro and Yakov Nekrich},
journal= {arXiv preprint arXiv:1307.6789},
year = {2013}
}