کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
434222 689704 2014 14 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Efficient counting of square substrings in a tree
ترجمه فارسی عنوان
شمارش کارائی زیرشبکه های مربعی در یک درخت
کلمات کلیدی
درخت، مربع در رشته، تطبیق الگو
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی

We give an algorithm which in O(nlog2n) time counts all distinct squares in a labeled tree. There are two main obstacles to overcome. The first one is that the number of distinct squares in a tree is Ω(n4/3)Ω(n4/3) (see Crochemore et al., 2012 [7]), which differs substantially from the case of classical strings for which there are only linearly many distinct squares. We overcome this obstacle by using a compact representation of all squares (based on maximal cyclic shifts) which requires only O(nlogn) space. The second obstacle is lack of adequate algorithmic tools for labeled trees, consequently we design several novel tools, this is the most complex part of the paper. In particular we extend to trees Imre Simon's compact representations of the failure table in pattern matching machines.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 544, 7 August 2014, Pages 60–73
نویسندگان
, , , , ,