arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.10890cs.DScs.FL
收藏

基于SLP压缩文档的Spanner算法

Spanner Evaluation over SLP-Compressed Documents

Markus L. Schmid, Nicole Schweikardt

摘要:

我们考虑在压缩文档上评估规则空间的问题,即,我们希望直接在压缩数据上解决评估任务,而不进行解压缩。作为文档的压缩形式,我们使用直线程序(SLP)--一种文本数据的无损压缩方案,广泛用于理论计算机科学的不同领域,特别适合于压缩数据的算法。在数据复杂度方面,我们的结果如下。对于一个正则的BRM和一个表示文档D的SLP S,我们可以解决模型检验和在时间O(size(S))上检验非空性的任务。计算从D中提取的所有生成元组的集合M(D)可以在时间O(size(S)size(M(D)内完成,并且M(D)的枚举可以用线性预处理O(size(S))和延迟O(depth(S))完成,其中depth(S)是S的导出树的深度。注意,大小(S)可以指数地小于文档的大小|D| ;并且,由于SLP的已知平衡结果,我们总是可以假设深度(S)= O(log(|D|)),而与D的压缩性无关。因此,我们的枚举算法具有非压缩数据大小的延迟对数和最好的预处理时间(即,在高度可压缩文档的情况下)也是对数的,但在最坏的情况下仍然是线性的。因此,从大数据的角度来看,我们针对SLP压缩文档的枚举算法可能仍然优于针对非压缩文档的已知线性预处理和恒定延迟算法。

英文摘要:

We consider the problem of evaluating regular spanners over compressed documents, i.e., we wish to solve evaluation tasks directly on the compressed data, without decompression. As compressed forms of the documents we use straight-line programs (SLPs) -- a lossless compression scheme for textual data widely used in different areas of theoretical computer science and particularly well-suited for algorithmics on compressed data. In terms of data complexity, our results are as follows. For a regular spanner M and an SLP S that represents a document D, we can solve the tasks of model checking and of checking non-emptiness in time O(size(S)). Computing the set M(D) of all span-tuples extracted from D can be done in time O(size(S) size(M(D))), and enumeration of M(D) can be done with linear preprocessing O(size(S)) and a delay of O(depth(S)), where depth(S) is the depth of S's derivation tree. Note that size(S) can be exponentially smaller than the document's size |D|; and, due to known balancing results for SLPs, we can always assume that depth(S) = O(log(|D|)) independent of D's compressibility. Hence, our enumeration algorithm has a delay logarithmic in the size of the non-compressed data and a preprocessing time that is at best (i.e., in the case of highly compressible documents) also logarithmic, but at worst still linear. Therefore, in a big-data perspective, our enumeration algorithm for SLP-compressed documents may nevertheless beat the known linear preprocessing and constant delay algorithms for non-compressed documents.

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

↑