Indexing Strings with Utilities
Abstract
Applications in domains ranging from bioinformatics to advertising feature strings that come with numerical scores (utilities). The utilities quantify the importance, interest, profit, or risk of the letters occurring at every position of a string. Motivated by the ever-increasing rate of generating such data, as well as by their importance in several domains, we introduce Useful String Indexing (USI), a natural generalization of the classic String Indexing problem. Given a string (the text) of length , USI asks for preprocessing into a compact data structure supporting the following queries efficiently: given a shorter string (the pattern), return the global utility of in , where is a function that maps any string to a utility score based on the utilities of the letters of every occurrence of in . Our work also makes the following contributions: (1) We propose a novel and efficient data structure for USI based on finding the top- frequent substrings of . (2) We propose a linear-space data structure that can be used to mine the top- frequent substrings of or to tune the parameters of the USI data structure. (3) We propose a novel space-efficient algorithm for estimating the set of the top- frequent substrings of , thus improving the construction space of the data structure for USI. (4) We show that popular space-efficient top- frequent item mining strategies employed by state-of-the-art algorithms do not smoothly translate from items to substrings. (5) Using billion-letter datasets, we experimentally demonstrate that: (i) our top- frequent substring mining algorithms are accurate and scalable, unlike two state-of-the-art methods; and (ii) our USI data structures are up to times faster in querying than nontrivial baselines while occupying the same space with them.
Keywords
Cite
@article{arxiv.2504.05917,
title = {Indexing Strings with Utilities},
author = {Giulia Bernardini and Huiping Chen and Alessio Conte and Roberto Grossi and Veronica Guerrini and Grigorios Loukides and Nadia Pisanti and and Solon P. Pissis},
journal= {arXiv preprint arXiv:2504.05917},
year = {2025}
}
Comments
ICDE 2025 (abstract abridged to satisfy arXiv requirements)