“…In this paper, motivated by problems in document retrieval, we consider the latter three kinds of problems, which are often referred to as "colored" range queries: colored range listing (with or without color frequencies), colored range top-k queries, and colored range counting. These have been associated, respectively, to very relevant document retrieval queries on general texts [31,35,37,20,15,12,9]: listing the documents where a pattern appears (possibly computing term frequencies), finding the most relevant documents to a query (under a tf × idf scheme, for example), and computing document frequencies. Such techniques have been shown to be competitive [9], even beating classical inverted indexes on natural-language texts.…”