Logo image
String regularities with don't cares
Conference paper   Open access

String regularities with don't cares

C.S. Iliopoulos, M. Mohamed, L. Mouchard, K.G. Perdikuri, W.F. Smyth and A.K. Tsakalidis
Prague Stringology Conference 2002 (Czech Technical University, Prague, 23/09/2002–24/09/2002)
2002
pdf
dont_cares.pdfDownloadView
Open Access
url
Conference WebsiteView

Abstract

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.

Details

Metrics

132 File views/ downloads
77 Record Views
Logo image