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

不确定字符串的空间高效索引

Space-Efficient Indexes for Uncertain Strings

Esteban Gabory, Chang Liu, Grigorios Loukides, Solon P. Pissis, Wiktor Zuba

AI总结:

针对不确定字符串索引空间开销过大的问题,提出一种预期大小为 $\mathcal{O}(\frac{nz}{\ell}\log z)$ 的空间高效索引,在保证较快查询速度的同时,将索引大小和构建空间缩减多达两个数量级。

摘要:

现实世界中的字符串通常带有某种程度的不确定性进行编码。在字符级不确定性模型中,字母表 $Σ$ 上长度为 $n$ 的不确定字符串 $X$ 是 $Σ$ 上的 $n$ 个概率分布的序列。给定不确定字符串 $X$ 和权重阈值 $\frac{1}{z}\in(0,1]$,如果模式 $P$ 在位置 $i,\ldots,i+|P|-1$ 处的字母概率乘积至少为 $\frac{1}{z}$,则称 $P$ 在 $X$ 的位置 $i$ 处出现。虽然为标准字符串构建索引以进行在线模式搜索可以在线性时间和空间内完成,但为不确定字符串构建索引更具挑战性。具体而言,最先进的不确定字符串索引大小为 $\mathcal{O}(nz)$,需要 $\mathcal{O}(nz)$ 时间和 $\mathcal{O}(nz)$ 空间来构建,并在最优的 $\mathcal{O}(m+|\text{Occ}|)$ 时间内回答模式匹配查询,其中 $m$ 是 $P$ 的长度,$|\text{Occ}|$ 是 $P$ 在 $X$ 中出现的总次数。对于较大的 $n$ 和(中等)$z$ 值,该索引在实际中完全无法构建,这抵消了其支持最优模式匹配查询的优势。因此,我们受到启发,以较慢但具竞争力的模式匹配查询为代价,设计一种空间高效的索引。我们提出了一种预期大小为 $\mathcal{O}(\frac{nz}{\ell}\log z)$ 的索引,可使用 $\mathcal{O}(\frac{nz}{\ell}\log z)$ 的预期空间构建,并对于长度 $m\geq \ell$ 的模式,在预期内支持非常快速的模式匹配查询。我们实现并评估了该索引的多个版本。表现最佳的版本在索引大小和构建空间方面比现有技术小多达两个数量级,同时提供更快或极具竞争力的查询和构建时间。

英文摘要:

Strings in the real world are often encoded with some level of uncertainty. In the character-level uncertainty model, an uncertain string $X$ of length $n$ on an alphabet $Σ$ is a sequence of $n$ probability distributions over $Σ$. Given an uncertain string $X$ and a weight threshold $\frac{1}{z}\in(0,1]$, we say that pattern $P$ occurs in $X$ at position $i$, if the product of probabilities of the letters of $P$ at positions $i,\ldots,i+|P|-1$ is at least $\frac{1}{z}$. While indexing standard strings for online pattern searches can be performed in linear time and space, indexing uncertain strings is much more challenging. Specifically, the state-of-the-art index for uncertain strings has $\mathcal{O}(nz)$ size, requires $\mathcal{O}(nz)$ time and $\mathcal{O}(nz)$ space to be constructed, and answers pattern matching queries in the optimal $\mathcal{O}(m+|\text{Occ}|)$ time, where $m$ is the length of $P$ and $|\text{Occ}|$ is the total number of occurrences of $P$ in $X$. For large $n$ and (moderate) $z$ values, this index is completely impractical to construct, which outweighs the benefit of the supported optimal pattern matching queries. We were thus motivated to design a space-efficient index at the expense of slower yet competitive pattern matching queries. We propose an index of $\mathcal{O}(\frac{nz}{\ell}\log z)$ expected size, which can be constructed using $\mathcal{O}(\frac{nz}{\ell}\log z)$ expected space, and supports very fast pattern matching queries in expectation, for patterns of length $m\geq \ell$. We have implemented and evaluated several versions of our index. The best-performing version of our index is up to two orders of magnitude smaller than the state of the art in terms of both index size and construction space, while offering faster or very competitive query and construction times.

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

↑