Detecting Approximate Periodic Patterns

Amihood Amir, Alberto Apostolico, Estrella Eisenberg, Gad M. Landau, Avivit Levy, Noa Lewenstein

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Given ɛ ∈ [0, 1), the ɛ-Relative Error Periodic Pattern Problem (REPP) is the following: INPUT: An n-long sequence S of numbers si ∈ N in increasing order. OUTPUT: The longest ɛ-relative error periodic pattern, i.e., the longest subsequence si1,si2,…,sik of S, for which there exists a number p such that the absolute difference between any two consecutive numbers in the subsequence is at least p and at most p(1 + ɛ). The best known algorithm for this problem has O(n3 ) time complexity. This bound is too high for large inputs in practice. In this paper we give a new algorithm for finding the longest ɛ-relative error periodic pattern (the REPP problem). Our method is based on a transformation of the input sequence into a different representation: the ɛ-active maximal intervals list L, defined in this paper. We show that the transformation of S to the list L can be done efficiently (quadratic in n and linear in the size of L) and prove that our algorithm is linear in the size of L. This enables us to prove that our algorithm works in sub-cubic time on inputs for which the best known algorithm works in O(n3 ) time. Moreover, though it may happen that our algorithm would still be cubic, it is never worse than the known O(n3 )-algorithm and in many situations its complexity is O(n2 )time.

Original languageEnglish
Title of host publicationDesign and Analysis of Algorithms - 1st Mediterranean Conference on Algorithms, MedAlg 2012, Proceedings
EditorsGuy Even, Dror Rawitz
PublisherSpringer Science and Business Media Deutschland GmbH
Pages1-12
Number of pages12
ISBN (Print)9783642348617
DOIs
StatePublished - 2012
Event1st Mediterranean Conference on Algorithms, MedAlg 2012 - Kibbutz Ein Gedi, Israel
Duration: 3 Dec 20125 Dec 2012

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume7659 LNNS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference1st Mediterranean Conference on Algorithms, MedAlg 2012
Country/TerritoryIsrael
CityKibbutz Ein Gedi
Period3/12/125/12/12

Bibliographical note

Publisher Copyright:
© Springer-Verlag Berlin Heidelberg 2012.

Funding

The best known algorithm for this problem has O(n3) time complexity. This bound is too high for large inputs in practice. In this paper we give a new algorithm for finding the longest ϵ-relative error periodic pattern (the REPP problem). Our method is based on a transformation ★ Partly supported by NSF grant CCR-09-04581, ISF grant 347/09, and BSF grant 2008217. ★★ Partly supported by BSF grant 2008217. ★★★ Partly supported by the National Science Foundation Award 0904246, Israel Sci-ence Foundation grant 347/09, Yahoo, Grant No. 2008217 from the United States-Israel Binational Science Foundation (BSF) and DFG. † Partly supported by ISF grant 347/09. Partly supported by NSF grant CCR-09-04581, ISF grant 347/09, and BSF grant 2008217.?? Partly supported by BSF grant 2008217.Partly supported by the National Science Foundation Award 0904246, Israel Science Foundation grant 347/09, Yahoo, Grant No. 2008217 from the United StatesIsrael Binational Science Foundation (BSF) and DFG.Partly supported by ISF grant 347/09.

FundersFunder number
Israel Sci-ence Foundation
United StatesIsrael Binational Science Foundation
National Science FoundationCCR-09-04581, 0904246
Deutsche Forschungsgemeinschaft
United States-Israel Binational Science Foundation2008217
Israel Science Foundation347/09

    Fingerprint

    Dive into the research topics of 'Detecting Approximate Periodic Patterns'. Together they form a unique fingerprint.

    Cite this