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 thekth order empirical entropy is an accepted measure of the compressibility of individual sequences on classical text collections, it is useful only for small values ofkand 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 sizezof the Lempel–Ziv parse are frequently used to estimate repetitiveness. The sizeb≤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.Themeasure\gamma \le blower−boundsallthepreviousrelevantones,whilelength−nstringscanberepresentedandefficientlyindexedwithinspaceO\left({\gamma \log \frac {n}{\gamma }}\right),whichalsoupper−boundsmanymeasures,includingz.Although\gamma isarguablyabettermeasureofrepetitivenessthanb,itisalsoNP−completetocomputeandnotmonotone,anditisunknownifonecanrepresentallstringsino(\gamma \log n)space.Inthispaper,westudyanevensmallermeasure,\delta \le \gamma ,whichcanbecomputedinlineartime,ismonotone,andallowsencodingeverystringinO\left({\delta \log \frac {n}{\delta }}\right)spacebecausez = O\left({\delta \log \frac {n}{\delta }}\right).Wearguethat\delta bettercapturesthecompressibilityofrepetitivestrings.Concretely,weshowthat(1)\delta canbestrictlysmallerthan\gamma ,byuptoalogarithmicfactor;(2)therearestringfamiliesneeding\Omega \left({\delta \log \frac {n}{\delta }}\right)spacetobeencoded,sothisspaceisoptimalforeverynand\delta ;(3)onecanbuildrun−lengthcontext−freegrammarsofsizeO\left({\delta \log \frac {n}{\delta }}\right),whereasthesmallest(non−run−length)grammarcanbeupto\Theta (\log n/\log \log n)timeslarger;and(4)withinO\left({\delta \log \frac {n}{\delta }}\right)space,wecannotonlyrepresentastringbutalsoofferlogarithmic−timeaccesstoitssymbols,computationofsubstringfingerprints,andefficientindexedsearchesforpatternoccurrences.Wefurtherrefinetheaboveresultstoaccountforthealphabetsize\sigma ofthestring,showingthat\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.