کد مقاله | کد نشریه | سال انتشار | مقاله انگلیسی | نسخه تمام متن |
---|---|---|---|---|
428915 | 686964 | 2006 | 10 صفحه PDF | دانلود رایگان |
عنوان انگلیسی مقاله ISI
A new tree inclusion algorithm
دانلود مقاله + سفارش ترجمه
دانلود مقاله ISI انگلیسی
رایگان برای ایرانیان
موضوعات مرتبط
مهندسی و علوم پایه
مهندسی کامپیوتر
نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله

چکیده انگلیسی
We consider the following tree-matching problem: Given labeled, ordered trees P and T, can P be obtained from T by deleting nodes? Deleting a node v entails removing all edges incident to v and, if v has a parent u, replacing the edges from u to v by edges from u to the children of v. The existing algorithm for this problem needs O(|T||leaves(P)|) time and O(|leaves(P)|min{DT,|leaves(T)|}) space, where leaves(P) (leaves(T)) stands for the number of the leaves of P(T), and DT for the height of T. In this paper, we present a new algorithm that requires O(|T|min{DP,|leaves(P)|}) time and no extra space, where DP represents the height of P.
ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information Processing Letters - Volume 98, Issue 6, 30 June 2006, Pages 253-262
Journal: Information Processing Letters - Volume 98, Issue 6, 30 June 2006, Pages 253-262