کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
434108 689684 2014 8 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Compact q-gram profiling of compressed strings
کلمات کلیدی
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Compact q-gram profiling of compressed strings
چکیده انگلیسی

We consider the problem of computing the q-gram profile of a string T of size N compressed by a context-free grammar with n   production rules. We present an algorithm that runs in O(N−α)O(N−α) expected time and uses O(n+q+kT,q)O(n+q+kT,q) space, where N−α≤qnN−α≤qn is the exact number of characters decompressed by the algorithm and kT,q≤N−αkT,q≤N−α is the number of distinct q-grams in T  . 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 Ω(n+q+kT,q)Ω(n+q+kT,q) 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.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 550, 18 September 2014, Pages 51–58
نویسندگان
, , ,