一种可搜索的压缩编辑敏感语法分析
A Searchable Compressed Edit-Sensitive Parsing
摘要:
提出了一种实用的编辑敏感句法分析(ESP)数据结构。给定一个字符串S,它的ESP树等价于只生成S的上下文无关文法G,它由DAG表示。利用树和置换的简洁数据结构,G被分解为两个LOUDS位串和一个数组(1+ε)n \log n+4n+o(n)位,其中0<ε<1,且G中的变量数n为任意.计算P在S中出现次数的时间为O(\frac{1} ε(m \log n+occ_c(\log m \log u)),其中m = |P|,u = |S|,occ_c是P和S的ESP中最大公共子树的出现次数。该指标的效率进行了评估的几个基准上进行的实验符合其他压缩指标。
英文摘要:
Practical data structures for the edit-sensitive parsing (ESP) are proposed. Given a string S, its ESP tree is equivalent to a context-free grammar G generating just S, which is represented by a DAG. Using the succinct data structures for trees and permutations, G is decomposed to two LOUDS bit strings and single array in (1+ε)n\log n+4n+o(n) bits for any 0<ε<1 and the number n of variables in G. The time to count occurrences of P in S is in O(\frac{1}ε(m\log n+occ_c(\log m\log u)), whereas m = |P|, u = |S|, and occ_c is the number of occurrences of a maximal common subtree in ESPs of P and S. The efficiency of the proposed index is evaluated by the experiments conducted on several benchmarks complying with the other compressed indexes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。