Catalog Home Page

String regularities with don't cares

Iliopoulos, C.S., Mohamed, M., Mouchard, L., Perdikuri, K.G., Smyth, W.F. and Tsakalidis, A.K. (2002) String regularities with don't cares. In: Prague Stringology Conference 2002, 23 - 24 September 2002, Czech Technical University, Prague



We describe algorithms for computing typical regularities in strings x = x[1..n] that contain don't care symbols. For such strings on alphabet A, an O(n log n log |A|) worst-case time algorithm for computing the period is known, but the algorithm is impractical due to a large constant of proportionality. We present instead two simple practical algorithms that compute all the periods of every prefix of x; our algorithms require quadratic worst-case time but only linear time in the average case. We then show how our algorithms can be used to compute other string regularities, specifically the covers of both ordinary and circular strings.

Publication Type: Conference Paper
Conference Website:
Item Control Page Item Control Page


Downloads per month over past year