کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
430874 688219 2014 9 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Time–space trade-offs for longest common extensions
ترجمه فارسی عنوان
فضای زمان برای طولانی ترین فرمت های رایج؟
کلمات کلیدی
طولانی ترین فرمت رایج، تطابق رشته تقریبی پالیندوم، تکرار مکرر، فضای زمان-فضا
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی

We revisit the longest common extension (LCE) problem, that is, preprocess a string T   into a compact data structure that supports fast LCE queries. An LCE query takes a pair (i,j)(i,j) of indices in T and returns the length of the longest common prefix of the suffixes of T starting at positions i and j. We study the time–space trade-offs for the problem, that is, the space used for the data structure vs. the worst-case time for answering an LCE query. Let n be the length of T. Given a parameter τ  , 1⩽τ⩽n1⩽τ⩽n, we show how to achieve either O(n/τ) space and O(τ)O(τ) query time, or O(n/τ)O(n/τ) space and O(τlog(|LCE(i,j)|/τ))O(τlog(|LCE(i,j)|/τ)) query time, where |LCE(i,j)||LCE(i,j)| denotes the length of the LCE returned by the query. These bounds provide the first smooth trade-offs for the LCE problem and almost match the previously known bounds at the extremes when τ=1τ=1 or τ=nτ=n. We apply the result to obtain improved bounds for several applications where the LCE problem is the computational bottleneck, including approximate string matching and computing palindromes. We also present an efficient technique to reduce LCE queries on two strings to one string. Finally, we give a lower bound on the time–space product for LCE data structures in the non-uniform cell probe model showing that our second trade-off is nearly optimal.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Journal of Discrete Algorithms - Volume 25, March 2014, Pages 42–50
نویسندگان
, , , ,