arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.01149cs.DS
收藏

用于位向量排序和选择的工程紧凑数据结构

Engineering Compact Data Structures for Rank and Select Queries on Bit Vectors

Florian Kurpicz

摘要:

位向量是许多简洁数据结构的基本构建块。它们可以用来表示图形,是小波树形式的许多文本索引的重要组成部分,并且可以用来将整数的有序序列编码为Elias-Fano码。为此,必须回答两个查询:即rank和select查询。给定位向量中的位置,秩查询返回该位置之前的1位数。给定参数$j$的选择查询返回第$j$个1位的位置。在长度为n位的向量上,两个查询都可以在$O(1)$时间内被回答,并且需要额外空间的$o(n)$位。在实践中,最小的(未压缩的)秩和选择数据结构cs-poppy具有$\approx$ 3.51%的空间开销[Zhou等人,SEA 13]。在本文中,我们提出了一个改进的排名和选择数据结构,具有相同的空间开销,但可以回答查询高达8%(排名)和16.5%(选择)相比,CS-罂粟。

英文摘要:

Bit vectors are fundamental building blocks of many succinct data structures. They can be used to represent graphs, are an important part of many text indices in the form of the wavelet tree, and can be used to encode ordered sequences of integers as Elias-Fano codes. To do so, two queries have to be answered: namely rank and select queries. Given a position in the bit vector, a rank query returns the number of 1-bits before that position. A select query, given a parameter $j$, returns the position of the $j$-th 1-bit. On a length-n bit vector, both queries can be answered in $O(1)$ time and require $o(n)$ bits of additional space. In practice, the smallest (uncompressed) rank and select data structure cs-poppy has a space overhead of $\approx$ 3.51% [Zhou et al., SEA 13]. In this paper, we present an improved rank and select data structure that has the same space overhead but can answer queries up to 8% (rank) and 16.5% (select) faster compared with cs-poppy.

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

↑