{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T19:36:19Z","timestamp":1787340979714,"version":"build-2736575974"},"reference-count":36,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"6","funder":[{"DOI":"10.13039\/501100001804","name":"Canada Research Chairs","doi-asserted-by":"publisher","id":[{"id":"10.13039\/501100001804","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000038","name":"Natural Sciences and Engineering Research Council of Canada","doi-asserted-by":"publisher","id":[{"id":"10.13039\/501100000038","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2025,12,31]]},"abstract":"<jats:p>Abstract.<\/jats:p>\n                  <jats:p>We investigate the complexity of solving stable or perturbation-resilient instances of [Formula: see text]-means and [Formula: see text]-median clustering in fixed-dimensional Euclidean metrics (or more generally doubling metrics). The notion of stable or perturbation-resilient instances was introduced by Bilu and Linial [ Are stable instances easy?, 2010] and Awasthi, Blum, and Sheffet [ Stability yields a PTAS for k-median and k-means clustering, IEEE Computer Society, Washington, DC, 2010]. In our context, we say a [Formula: see text]-means instance is [Formula: see text]-stable if there is a unique optimum solution which remains unchanged if distances are (nonuniformly) stretched by a factor of at most [Formula: see text]. Stable clustering instances have been studied to explain why heuristics such as Lloyd\u2019s algorithm perform well in practice. In this work we show that for any fixed [Formula: see text], [Formula: see text]-stable instances of [Formula: see text]-means in doubling metrics, which include fixed-dimensional Euclidean metrics, can be solved in polynomial time. More precisely, we show a natural multiswap local-search algorithm in fact finds the optimum solution for [Formula: see text]-stable instances of [Formula: see text]-means and [Formula: see text]-median in a polynomial number of iterations. We complement this result by showing that it is essentially tight: when the dimension [Formula: see text] is part of the input there is a fixed [Formula: see text] such that there is not even a PTAS for [Formula: see text]-stable [Formula: see text]-means in [Formula: see text] with [Formula: see text] unless NP = RP. To do this, we consider a robust property of CSPs: call an instance stable if there is a unique optimum solution [Formula: see text] and for any other solution [Formula: see text], the number of unsatisfied clauses is proportional to the Hamming distance between [Formula: see text] and [Formula: see text]. Dinur, Goldreich, and Gur have already shown stable QSAT is hard to approximate for some constant [Formula: see text] [ 20 ]. Recently, Paradise [ Comput. Complexity, 30 (2021), 1] extended this to the setting with bounded variable occurrence. More specifically, this implies that stable QSAT with bounded variable occurrence is APX-hard. Given this, we consider \u201cstability-preserving\u201d reductions to prove our hardness for stable [Formula: see text]-means. Such reductions seem to be more fragile and intricate than standard [Formula: see text]-reductions and may be of further use to demonstrate other stable optimization problems are hard to solve.<\/jats:p>","DOI":"10.1137\/24m1635570","type":"journal-article","created":{"date-parts":[[2025,12,2]],"date-time":"2025-12-02T08:27:56Z","timestamp":1764664076000},"page":"1456-1488","source":"Crossref","is-referenced-by-count":0,"title":["Exact Algorithms and Lower Bounds for Stable Instances of Euclidean \\(\\boldsymbol{k}\\)-\n                    <scp>means<\/scp>"],"prefix":"10.1137","volume":"54","author":[{"given":"Zachary","family":"Friggstad","sequence":"first","affiliation":[{"name":"Department of Computing Science, University of Alberta, Edmonton, AB, T6G2E8, Canada."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kamyar","family":"Khodamoradi","sequence":"additional","affiliation":[{"name":"Department of Computer Science, University of Regina, Regina, SK, S4S 0A2, Canada."}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7650-2045","authenticated-orcid":true,"given":"Mohammad R.","family":"Salavatipour","sequence":"additional","affiliation":[{"name":"Department of Computing Science, University of Alberta, Edmonton, AB, T6G2E8, Canada."}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2025,12,2]]},"reference":[{"key":"ref1","doi-asserted-by":"crossref","unstructured":"S. Ahmadian, A. Norouzi-Fard, O. Svensson, and J. Ward, Better guarantees for k-means and Euclidean k-median by primal-dual algorithms, in Proceedings of the 58th Annual Symposium on Foundations of Computer Science, FOCS, 2017, pp. 61\u201372.","DOI":"10.1109\/FOCS.2017.15"},{"key":"ref2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ejor.2006.12.063"},{"key":"ref3","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-009-5103-0"},{"key":"ref4","doi-asserted-by":"publisher","DOI":"10.1145\/3055399.3055487"},{"key":"ref5","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539702416402"},{"key":"ref6","doi-asserted-by":"crossref","unstructured":"P. Awasthi, A. Blum, and O. Sheffet, Stability yields a PTAS for k-median and k-means clustering, in Proceedings of the 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, FOCS \u201910, IEEE Computer Society, Washington, DC, 2010, pp. 309\u2013318, https:\/\/doi.org\/10.1109\/FOCS.2010.36.","DOI":"10.1109\/FOCS.2010.36"},{"key":"ref7","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2011.10.006"},{"key":"ref8","unstructured":"P. Awasthi, M. Charikar, R. Krishnaswamy, and A. K. Sinop, The hardness of approximation of Euclidean K-means, in Proceedings of 31st International Symposium on Computational Geometry (SoCG \u201915), Leibniz International Proceedings in Informatics (LIPIcs), 2015, pp. 754\u2013767."},{"key":"ref9","doi-asserted-by":"publisher","DOI":"10.1137\/140981575"},{"key":"ref10","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611973068.116"},{"key":"ref11","first-page":"68:1","volume-title":"43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, Rome","author":"Balcan M.-F.","year":"2016"},{"key":"ref12","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2014.09.025"},{"key":"ref13","first-page":"526","volume-title":"30th International Symposium on Theoretical Aspects of Computer Science, STACS 2013","author":"Bilu Y.","year":"2013"},{"key":"ref14","first-page":"332","volume-title":"Innovations in Computer Science","author":"Bilu Y.","year":"2010"},{"key":"ref15","doi-asserted-by":"publisher","DOI":"10.1017\/S0963548312000193"},{"key":"ref16","doi-asserted-by":"crossref","unstructured":"V. Cohen-Addad and K. C. S., Inapproximability of clustering in Lp metrics, in 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), 2019, pp. 519\u2013539. https:\/\/doi.org\/10.1109\/FOCS.2019.00040.","DOI":"10.1109\/FOCS.2019.00040"},{"key":"ref17","doi-asserted-by":"crossref","unstructured":"V. Cohen-Addad, K. C. C. S., and E. Lee, Johnson Coverage Hypothesis: Inapproximability of \\(k\\)-means and \\(k\\)-median in \\(\\ell_p\\)-metrics, in Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), SIAM, Philadelphia, ACM, New York, 2022, pp. 1493\u20131530, https:\/\/doi.org\/10.1137\/1.9781611977073.63.","DOI":"10.1137\/1.9781611977073.63"},{"key":"ref18","doi-asserted-by":"crossref","unstructured":"V. Cohen-Addad, P. N. Klein, and C. Mathieu, Local search yields approximation schemes for k-means and k-median in Euclidean and minor-free metrics, in IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), 2016, pp. 353\u2013364, https:\/\/doi.org\/10.1109\/FOCS.2016.46.","DOI":"10.1109\/FOCS.2016.46"},{"key":"ref19","doi-asserted-by":"crossref","unstructured":"V. Cohen-Addad and C. Schwiegelshohn, On the local structure of stable clustering instances, in 58th IEEE Annual Symposium on Foundations of Computer Science (FOCS), Berkeley, CA, 2017, pp. 49\u201360, https:\/\/doi.org\/10.1109\/FOCS.2017.14.","DOI":"10.1109\/FOCS.2017.14"},{"key":"ref20","series-title":"LIPIcs. Leibniz Int. Proc. Inform. 124","volume-title":"10th Innovations in Theoretical Computer Science","author":"Dinur I.","year":"2019"},{"key":"ref21","doi-asserted-by":"publisher","DOI":"10.1023\/B:MACH.0000033113.59016.96"},{"key":"ref22","doi-asserted-by":"crossref","unstructured":"Z. Friggstad, K. Khodamoradi, and M. R. Salavatipour, Exact algorithms and lower bounds for stable instances of Euclidean k-means, in Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), T. M. Chan, ed. SIAM, Philadelphia, ACM, New York, 2019, 2958\u20132972, https:\/\/doi.org\/10.1137\/1.9781611975482.183.","DOI":"10.1137\/1.9781611975482.183"},{"key":"ref23","doi-asserted-by":"crossref","unstructured":"Z. Friggstad, M. Rezapour, and M. R. Salavatipour, Local search yields a PTAS for k-means in doubling metrics, in IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), 2016, pp. 365\u2013374. https:\/\/doi.org\/10.1109\/FOCS.2016.47.","DOI":"10.1109\/FOCS.2016.47"},{"key":"ref24","doi-asserted-by":"publisher","DOI":"10.1137\/17M1127181"},{"key":"ref25","series-title":"Ser. Books Math. Sci.","volume-title":"Computers and Intractability: A Guide to the Theory of NP-Completeness","author":"Garey M. R.","year":"1979","edition":"1"},{"key":"ref26","doi-asserted-by":"publisher","DOI":"10.1016\/j.comgeo.2004.03.003"},{"key":"ref27","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2016.11.009"},{"key":"ref28","doi-asserted-by":"crossref","unstructured":"M. Mahajan, P. Nimbhorkar, and K. Varadarajan, The planar k-means problem is NP-hard, in Proceedings of the 3rd International Workshop on Algorithms and Computation (WALCOM \u201909), Springer-Verlag, 2009, pp. 274\u2013285.","DOI":"10.1007\/978-3-642-00202-1_24"},{"key":"ref29","doi-asserted-by":"crossref","unstructured":"K. Makarychev, Y. Makarychev, and A. Vijayaraghavan, Bilu\u2013Linial stable instances of Max Cut and Minimum Multiway Cut, in Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA \u201914), SIAM, Philadelphia, ACM, New York,\u00a0 2014, pp. 890\u2013906, https:\/\/doi.org\/10.1137\/1.9781611973402.67.","DOI":"10.1137\/1.9781611973402.67"},{"key":"ref30","doi-asserted-by":"publisher","DOI":"10.1007\/s004540010019"},{"key":"ref31","doi-asserted-by":"publisher","DOI":"10.1145\/2395116.2395117"},{"key":"ref32","doi-asserted-by":"publisher","DOI":"10.1007\/s00037-020-00199-3"},{"key":"ref33","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(86)90135-0"},{"key":"ref34","unstructured":"A. Vattani, The Hardness of k-Means Clustering in the Plane, manuscript, 2009."},{"key":"ref35","volume-title":"Approximation Algorithms","author":"Vazirani V. V.","year":"2001"},{"key":"ref36","unstructured":"A. Vijayaraghavan, A. Dutta, and A. Wang, Clustering stable instances of Euclidean k-means, in Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, Long Beach, CA, 2017, pp. 6503\u20136512; available online at http:\/\/papers.nips.cc\/paper\/7228-clustering-stable-instances-of-euclidean-k-means."}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/24M1635570","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:59:17Z","timestamp":1787338757000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/24M1635570"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,12,2]]},"references-count":36,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2025,12,31]]}},"alternative-id":["10.1137\/24M1635570"],"URL":"https:\/\/doi.org\/10.1137\/24m1635570","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,12,2]]}}}