skip to main content
research-article

Periodicity testing with sublinear samples and space

Published: 06 April 2010 Publication History

Abstract

In this work, we are interested in periodic trends in long data streams in the presence of computational constraints. To this end; we present algorithms for discovering periodic trends in the combinatorial property testing model in a data stream S of length n using o(n) samples and space.
In accordance with the property testing model, we first explore the notion of being “close” to periodic by defining three different notions of self-distance through relaxing different notions of exact periodicity. An input S is then called approximately periodic if it exhibits a small self-distance (with respect to any one self-distance defined). We show that even though the different definitions of exact periodicity are equivalent, the resulting definitions of self-distance and approximate periodicity are not; we also show that these self-distances are constant approximations of each other. Afterwards, we present algorithms which distinguish between the two cases where S is exactly periodic and S is far from periodic with only a constant probability of error.
Our algorithms sample only O(√nlog2 n) (or O(√nlog4 n), depending on the self-distance) positions and use as much space. They can also find, using o(n) samples and space, the largest/smallest period, and/or all of the approximate periods of S. These algorithms can also be viewed as working on streaming inputs where each data item is seen once and in order, storing only a sublinear (O(√nlog2 n) or O(√nlog4 n)) size sample from which periodicities are identified.

References

[1]
Batu, T., Ergun, F., Kilian, J., Magen, A., Raskhodnikova, S., Rubinfeld, R., and Sami, R. 2003. A sublinear algorithm for weakly approximating edit distance. In Proceedings of the 35th Annual ACM Symposium on Theory of Computing (STOC). ACM, New York, 316--324.
[2]
Chaudhuri, S., Das, G., Datar, M., Motwani, R., and Narasayya, V. 2001. Overcoming limitations of sampling for aggregation queries. In Proceedings of the 17th Conference on Data Engineering (ICDE). IEEE Computer Society Press, Los Alamitos, CA, 534--542.
[3]
Czumaj, A., and Gasieniec, L. 2000. On the complexity of determining the period of a string. In Proceedings of the 11th Annual Symposium on Combinatorial Pattern Matching (CPM). 412--422.
[4]
Das, G., and Gunopoulos, D. 2000. Time series similarity measures. http://www.acm.org/sigs/sigkdd/kdd2000/Tutorial-Das.htm.
[5]
Fine, N. J., and Wilf, H. S. 1965. Uniqueness theorem for periodic functions. Proc. AMS 16, 109--114.
[6]
Gilbert, A., Guha, S., Indyk, P., Muthukrishnan, S., and Strauss, M. 2002. Near-optimal sparse fourier representations via sampling. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC). ACM, New York, 152--161.
[7]
Goldreich, O., Goldwasser, S., and Ron, D. 1998. Property testing and its connection to learning and approximation. J. ACM 45, 4, 653--750.
[8]
Indyk, P., Koudas, N., and Muthukrishnan, S. 2002. Identifying representative trends in massive time series data sets using sketches. In Proceedings of the 26th International Conference on Very Large Data Bases (VLDB). ACM, New York, 363--372.
[9]
Kollios, G. 2001. Time series indexing. http://www.cs.bu.edu/faculty/gkollios/ada01/LectNotes/tsindexing.ppt.
[10]
Lachish, O., and Newman, I. 2005. Testing periodicity. In Proceedings of the 9th International Workshop on Randomization and Computation (RANDOM). Lecture Notes in Computer Science, vol. 3624. Springer-Verlag, Berlin, Germany, 366--377.
[11]
Olken, F., and Rotem, D. 1993. Random sampling from databases: A survey. http://pueblo.lbl.gov/~olken/mendel/sampling/bibliography.htm.
[12]
Rubinfeld, R., and Sudan, M. 1996. Robust characterization of polynomials with applications to program testing. SIAM J. Comput. 25, 2, 252 --271.

Cited By

View all
  • (2020)Periodicity in Data Streams with WildcardsTheory of Computing Systems10.1007/s00224-019-09950-y64:1(177-197)Online publication date: 1-Jan-2020
  • (2018)Periodicity in Data Streams with WildcardsComputer Science – Theory and Applications10.1007/978-3-319-90530-3_9(90-105)Online publication date: 6-Jun-2018
  • (2011)Periodicity and cyclic shifts via linear sketchesProceedings of the 14th international workshop and 15th international conference on Approximation, randomization, and combinatorial optimization: algorithms and techniques10.5555/2033252.2033267(158-170)Online publication date: 17-Aug-2011
  • Show More Cited By

Index Terms

  1. Periodicity testing with sublinear samples and space

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Algorithms
    ACM Transactions on Algorithms  Volume 6, Issue 2
    March 2010
    373 pages
    ISSN:1549-6325
    EISSN:1549-6333
    DOI:10.1145/1721837
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 06 April 2010
    Accepted: 01 October 2009
    Revised: 01 June 2008
    Received: 01 September 2004
    Published in TALG Volume 6, Issue 2

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Combinatorial property testing
    2. periodicity

    Qualifiers

    • Research-article
    • Research
    • Refereed

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)3
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 03 Mar 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2020)Periodicity in Data Streams with WildcardsTheory of Computing Systems10.1007/s00224-019-09950-y64:1(177-197)Online publication date: 1-Jan-2020
    • (2018)Periodicity in Data Streams with WildcardsComputer Science – Theory and Applications10.1007/978-3-319-90530-3_9(90-105)Online publication date: 6-Jun-2018
    • (2011)Periodicity and cyclic shifts via linear sketchesProceedings of the 14th international workshop and 15th international conference on Approximation, randomization, and combinatorial optimization: algorithms and techniques10.5555/2033252.2033267(158-170)Online publication date: 17-Aug-2011
    • (2011)Periodicity and Cyclic Shifts via Linear SketchesApproximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques10.1007/978-3-642-22935-0_14(158-170)Online publication date: 2011

    View Options

    Login options

    Full Access

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media