U-index: 一种通用的索引框架用于匹配长模式
U-index: A Universal Indexing Framework for Matching Long Patterns
AI总结:
U-index通过在原始文本上增加少量额外空间,利用草图匹配和验证机制,实现高效长模式匹配,适用于计算生物学中的长读映射。
摘要:
文本索引是一个基础且广泛研究的问题。经典解决方案要么用压缩表示替换原始文本,例如FM-index及其变体,要么保持未压缩但附加一些冗余——索引——以加速匹配。前者解决方案因此保留了优秀的压缩空间,但实际应用中较慢。后者方法,如后缀数组,却牺牲空间换取速度。我们展示了通过在原始文本上仅增加少量额外空间即可实现高效文本索引,前提是查询模式足够长。更具体地说,我们开发了一种新的索引范式,其中首先将查询模式的草图与文本的草图进行匹配。一旦获取候选匹配,再使用原始文本进行验证。这种范式具有通用性,因为它允许使用任何索引草图文本的解决方案,如后缀数组、FM-index或r-index。我们探讨了这种通用框架的理论和实践。通过广泛的实验分析,我们展示了,令人惊讶的是,通用索引可以比其未草图的对应物更快地构建,并占用更少的空间,这直接导致于(i)对模式长度有下界以及(ii)在草图空间中工作。此外,这些数据结构有潜力保留或甚至提高查询时间,因为匹配草图文本更快,验证候选可以理论上在每个出现时常数时间内完成(或在实践中通过短且缓存友好的扫描文本)。最后,我们讨论了这种新型索引范式在计算生物学中的重要应用。我们假设此类索引在查询足够长时会特别有效,因此展示了在长读映射中的应用。
英文摘要:
Text indexing is a fundamental and well-studied problem. Classic solutions 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. The former solutions thus retain excellent compressed space, but are slow in practice. The latter approaches, like the suffix array, instead sacrifice space for speed. 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. 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 demonstrate applications in long-read mapping.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。