کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
428165 686610 2008 5 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
A fast and simple algorithm for computing the longest common subsequence of run-length encoded strings
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
A fast and simple algorithm for computing the longest common subsequence of run-length encoded strings
چکیده انگلیسی

Let X and Y be two strings of lengths n and m, respectively, and k and l, respectively, be the numbers of runs in their corresponding run-length encoded forms. We propose a simple algorithm for computing the longest common subsequence of two given strings X and Y in O(kl+min{p1,p2}) time, where p1 and p2 denote the numbers of elements in the bottom and right boundaries of the matched blocks, respectively. It improves the previously known time bound O(min{nl,km}) and outperforms the time bounds O(kllogkl) or O((k+l+q)log(k+l+q)) for some cases, where q denotes the number of matched blocks.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information Processing Letters - Volume 108, Issue 6, 30 November 2008, Pages 360-364