Compact q-gram profiling of compressed strings
From MaRDI portal
Compact \(q\)-gram profiling of compressed strings
Abstract: We consider the problem of computing the q-gram profile of a string str of size compressed by a context-free grammar with production rules. We present an algorithm that runs in expected time and uses space, where is the exact number of characters decompressed by the algorithm and is the number of distinct q-grams in . This simultaneously matches the current best known time bound and improves the best known space bound. Our space bound is asymptotically optimal in the sense that any algorithm storing the grammar and the q-gram profile must use space. To achieve this we introduce the q-gram graph that space-efficiently captures the structure of a string with respect to its q-grams, and show how to construct it from a grammar.
Recommendations
Cited in
(5)
This page was built for publication: Compact \(q\)-gram profiling of compressed strings
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4928561)