کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
419148 681747 2014 10 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
New simple efficient algorithms computing powers and runs in strings
ترجمه فارسی عنوان
الگوریتم های کارآمد جدید ساده محاسبات قدرت و اجرا در رشته ها
کلمات کلیدی
اجرا در یک رشته، مربع در یک رشته، مکعب در یک رشته، دیکشنری عوامل اصلی
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی

Three new simple O(nlogn)O(nlogn) time algorithms related to repeating factors are presented in the paper. The first two algorithms employ only a basic textual data structure called the Dictionary of Basic Factors. Despite their simplicity these algorithms not only detect existence of powers (in particular, squares) in a string but also find all primitively rooted cubes (as well as higher powers) and all cubic runs. Our third O(nlogn)O(nlogn) time algorithm computes all runs and is probably the simplest known efficient algorithm for this problem. It uses additionally the Longest Common Extension function, however, due to relaxed running time constraints, a simple O(nlogn)O(nlogn) time implementation can be used. At the cost of logarithmic factor (in time complexity) we obtain novel algorithmic solutions for several classical string problems which are much simpler than (usually quite sophisticated) linear time algorithms.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Discrete Applied Mathematics - Volume 163, Part 3, 30 January 2014, Pages 258–267
نویسندگان
, , , , , , ,