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

压缩模式下的字符串索引

String Indexing with Compressed Patterns

Philip Bille, Inge Li Gørtz, Teresa Anna Steiner

AI总结:

针对客户端-服务器场景中以压缩形式提交的模式查询,提出一种线性空间数据结构,能直接高效处理Lempel-Ziv压缩模式,实现接近最优的查询时间,并开发了编码LZ77压缩后缀和分解trie等通用数据结构技术。

摘要:

给定长度为 $n$ 的字符串 $S$,经典的字符串索引问题是将 $S$ 预处理为一种紧凑的数据结构,以支持高效的后续模式查询。本文考虑一种基本变体,其中模式以压缩形式给出,目标是实现以模式的压缩大小衡量的快速查询时间。这适用于常见的客户端-服务器场景,即客户端提交查询并以压缩形式将其传输给服务器。我们考虑如何直接高效地处理压缩查询,而不是让服务器在处理前先解压查询。我们的主要结果是一种新颖的线性空间数据结构,对于使用经典 Lempel-Ziv 压缩方案压缩的模式,它实现了接近最优的查询时间。在此过程中,我们开发了若干具有独立价值的数据结构技术,包括一种在线性空间内紧凑编码字符串所有 LZ77 压缩后缀的新颖数据结构,以及一种 trie 的通用分解方法,该方法将搜索时间从对数级于 trie 大小降低到对数级于模式长度。

英文摘要:

Given a string $S$ of length $n$, the classic string indexing problem is to preprocess $S$ into a compact data structure that supports efficient subsequent pattern queries. In this paper we consider the basic variant where the pattern is given in compressed form and the goal is to achieve query time that is fast in terms of the compressed size of the pattern. This captures the common client-server scenario, where a client submits a query and communicates it in compressed form to a server. Instead of the server decompressing the query before processing it, we consider how to efficiently process the compressed query directly. Our main result is a novel linear space data structure that achieves near-optimal query time for patterns compressed with the classic Lempel-Ziv compression scheme. Along the way we develop several data structural techniques of independent interest, including a novel data structure that compactly encodes all LZ77 compressed suffixes of a string in linear space and a general decomposition of tries that reduces the search time from logarithmic in the size of the trie to logarithmic in the length of the pattern.

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

↑