Home
Scholarly Works
An improved version of the runs algorithm based on...
Conference

An improved version of the runs algorithm based on Crochemore's partitioning algorithm

Abstract

Though there are in theory linear-time algorithms for computing runs in strings, recently two of the authors implemented an O(n log n) algorithm to compute runs that was based on the Crochemore's partitioning repetitions algorithm. The algorithm preserved the running complexity of the underlying Crochemore's algorithm; however, the static memory requirement - already large at 14n integers for a string of length n - was increased significantly to O(n log n) integers. The purpose and advantage of this algorithm was its speed. In this paper we present a more advanced version of the extension of the Crochemore's algorithm for computing runs. This version in addition to maximal repetitions, computes runs and primitively rooted distinct squares. Its implementation completely does away with the extra memory required for the previous version and through some additional memory saving techniques, the overall memory need was reduced to 13n integers. © 2011 Czech Technical University in Prague, Czech Republic.

Authors

Franek F; Jiang M; Weng CC

Pagination

pp. 98-105

Publication Date

December 1, 2011

Conference proceedings

Proceedings of the Prague Stringology Conference 2011

Contact the Experts team