skip to main content
10.1145/2746539.2746568acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
research-article

Clustered Integer 3SUM via Additive Combinatorics

Published:14 June 2015Publication History

ABSTRACT

We present a collection of new results on problems related to 3SUM, including: The first truly subquadratic algorithm for computing the (min,+) convolution for monotone increasing sequences with integer values bounded by O(n), solving 3SUM for monotone sets in 2D with integer coordinates bounded by O(n), and preprocessing a binary string for histogram indexing (also called jumbled indexing).

The running time is O(n(9+√177)/12, polylog,n)=O(n1.859) with randomization, or O(n1.864) deterministically. This greatly improves the previous n2/2Ω(√log n) time bound obtained from Williams' recent result on all-pairs shortest paths [STOC'14], and answers an open question raised by several researchers studying the histogram indexing problem. The first algorithm for histogram indexing for any constant alphabet size that achieves truly subquadratic preprocessing time and truly sublinear query time. A truly subquadratic algorithm for integer 3SUM in the case when the given set can be partitioned into n1-δ clusters each covered by an interval of length n, for any constant δ>0. An algorithm to preprocess any set of n integers so that subsequently 3SUM on any given subset can be solved in O(n13/7, polylog,n) time.

All these results are obtained by a surprising new technique, based on the Balog--Szemeredi--Gowers Theorem from additive combinatorics.

