arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2112.04271cs.DS
收藏

RLBWT技巧

RLBWT Tricks

Nathaniel K. Brown, Travis Gagie, Massimiliano Rossi

摘要:

直到最近,大多数专家可能都同意我们不能使用行程压缩的Burrows-Wheeler变换(RLBWT)在恒定时间内向后步进,因为这样做依赖于对稀疏位向量的排名查询,并且这些查询继承了前任查询的下限。然而,在ICALP '21上,Nishimoto和Tabei描述了一种新的,简单的和恒定时间的实现。对于置换$π$,它存储一个$O (r)$ -空间表--其中$r$是$i = 0$或$π(i + 1) \neq π(i) + 1$的位置$i$的数目--该表允许通过查表和线性扫描来计算$π(i)$的连续值。Nishimoto和Tabei展示了如何增加表中的行数来限制线性扫描的长度,以便在保持$O (r)$空间的同时,计算$π(i)$的查询时间是恒定的。在本文中,我们完善西本和田北的方法,包括时间-空间的权衡,并通过实验评估不同的实现,证明他们的结果的一部分的实用性。我们表明,即使没有向表中添加行,在实践中,我们几乎总是在查询过程中只扫描几个条目。我们提出了一个分解方案的置换$π$对应的LF映射,允许一个改进的压缩的数据结构,同时限制查询时间。我们在真实世界的基因组数据集上测试了我们的实现,发现在没有压缩表的情况下,向后步进比稀疏位向量实现快得多,但不幸的是,也使用了更多的空间。经过压缩后,向后步进在时间和空间上都具有与现有最佳实现的竞争力。

英文摘要:

Until recently, most experts would probably have agreed we cannot backwards-step in constant time with a run-length compressed Burrows-Wheeler Transform (RLBWT), since doing so relies on rank queries on sparse bitvectors and those inherit lower bounds from predecessor queries. At ICALP '21, however, Nishimoto and Tabei described a new, simple and constant-time implementation. For a permutation $π$, it stores an $O (r)$-space table -- where $r$ is the number of positions $i$ where either $i = 0$ or $π(i + 1) \neq π(i) + 1$ -- that enables the computation of successive values of $π(i)$ by table look-ups and linear scans. Nishimoto and Tabei showed how to increase the number of rows in the table to bound the length of the linear scans such that the query time for computing $π(i)$ is constant while maintaining $O (r)$-space. In this paper we refine Nishimoto and Tabei's approach, including a time-space tradeoff, and experimentally evaluate different implementations demonstrating the practicality of part of their result. We show that even without adding rows to the table, in practice we almost always scan only a few entries during queries. We propose a decomposition scheme of the permutation $π$ corresponding to the LF-mapping that allows an improved compression of the data structure, while limiting the query time. We tested our implementation on real-world genomic datasets and found that without compression of the table, backward-stepping is drastically faster than with sparse bitvector implementations but, unfortunately, also uses drastically more space. After compression, backward-stepping is competitive both in time and space with the best existing implementations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