Indexing Strings with Utilities
Giulia Bernardini, Huiping Chen, Alessio Conte, Roberto Grossi, Veronica Guerrini, Grigorios Loukides, Nadia Pisanti, Solon P. Pissis
Abstract
Applications in domains ranging from bioinformatics to advertising feature strings (sequences of letters over some alphabet) 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. For instance, DNA fragments generated by sequencing machines come with a confidence score per position. 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 preprocessinginto a compact data structure supporting the following queries efficiently: given a shorter string(the pattern), return the global utilityofin, whereis a function that maps any stringto a utility score based on the utilities of the letters of every occurrence ofin. 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 ofor 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 15 times faster in querying than 4 nontrivial baselines while occupying the same space with them.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext c91aec3e-17ba-4870-ae07-8afed67d4212Builds on1
Related papers
- Contextual Pattern Mining and CountingLing Li, Daniel Gibney, Sharma V. Thankachan, Solon P. Pissis et al.ICDE 2026
- Efficiently Enumerating Substrings with Statistically Significant Frequencies of Locally Optimal Occurrences in Gigantic StringAtsuyoshi Nakamura, Ichigaku Takigawa, Hiroshi MamitsukaAAAI 2020 · 2 citations
- Suffix Rank: a new scalable algorithm for indexing large string collectionsMarina Barsky, Jonathan Gabor, Mariano P. Consens, Alex ThomoVLDB 2020
- Space-Efficient Indexes for Uncertain StringsEstéban Gabory, Chang Liu, Grigorios Loukides, Solon P. Pissis et al.ICDE 2024 · 2 citations
- Top-k Document Retrieval in Compressed SpaceGonzalo Navarro, Yakov NekrichSODA 2025
