退化字符串上的排名与选择
Rank and Select on Degenerate Strings
AI总结:
本文针对退化字符串上的排名-选择问题引入新参数并重新分析归约,使查询时间指数级改进且空间紧凑,实验实现查询速度提升2至7倍。
摘要:
“退化字符串”是某个字母表上子集构成的序列;它表示通过从左到右从每个集合中选择一个字符而获得的任意字符串。最近,Alanko等人将排名-选择问题推广到退化字符串,其中给定字符$c$和位置$i$,目标是找到包含$c$的第$i$个集合,或者在前$i$个集合中$c$的出现次数[SEA 2023]。该问题在泛基因组学中有应用;在Alanko等人的另一项工作中,他们将其作为支持快速成员查询的“de Bruijn图”紧凑表示的基础。本文重新审视了退化字符串上的排名-选择问题,引入一个新的自然参数,并重新分析了到常规字符串排名-选择的现有归约。通过采用标准数据结构,查询的时间界限得到了指数级改进,同时空间界限基本匹配或有所改善。此外,我们提供了空间下界,表明这些归约在广泛情形下可得到简洁数据结构。最后,我们提供了实现;我们最紧凑的结构与Alanko等人最紧凑的结构空间相同,但查询速度快两倍。我们还提供了一个使用现代向量处理特性的实现;它比Alanko等人最紧凑的结构多使用不到百分之一的空间,同时查询速度快四到七倍,并且查询时间与其余所有结构相比具有竞争力。
英文摘要:
A 'degenerate string' is a sequence of subsets of some alphabet; it represents any string obtainable by selecting one character from each set from left to right. Recently, Alanko et al. generalized the rank-select problem to degenerate strings, where given a character $c$ and position $i$ the goal is to find either the $i$th set containing $c$ or the number of occurrences of $c$ in the first $i$ sets [SEA 2023]. The problem has applications to pangenomics; in another work by Alanko et al. they use it as the basis for a compact representation of 'de Bruijn Graphs' that supports fast membership queries. In this paper we revisit the rank-select problem on degenerate strings, introducing a new, natural parameter and reanalyzing existing reductions to rank-select on regular strings. Plugging in standard data structures, the time bounds for queries are improved exponentially while essentially matching, or improving, the space bounds. Furthermore, we provide a lower bound on space that shows that the reductions lead to succinct data structures in a wide range of cases. Finally, we provide implementations; our most compact structure matches the space of the most compact structure of Alanko et al. while answering queries twice as fast. We also provide an implementation using modern vector processing features; it uses less than one percent more space than the most compact structure of Alanko et al. while supporting queries four to seven times faster, and has competitive query time with all the remaining structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。