Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
6875659 | Theoretical Computer Science | 2018 | 17 Pages |
Abstract
A string T of length m is periodic in P of length p if P is a substring of T and T[i]=T[i+p] for all 0â¤iâ¤mâpâ1 and mâ¥2p. The shortest such prefix, P, is called the period of T (i.e., P=T[0..pâ1]). In this paper we investigate the period recovery problem. Given a string S of length n, find the primitive period(s) P such that the distance between S and a string T that is periodic in P is below a threshold Ï. We consider the period recovery problem over both the Hamming distance and the edit distance. For the Hamming distance case, we present an O(nlogâ¡n)-time algorithm, where Ï is given as ân(2+ϵ)pâ, for ϵ>0. For the edit distance case, Ï=ân(3.75+ϵ)pâ and ϵ>0, we provide an O(n4/3)-time algorithm.
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Amihood Amir, Mika Amit, Gad M. Landau, Dina Sokol,