Testing periodicity

Oded Lachish, Ilan Newman

Research output: Contribution to journalArticlepeer-review

Abstract

We study the string-property of being periodic and having periodicity smaller than a given bound. Let ∑ be a fixed alphabet and let p,n be integers such that p ≤ n/2. A length-n string over ∑, α=(α 1,⋯,α n ), has the property Period(p) if for every i,j {1,⋯,n}, α ij whenever ij (mod∈p). For an integer parameter g ≤ n/2, the property Period(≥g) is the property of all strings that are in Period(p) for some p≥g. The property ≤ n/2) is also called Periodicity. An ε-test for a property P of length-n strings is a randomized algorithm that for an input α distinguishes between the case that α is in P and the case where one needs to change at least an ε-fraction of the letters of α to get a string in P. The query complexity of the ε-test is the number of letter queries it makes for the worst case input string of length n. We study the query complexity of ε-tests for Period(≥g) as a function of the parameter g, when g varies from 1 to n/2, while ignoring the exact dependence on the proximity parameter ε. We show that there exists an exponential phase transition in the query complexity around g=log∈n. That is, for every δ>0 and g≥(log∈n) 1+δ, every two-sided error, adaptive ε-test for Period(≥g) has a query complexity that is polynomial in g. On the other hand, for g ≤ log n/6, there exists a one-sided error, non-adaptive ε-test for Period(≥g), whose query complexity is poly-logarithmic in g. We also prove that the asymptotic query complexity of one-sided error non-adaptive ε-tests for Periodicity is Θ(√n log n), ignoring the dependence on ε.

Original languageEnglish
Pages (from-to)401-420
Number of pages20
JournalAlgorithmica
Volume60
Issue number2
DOIs
StatePublished - Jun 2011

Bibliographical note

Funding Information:
Research of I. Newman supported in part by an Israel Science Foundation grant number 1011/06.

Keywords

  • Periodicity
  • Property testing

ASJC Scopus subject areas

  • General Computer Science
  • Computer Science Applications
  • Applied Mathematics

Fingerprint

Dive into the research topics of 'Testing periodicity'. Together they form a unique fingerprint.

Cite this