Paper record

W3125235775

Toward a Definitive Compressibility Measure for Repetitive Sequences

Tomasz Kociumaka, Gonzalo Navarro, Nicola Prezza

Year
2022
Venue
IEEE Transactions on Information Theory
References
56
Cited by
73

Details and counts from OpenAlex.

Abstract

While thekkth order empirical entropy is an accepted measure of the compressibility of individual sequences on classical text collections, it is useful only for small values ofkkand thus fails to capture the compressibility of repetitive sequences. In the absence of an established way of quantifying the latter, ad-hoc measures like the sizezzof the Lempel–Ziv parse are frequently used to estimate repetitiveness. The sizeb≤zb \le zof the smallest bidirectional macro scheme captures better what can be achieved via copy-paste processes, though it is NP-complete to compute, and it is not monotone upon appending symbols. Recently, a more principled measure, the size$\gamma ofthesmalleststringattractor,wasintroduced.Themeasureof the smalleststring attractor, was introduced. The measure\gamma \le blower−boundsallthepreviousrelevantones,whilelength−lower-bounds all the previous relevant ones, while length-nstringscanberepresentedandefficientlyindexedwithinspacestrings can be represented and efficiently indexed within spaceO\left({\gamma \log \frac {n}{\gamma }}\right),whichalsoupper−boundsmanymeasures,including, which also upper-bounds many measures, includingz.Although. Although\gamma isarguablyabettermeasureofrepetitivenessthanis arguably a better measure of repetitiveness thanb,itisalsoNP−completetocomputeandnotmonotone,anditisunknownifonecanrepresentallstringsin, it is also NP-complete to compute and not monotone, and it is unknown if one can represent all strings ino(\gamma \log n)space.Inthispaper,westudyanevensmallermeasure,space. In this paper, we study an even smaller measure,\delta \le \gamma ,whichcanbecomputedinlineartime,ismonotone,andallowsencodingeverystringin, which can be computed in linear time, is monotone, and allows encoding every string inO\left({\delta \log \frac {n}{\delta }}\right)spacebecausespace becausez = O\left({\delta \log \frac {n}{\delta }}\right).Wearguethat. We argue that\delta bettercapturesthecompressibilityofrepetitivestrings.Concretely,weshowthat(1)better captures the compressibility of repetitive strings. Concretely, we show that (1)\delta canbestrictlysmallerthancan be strictly smaller than\gamma ,byuptoalogarithmicfactor;(2)therearestringfamiliesneeding, by up to a logarithmic factor; (2) there are string families needing\Omega \left({\delta \log \frac {n}{\delta }}\right)spacetobeencoded,sothisspaceisoptimalforeveryspace to be encoded, so this space is optimal for everynandand\delta ;(3)onecanbuildrun−lengthcontext−freegrammarsofsize; (3) one can build run-length context-free grammars of sizeO\left({\delta \log \frac {n}{\delta }}\right),whereasthesmallest(non−run−length)grammarcanbeupto, whereas the smallest (non-run-length) grammar can be up to\Theta (\log n/\log \log n)timeslarger;and(4)withintimes larger; and (4) withinO\left({\delta \log \frac {n}{\delta }}\right)space,wecannotonlyrepresentastringbutalsoofferlogarithmic−timeaccesstoitssymbols,computationofsubstringfingerprints,andefficientindexedsearchesforpatternoccurrences.Wefurtherrefinetheaboveresultstoaccountforthealphabetsizespace, we can not only represent a string but also offer logarithmic-time access to its symbols, computation of substring fingerprints, and efficient indexed searches for pattern occurrences. We further refine the above results to account for the alphabet size\sigma ofthestring,showingthatof the string, showing that\Theta \left({\delta \log \frac {n\log \sigma }{\delta \log n}}\right)$space is necessary and sufficient to represent the string and to efficiently support access, fingerprinting, and pattern matching queries.