کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
435389 689902 2009 12 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Fast algorithms for computing tree LCS
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Fast algorithms for computing tree LCS
چکیده انگلیسی

The LCS of two rooted, ordered, and labeled trees F and G is the largest forest that can be obtained from both trees by deleting nodes. We present algorithms for computing tree LCS which exploit the sparsity inherent to the tree LCS problem. Assuming G is smaller than F, our first algorithm runs in time , where r is the number of pairs (v∈F,w∈G) such that v and w have the same label. Our second algorithm runs in time , where L is the size of the LCS of F and G. For this algorithm we present a novel three-dimensional alignment graph. Our third algorithm is intended for the constrained variant of the problem in which only nodes with zero or one children can be deleted. For this case we obtain an time algorithm, where .

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 410, Issue 43, 6 October 2009, Pages 4303-4314