English

Efficient tree-structured categorical retrieval

Data Structures and Algorithms 2020-06-03 v1

Abstract

We study a document retrieval problem in the new framework where DD text documents are organized in a {\em category tree} with a pre-defined number hh of categories. This situation occurs e.g. with taxomonic trees in biology or subject classification systems for scientific literature. Given a string pattern pp and a category (level in the category tree), we wish to efficiently retrieve the tt \emph{categorical units} containing this pattern and belonging to the category. We propose several efficient solutions for this problem. One of them uses n(logσ(1+o(1))+logD+O(h))+O(Δ)n(\log\sigma(1+o(1))+\log D+O(h)) + O(\Delta) bits of space and O(p+t)O(|p|+t) query time, where nn is the total length of the documents, σ\sigma the size of the alphabet used in the documents and Δ\Delta is the total number of nodes in the category tree. Another solution uses n(logσ(1+o(1))+O(logD))+O(Δ)+O(Dlogn)n(\log\sigma(1+o(1))+O(\log D))+O(\Delta)+O(D\log n) bits of space and O(p+tlogD)O(|p|+t\log D) query time. We finally propose other solutions which are more space-efficient at the expense of a slight increase in query time.

Keywords

Cite

@article{arxiv.2006.01825,
  title  = {Efficient tree-structured categorical retrieval},
  author = {Djamal Belazzougui and Gregory Kucherov},
  journal= {arXiv preprint arXiv:2006.01825},
  year   = {2020}
}

Comments

Full version of a paper accepted for presentation at the 31st Annual Symposium on Combinatorial Pattern Matching (CPM 2020)

R2 v1 2026-06-23T16:00:14.874Z