MR-RePair:基于最大重复的语法压缩
MR-RePair: Grammar Compression based on Maximal Repeats
摘要:
分析了RePair压缩算法的文法生成算法,并给出了RePair生成的文法与最大重复数的关系。我们发现,RePair逐步取代相应的最频繁的最大重复内的最频繁的对。然后,我们设计了一种新的变体RePair,称为MR-RePair,它一次替换最频繁的最大重复序列,而不是连续替换最频繁的重复序列。我们实现了MR-RePair,并在几个文本语料库上比较了MR-RePair和RePair生成的语法大小。我们的实验表明,MR-RePair比RePair生成更紧凑的语法,特别是对于高度重复的文本。
英文摘要:
We analyze the grammar generation algorithm of the RePair compression algorithm and show the relation between a grammar generated by RePair and maximal repeats. We reveal that RePair replaces step by step the most frequent pairs within the corresponding most frequent maximal repeats. Then, we design a novel variant of RePair, called MR-RePair, which substitutes the most frequent maximal repeats at once instead of substituting the most frequent pairs consecutively. We implemented MR-RePair and compared the size of the grammar generated by MR-RePair to that by RePair on several text corpus. Our experiments show that MR-RePair generates more compact grammars than RePair does, especially for highly repetitive texts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。