References

  1. Amir Abboud, Virginia Vassilevska Williams, and Oren Weimann. Consequences of faster alignment of sequences. In Proceedings of the 41st International Colloquium on Automata, Languages, and Programming (ICALP), Part I, pages 39--51, 2014.Google ScholarGoogle ScholarCross RefCross Ref
  2. Amihood Amir, Timothy M. Chan, Moshe Lewenstein, and Noa Lewenstein. On hardness of jumbled indexing. In Proceedings of the 41st International Colloquium on Automata, Languages, and Programming (ICALP), Part I, pages 114--125, 2014.Google ScholarGoogle ScholarCross RefCross Ref
  3. Amihood Amir, Oren Kapah, and Ely Porat. Deterministic length reduction: Fast convolution in sparse data and applications. In Proceedings of the 18th Annual Symposium on Combinatorial Pattern Matching (CPM), pages 183--194, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Antal Balog. Many additive quadruples. In Additive Combinatorics, volume 43 of CRM Proc. Lecture Notes, page 39--49. Amer. Math. Soc., 2007.Google ScholarGoogle ScholarCross RefCross Ref
  5. Antal Balog and Endre Szemerédi. A statistical theorem of set addition. Combinatorica, 14:263--268, 1994.Google ScholarGoogle ScholarCross RefCross Ref
  6. Nikhil Bansal and Ryan Williams. Regularity lemmas and combinatorial algorithms. Theory of Computing, 8(1):69--94, 2012.Google ScholarGoogle ScholarCross RefCross Ref
  7. Ilya Baran, Erik D. Demaine, and Mihai Patraşcu. Subquadratic algorithms for 3SUM. Algorithmica, 50(4):584--596, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Manuel Blum, Michael Luby, and Ronitt Rubinfeld. Self-testing/correcting with applications to numerical problems. J. Comput. Syst. Sci., 47(3):549--595, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Evan Borenstein and Ernie Croot. On a certain generalization of the Balog--Szemerédi-Gowers theorem. SIAM J. Discrete Math., 25(2):685--694, 2011.Google ScholarGoogle ScholarCross RefCross Ref
  10. David Bremner, Timothy M. Chan, Erik D. Demaine, Jeff Erickson, Ferran Hurtado, John Iacono, Stefan Langerman, Mihai Patraşcu, and Perouz Taslakian. Necklaces, convolutions, and X+Y. Algorithmica, 69(2):294--314, 2014.Google ScholarGoogle ScholarCross RefCross Ref
  11. Peter Burcsi, Ferdinando Cicalese, Gabriele Fici, and Zsuzsanna Lipták. On table arrangements, scrabble freaks, and jumbled pattern matching. In Proceedings of the 5th International Conference on Fun with Algorithms (FUN), pages 89--101, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Timothy M. Chan. More algorithms for all-pairs shortest paths in weighted graphs. SIAM J. Comput., 39(5):2075--2089, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Richard Cole and Ramesh Hariharan. Verifying candidate matches in sparse and wildcard matching. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing (STOC), pages 592--601, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. G. Freiman. Foundations of a structural theory of set addition. American Mathematical Society, Translations of Mathematical Monographs, 37, 1973.Google ScholarGoogle Scholar
  15. Anka Gajentaan and Mark H. Overmars. On a class of O(n^2) problems in computational geometry. Comput. Geom., 5:165--185, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. William Timothy Gowers. A new proof of Szemerédi's theorem. Geom. Funct. Anal., 11:465--588, 2001.Google ScholarGoogle ScholarCross RefCross Ref
  17. Allan Grønlund and Seth Pettie. Threesomes, degenerates, and love triangles. In Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS), 2014. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Yijie Han and Tadao Takaoka. An O(n^3 log log n/log^2 n) time algorithm for all pairs shortest paths. In Proceedings of the 13th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT), pages 131--141, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Zahra Jafargholi and Emanuele Viola. 3SUM, 3XOR, triangles. Electronic Colloquium on Computational Complexity (ECCC), 20:9, 2013.Google ScholarGoogle Scholar
  20. Tomasz Kociumaka, Jakub Radoszewski, and Wojciech Rytter. Efficient indexes for jumbled pattern matching with constant-sized alphabet. In Proceedings of the 21st Annual European Symposium on Algorithms (ESA), pages 625--636, 2013.Google ScholarGoogle ScholarCross RefCross Ref
  21. Tsvi Kopelowitz, Seth Pettie, and Ely Porat. 3SUM hardness in (dynamic) data structures. CoRR, abs/1407.6756, 2014.Google ScholarGoogle Scholar
  22. Shachar Lovett. Additive combinatorics and its applications in theoretical computer science (draft). 2013.Google ScholarGoogle Scholar
  23. Tanaeem M. Moosa and M. Sohel Rahman. Indexing permutations for binary strings. Inf. Process. Lett., 110(18--19):795--798, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Tanaeem M. Moosa and M. Sohel Rahman. Sub-quadratic time and linear space data structures for permutation matching in binary strings. J. Discrete Algorithms, 10:5--9, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Mihai Patraşcu. Towards polynomial lower bounds for dynamic problems. In Proceedings of the 42nd Annual ACM Symposium on Theory of Computing (STOC), pages 603--610, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Mihai Patraşcu and Ryan Williams. On the possibility of faster SAT algorithms. In Proceedings of the 21st Annual ACM--SIAM Symposium on Discrete Algorithms (SODA), pages 1065--1075, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Tomasz Schoen. New bounds in Balog--Szemerédi-Gowers Theorem, 2014. Combinatorica, to appear.Google ScholarGoogle Scholar
  28. Benny Sudakov, Endre Szemerédi, and Van Vu. On a question of Erdös and Moser. Duke Math. J., 129:129--155, 2005.Google ScholarGoogle ScholarCross RefCross Ref
  29. Terence Tao and Van Vu. Additive Combinatorics. Cambridge University Press, 2006.Google ScholarGoogle Scholar
  30. Virginia Vassilevska and Ryan Williams. Finding, minimizing, and counting weighted subgraphs. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing (STOC), pages 455--464, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. Emanuele Viola. Selected results in additive combinatorics: An exposition. In Theory of Computing Library, Graduate Surveys series, volume 3, pages 1--15. 2011.Google ScholarGoogle Scholar
  32. Ryan Williams. Faster all-pairs shortest paths via circuit complexity. In Proceedings of the 46th Annual ACM Symposium on Theory of Computing (STOC), pages 664--673, 2014. Google ScholarGoogle ScholarDigital LibraryDigital Library
  33. Uri Zwick. Exact and approximate distances in graphs--A survey. In Proceedings of the 9th Annual European Symposium on Algorithms (ESA), pages 33--48, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Clustered Integer 3SUM via Additive Combinatorics

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      STOC '15: Proceedings of the forty-seventh annual ACM symposium on Theory of Computing
      June 2015
      916 pages
      ISBN:9781450335362
      DOI:10.1145/2746539

      Copyright © 2015 ACM

      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 the author(s) 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: 14 June 2015

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      STOC '15 Paper Acceptance Rate93of347submissions,27%Overall Acceptance Rate1,469of4,586submissions,32%

      Upcoming Conference

      STOC '24
      56th Annual ACM Symposium on Theory of Computing (STOC 2024)
      June 24 - 28, 2024
      Vancouver , BC , Canada

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader