New simple efficient algorithms computing powers and runs in strings

7Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Three new simple 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) 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) 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. © 2013 Elsevier B.V. All rights reserved.

Cite

CITATION STYLE

APA

Crochemore, M., Iliopoulos, C. S., Kubica, M., Radoszewski, J., Rytter, W., Stencel, K., & Waleń, T. (2014). New simple efficient algorithms computing powers and runs in strings. Discrete Applied Mathematics, 163(PART 3), 258–267. https://doi.org/10.1016/j.dam.2013.05.009

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free