Please use this identifier to cite or link to this item:
http://bura.brunel.ac.uk/handle/2438/32676| Title: | U-Index: A Universal Indexing Framework for Matching Long Patterns |
| Authors: | Ayad, LAK Fici, G Koerkamp, RG Loukides, G Patro, R Pibiri, GE Pissis, SP |
| Keywords: | text Indexing;sketching;minimizers;hashing |
| Issue Date: | 15-Jul-2025 |
| Publisher: | Schloss Dagstuhl Leibniz-Zentrum für Informatik |
| Citation: | Ayad, L.A.K. et al. (2025) 'U-Index: A Universal Indexing Framework for Matching Long Patterns', Leibniz International Proceedings in Informatics Lipics, 2025, 338, pp. 4-1 - 4-18. doi: 10.4230/LIPIcs.SEA.2025.4. |
| Abstract: | Motivation. Text indexing is a fundamental and well-studied problem. Classic solutions to this problem either replace the original text with a compressed representation, e.g., the FM-index and its variants, or keep it uncompressed but attach some redundancy - an index - to accelerate matching, e.g., the suffix array. The former solutions thus retain excellent compressed space, but are practically slow to construct and query. The latter approaches, instead, sacrifice space efficiency but are typically faster; for example, the suffix array takes much more space than the text itself for commonly used alphabets, like ASCII or DNA, but it is very fast to construct and query. Methods. In this paper, we show that efficient text indexing can be achieved using just a small extra space on top of the original text, provided that the query patterns are sufficiently long. More specifically, we develop a new indexing paradigm in which a sketch of a query pattern is first matched against a sketch of the text. Once candidate matches are retrieved, they are verified using the original text. This paradigm is thus universal in the sense that it allows us to use any solution to index the sketched text, like a suffix array, FM-index, or r-index. Results. We explore both the theory and the practice of this universal framework. With an extensive experimental analysis, we show that, surprisingly, universal indexes can be constructed much faster than their unsketched counterparts and take a fraction of the space, as a direct consequence of (i) having a lower bound on the length of patterns and (ii) working in sketch space. Furthermore, these data structures have the potential of retaining or even improving query time, because matching against the sketched text is faster and verifying candidates can be theoretically done in constant time per occurrence (or, in practice, by short and cache-friendly scans of the text). Finally, we discuss some important applications of this novel indexing paradigm to computational biology. We hypothesize that such indexes will be particularly effective when the queries are sufficiently long, and so we demonstrate applications in long-read mapping. |
| Description: | A related version of this article is available at arXiv:2502.14488v3 [cs.DS] (https://arxiv.org/abs/2502.14488). Comments: SEA-2025 version. 18 pages, 6 figures, code available at https://github.com/u-index/u-index-rs . ACM classes: F.2.2; J.3. Submission history: From: Ragnar Groot Koerkamp: [v1] Thu, 20 Feb 2025 12:09:34 UTC (383 KB); [v2] Fri, 21 Feb 2025 13:35:43 UTC (383 KB); [v3] Tue, 27 May 2025 12:05:04 UTC (459 KB). |
| URI: | https://bura.brunel.ac.uk/handle/2438/32676 |
| DOI: | https://doi.org/10.4230/LIPIcs.SEA.2025.4 |
| Other Identifiers: | ORCiD: Lorraine A. K. Ayad https://orcid.org/0000-0003-0846-2616 ORCiD: Gabriele Fici https://orcid.org/0000-0002-3536-327X ORCiD: Ragnar Groot Koerkamp https://orcid.org/0000-0002-2091-1237 ORCiD: Grigorios Loukides https://orcid.org/0000-0003-0888-5061 ORCiD: Rob Patro https://orcid.org/0000-0001-8463-1675 ORCiD: Giulio Ermanno Pibiri https://orcid.org/0000-0003-0724-7092 ORCiD: Solon P. Pissis https://orcid.org/0000-0002-1445-1932 Article number: 4 arXiv:2502.14488v3 [cs.DS] |
| Appears in Collections: | Dept of Computer Science Research Papers |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| FullText.pdf | Copyright © 2025 Lorraine A. K. Ayad, Gabriele Fici, Ragnar Groot Koerkamp, Grigorios Loukides, Rob Patro, Giulio, Ermanno Pibiri, and Solon P. Pissis; licensed under Creative Commons Attribution 4.0 International license (https://creativecommons.org/licenses/by/4.0/legalcode). | 2.23 MB | Adobe PDF | View/Open |
Items in BURA are protected by copyright, with all rights reserved, unless otherwise indicated.