Abstract
We prove that some exact geometric pattern matching problems reduce in linear time to k -SUM when the pattern has a fixed size k. This holds in the real RAM model for searching for a similar copy of a set of \(k\ge 3\) points within a set of n points in the plane, and for searching for an affine image of a set of \(k\ge d+2\) points within a set of n points in d-space. As corollaries, we obtain improved real RAM algorithms and decision trees for the two problems. In particular, they can be solved by algebraic decision trees of near-linear height.
Similar content being viewed by others
References
Abboud, A., Vassilevska Williams, V., Yu, H.: Matching triangles and basing hardness on an extremely popular conjecture. SIAM J. Comput. 47(3), 1098–1122 (2018)
Ábrego, B.M., Elekes, G., Fernández-Merchant, S.: Structural results for planar sets with many similar subsets. Combinatorica 24(4), 541–554 (2004)
Ábrego, B.M., Fernández-Merchant, S.: On the maximum number of equilateral triangles. I. Discrete Comput. Geom. 23(1), 129–135 (2000)
Ábrego, B.M., Fernández-Merchant, S., Katz, D.J., Kolesnikov, L.: On the number of similar instances of a pattern in a finite set. Electron. J. Comb. 23(4), # 4.39 (2016)
Agarwal, P.K., Sharir, M.: The number of congruent simplices in a point set. Discrete Comput. Geom. 28(2), 123–150 (2002)
Aiger, D., Kedem, K.: Geometric pattern matching for point sets in the plane under similarity transformations. Inform. Process. Lett. 109(16), 935–940 (2009)
Ailon, N., Chazelle, B.: Lower bounds for linear degeneracy testing. J. ACM 52(2), 157–171 (2005)
Aronov, B., Ezra, E., Sharir, M.: Testing polynomials for vanishing on Cartesian products of planar point sets. In: 36th International Symposium on Computational Geometry (Zürich 2020). Leibniz Int. Proc. Inform., vol. 164, # 8. Leibniz-Zent. Inform., Wadern (2020)
Aronov, B., Ezra, E., Sharir, M.: Testing polynomials for vanishing on Cartesian products of planar point setss: collinearity testing and related problems (2020). arXiv:2003.09533
Barba, L., Cardinal, J., Iacono, J., Langerman, S., Ooms, A., Solomon, N.: Subquadratic algorithms for algebraic 3SUM. Discrete Comput. Geom. 61(4), 698–734 (2019)
Braß, P.: Combinatorial geometry problems in pattern recognition. Discrete Comput. Geom. 28(4), 495–510 (2002)
Brass, P., Pach, J.: Problems and results on geometric patterns. In: Graph Theory and Combinatorial Optimization. GERAD 25th Anniv. Ser., vol. 8, pp. 17–36. Springer, New York (2005)
Cardinal, J., Iacono, J., Ooms, A.: Solving \(k\)-SUM using few linear queries. In: 24th Annual European Symposium on Algorithms (Aarhus 2016). Leibniz Int. Proc. Inform., vol. 57, # 25. Leibniz-Zent. Inform., Wadern (2016)
Chan, T.M.: More logarithmic-factor speedups for 3SUM, (median,+)-convolution, and some geometric 3SUM-hard problems. In: 29th Annual ACM-SIAM Symposium on Discrete Algorithms (New Orleans 2018), pp. 881–897. SIAM, Philadelphia (2018)
Chew, L.P., Goodrich, M.T., Huttenlocher, D.P., Kedem, K., Kleinberg, J.M., Kravets, D.: Geometric pattern matching under Euclidean motion. Comput. Geom. 7(1–2), 113–124 (1997)
Devroye, L.: Non-Uniform Random Variate Generation. Springer, New York (1986)
Dudek, B., Gawrychowski, P., Starikovskaya, T.: All non-trivial variants of 3-LDT are equivalent. In: 52nd Annual ACM Symposium on Theory of Computing (Chicago 2020), pp. 974–981. ACM, New York (2020)
Elekes, G.; Erdős, P.: Similar configurations and pseudo grids. In: Intuitive Geometry (Szeged 1991). Colloq. Math. Soc. János Bolyai, vol. 63, pp. 85–104. North-Holland, Amsterdam (1994)
Ezra, E., Sharir, M.: A nearly quadratic bound for point-location in hyperplane arrangements, in the linear decision tree model. Discrete Comput. Geom. 61(4), 735–755 (2019)
Freund, A.: Improved subquadratic 3SUM. Algorithmica 77(2), 440–458 (2017)
Gavrilov, M., Indyk, P., Motwani, R., Venkatasubramanian, S.: Combinatorial and experimental methods for approximate point pattern matching. Algorithmica 38(1), 59–90 (2004)
Gold, O., Sharir, M.: Improved bounds for 3SUM, \(k\)-SUM, and linear degeneracy. In: 25th European Symposium on Algorithms (Vienna 2017). Leibniz Int. Proc. Inform., vol. 87, # 42. Leibniz-Zent. Inform., Wadern (2017)
Goodman, J.E., O’Rourke, J., Tóth, C.D. (eds.): Handbook of Discrete and Computational Geometry. CRC Press, Boca Raton (2017)
Goodrich, M.T., Mitchell, J.S.B., Orletsky, M.W.: Approximate geometric pattern matching under rigid motions. IEEE Trans. Pattern Anal. Mach. Intell. 21(4), 371–379 (1999)
Grønlund, A., Pettie, S.: Threesomes, degenerates, and love triangles. J. ACM 65(4), # 22 (2018)
Jafargholi, Z., Viola, E.: 3SUM, 3XOR, triangles. Algorithmica 74(1), 326–343 (2016)
Kane, D.M., Lovett, S., Moran, S.: Near-optimal linear decision trees for \(k\)-SUM and related problems. J. ACM 66(3), # 16 (2019)
Laczkovich, M., Ruzsa, I.Z.: The number of homothetic subsets. In: The Mathematics of Paul Erdős, vol. 2. Algorithms Combin., vol. 14, pp. 294–302. Springer, Berlin (1997)
Vassilevska Williams, V.: On some fine-grained questions in algorithms and complexity. In: International Congress of Mathematicians (Rio de Janeiro 2018), vol. 4. Invited Lectures, pp. 3447–3487. World Sci. Publ., Hackensack (2018)
Author information
Authors and Affiliations
Corresponding author
Additional information
Editor in Charge: Kenneth Clarkson
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Boris Aronov: Partially supported by NSF grant CCF-15-40656 and by grant 2014/170 from the US-Israel Binational Science Foundation. Work on this paper has been partially carried out while visiting ULB in November-December 2019, with support from ULB and F.R.S.-FNRS (Fonds National de la Recherche Scientifique).
Jean Cardinal: Supported by the F.R.S.-FNRS (Fonds National de la Recherche Scientifique) under CDR Grant J.0146.18.
Rights and permissions
About this article
Cite this article
Aronov, B., Cardinal, J. Geometric Pattern Matching Reduces to k -SUM. Discrete Comput Geom 68, 850–859 (2022). https://doi.org/10.1007/s00454-021-00324-1
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00454-021-00324-1