{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,9]],"date-time":"2026-07-09T06:01:23Z","timestamp":1783576883425,"version":"3.55.0"},"reference-count":46,"publisher":"Springer Science and Business Media LLC","issue":"6","license":[{"start":{"date-parts":[[2021,4,23]],"date-time":"2021-04-23T00:00:00Z","timestamp":1619136000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2021,4,23]],"date-time":"2021-04-23T00:00:00Z","timestamp":1619136000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/100006112","name":"Microsoft Research","doi-asserted-by":"publisher","award":["Gift"],"award-info":[{"award-number":["Gift"]}],"id":[{"id":"10.13039\/100006112","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100006734","name":"Princeton University","doi-asserted-by":"publisher","award":["Innovation Grant"],"award-info":[{"award-number":["Innovation Grant"]}],"id":[{"id":"10.13039\/100006734","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Distrib. Comput."],"published-print":{"date-parts":[[2021,12]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>We develop and analyze concurrent algorithms for the disjoint set union (\u201cunion-find\u201d ) problem in the shared memory, asynchronous multiprocessor model of computation, with CAS (compare and swap) or DCAS (double compare and swap) as the synchronization primitive. We give a deterministic bounded wait-free algorithm that uses DCAS and has a total work bound of <jats:inline-formula><jats:alternatives><jats:tex-math>$$O\\biggl ( m \\cdot \\left( \\log {\\left( \\frac{np}{m} + 1 \\right) } + \\alpha {\\left( n, \\frac{m}{np} \\right) } \\right) \\biggr )$$<\/jats:tex-math><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                  <mml:mrow>\n                    <mml:mi>O<\/mml:mi>\n                    <mml:mrow>\n                      <mml:mo>(<\/mml:mo>\n                    <\/mml:mrow>\n                    <mml:mi>m<\/mml:mi>\n                    <mml:mo>\u00b7<\/mml:mo>\n                    <mml:mfenced>\n                      <mml:mo>log<\/mml:mo>\n                      <mml:mfenced>\n                        <mml:mfrac>\n                          <mml:mrow>\n                            <mml:mi>np<\/mml:mi>\n                          <\/mml:mrow>\n                          <mml:mi>m<\/mml:mi>\n                        <\/mml:mfrac>\n                        <mml:mo>+<\/mml:mo>\n                        <mml:mn>1<\/mml:mn>\n                      <\/mml:mfenced>\n                      <mml:mo>+<\/mml:mo>\n                      <mml:mi>\u03b1<\/mml:mi>\n                      <mml:mfenced>\n                        <mml:mi>n<\/mml:mi>\n                        <mml:mo>,<\/mml:mo>\n                        <mml:mfrac>\n                          <mml:mi>m<\/mml:mi>\n                          <mml:mrow>\n                            <mml:mi>np<\/mml:mi>\n                          <\/mml:mrow>\n                        <\/mml:mfrac>\n                      <\/mml:mfenced>\n                    <\/mml:mfenced>\n                    <mml:mrow>\n                      <mml:mo>)<\/mml:mo>\n                    <\/mml:mrow>\n                  <\/mml:mrow>\n                <\/mml:math><\/jats:alternatives><\/jats:inline-formula> for a problem with <jats:italic>n<\/jats:italic> elements and <jats:italic>m<\/jats:italic> operations solved by <jats:italic>p<\/jats:italic> processes, where <jats:inline-formula><jats:alternatives><jats:tex-math>$$\\alpha $$<\/jats:tex-math><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                  <mml:mi>\u03b1<\/mml:mi>\n                <\/mml:math><\/jats:alternatives><\/jats:inline-formula> is a functional inverse of Ackermann\u2019s function. We give two randomized algorithms that use only CAS and have the same work bound in expectation. The analysis of the second randomized algorithm is valid even if the scheduler is adversarial. Our DCAS and randomized algorithms take <jats:inline-formula><jats:alternatives><jats:tex-math>$$O(\\log n)$$<\/jats:tex-math><mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                  <mml:mrow>\n                    <mml:mi>O<\/mml:mi>\n                    <mml:mo>(<\/mml:mo>\n                    <mml:mo>log<\/mml:mo>\n                    <mml:mi>n<\/mml:mi>\n                    <mml:mo>)<\/mml:mo>\n                  <\/mml:mrow>\n                <\/mml:math><\/jats:alternatives><\/jats:inline-formula> steps per operation, worst-case for the DCAS algorithm, high-probability for the randomized algorithms. Our work and step bounds grow only logarithmically with <jats:italic>p<\/jats:italic>, making our algorithms truly scalable. We prove that for a class of symmetric algorithms that includes ours, no better step or work bound is possible. Our work is theoretical, but\u00a0Alistarh et al (In search of the fastest concurrent union-find algorithm, 2019), Dhulipala et al (A framework for static and incremental parallel graph connectivity algorithms, 2020) and Hong et al (Exploring the design space of static and incremental graph connectivity algorithms on gpus, 2020) have implemented some of our algorithms on CPUs and GPUs and experimented with them. On many realistic data sets, our algorithms run as fast or faster than all others.<\/jats:p>","DOI":"10.1007\/s00446-020-00388-x","type":"journal-article","created":{"date-parts":[[2021,4,23]],"date-time":"2021-04-23T08:11:28Z","timestamp":1619165488000},"page":"413-436","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":15,"title":["Concurrent disjoint set union"],"prefix":"10.1007","volume":"34","author":[{"given":"Siddhartha V.","family":"Jayanti","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Robert E.","family":"Tarjan","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2021,4,23]]},"reference":[{"key":"388_CR1","unstructured":"Alistarh, D., Fedorov, A., Koval, N.: In search of the fastest concurrent union-find algorithm (2019)"},{"key":"388_CR2","doi-asserted-by":"crossref","unstructured":"Aghazadeh, Z., Golab, W., Woelfel, P.: Making objects writable. In: Proceedings of the 2014 ACM Symposium on Principles of Distributed Computing, PODC \u201914, pp. 385\u2013395. Association for Computing Machinery, New York","DOI":"10.1145\/2611462.2611483"},{"key":"388_CR3","unstructured":"Anderson, R.J., Woll, H.: Wait-free parallel algorithms for the union-find problem. In: Proceedings of the 23rd Annual ACM Symposium on Theory of Computing, May 5-8, 1991, New Orleans, Louisiana, USA, pp. 370\u2013380 (1991)"},{"key":"388_CR4","unstructured":"Bloemen, V.: On-The-Fly Parallel Decomposition of Strongly Connected Components. Master\u2019s thesis, University of Twente (2015)"},{"key":"388_CR5","unstructured":"Blum, N.: On the single-operation worst-case time complexity of the disjoint set union problem. In: Annual Symposium on Theoretical Aspects of Computer Science, STACS 1985 (1985)"},{"key":"388_CR6","doi-asserted-by":"crossref","unstructured":"Bloemen, V., Laarman, A., van de Pol, J.: Multi-core on-the-fly scc decomposition. In: Proceedings of the 21st ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, PPoPP \u201916, page to appear (2016)","DOI":"10.1145\/2851141.2851161"},{"key":"388_CR7","doi-asserted-by":"crossref","unstructured":"Chor, B., Israeli, A., Li, M.: On processor coordination using asynchronous hardware. In: Proceedings of the Sixth Annual ACM Symposium on Principles of Distributed Computing, PODC \u201987, pp. 86\u201397. Association for Computing Machinery, New York (1987)","DOI":"10.1145\/41840.41848"},{"key":"388_CR8","doi-asserted-by":"crossref","unstructured":"Chung, F., Lu, L.: Concentration Inequalities and Martingale Inequalities: A Survey, pp. 79\u2013127. Internet Mathematics (2005)","DOI":"10.1080\/15427951.2006.10129115"},{"issue":"1","key":"388_CR9","doi-asserted-by":"publisher","first-page":"32","DOI":"10.1016\/S0019-9958(86)80023-7","volume":"70","author":"R Cole","year":"1986","unstructured":"Cole, R., Vishkin, U.: Deterministic coin tossing with applications to optimal parallel list ranking. Inf. Control 70(1), 32\u201353 (1986)","journal-title":"Inf. Control"},{"key":"388_CR10","doi-asserted-by":"crossref","unstructured":"Dhulipala, L., Hong, C., Shun, J.: Connectit: a framework for static and incremental parallel graph connectivity algorithms (2020)","DOI":"10.14778\/3436905.3436923"},{"key":"388_CR11","doi-asserted-by":"crossref","unstructured":"Ellen, F., Woelfel, P.: An optimal implementation of fetch-and-increment. In: Proceedings of the 27th International Symposium on Distributed Computing - Volume 8205, DISC 2013, pp. 284\u2013298. Springer, New York (2013)","DOI":"10.1007\/978-3-642-41527-2_20"},{"key":"388_CR12","doi-asserted-by":"publisher","first-page":"2","DOI":"10.1016\/j.jda.2013.10.003","volume":"23","author":"W Fraczak","year":"2013","unstructured":"Fraczak, W., Georgiadis, L., Miller, A., Tarjan, R.E.: Finding dominators via disjoint set union. J. Discrete Algor. 23, 2\u201320 (2013)","journal-title":"J. Discrete Algor."},{"key":"388_CR13","doi-asserted-by":"crossref","unstructured":"Fischer, M. J.: Efficiency of equivalence algorithms. In: Complexity of Computer Computations, pp. 153\u2013167. Springer, New York (1972)","DOI":"10.1007\/978-1-4684-2001-2_14"},{"key":"388_CR14","unstructured":"Fredman, M.L., Saks, M.E.: The cell probe complexity of dynamic data structures. In: Proceedings of the 21st Annual ACM Symposium on Theory of Computing, May 14\u201317, 1989, Seattle, Washigton, USA, pp. 345\u2013354 (1989)"},{"issue":"5","key":"388_CR15","doi-asserted-by":"publisher","first-page":"301","DOI":"10.1145\/364099.364331","volume":"7","author":"BA Galler","year":"1964","unstructured":"Galler, B.A., Fisher, M.J.: An improved equivalence algorithm. Commun. ACM 7(5), 301\u2013303 (1964)","journal-title":"Commun. ACM"},{"key":"388_CR16","unstructured":"Goel, A., Khanna, S., Larkin, D.H., Tarjan, R.E.: Disjoint set union with randomized linking. In: Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5\u20137, 2014, pp. 1005\u20131017 (2014)"},{"key":"388_CR17","doi-asserted-by":"crossref","unstructured":"Hong, C., Dhulipala, L., Shun, J.: Exploring the design space of static and incremental graph connectivity algorithms on gpus. In: Proceedings of the ACM International Conference on Parallel Architectures and Compilation Techniques (2020)","DOI":"10.1145\/3410463.3414657"},{"issue":"1","key":"388_CR18","doi-asserted-by":"publisher","first-page":"124","DOI":"10.1145\/114005.102808","volume":"13","author":"M Herlihy","year":"1991","unstructured":"Herlihy, M.: Wait-free synchronization. ACM Trans. Program. Lang. Syst. 13(1), 124\u2013149 (1991)","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"388_CR19","doi-asserted-by":"crossref","unstructured":"Harris, T.L., Fraser, K., Pratt, I.A.: A practical multi-word compare-and-swap operation. In: Proceedings of the 16th International Conference on Distributed Computing, DISC \u201902, pp. 265\u2013279, London, UK. Springer, New York (2002)","DOI":"10.1007\/3-540-36108-1_18"},{"key":"388_CR20","doi-asserted-by":"crossref","unstructured":"Herlihy, M., Eliot, J.,\u00a0Moss, B.: Transactional memory:architectural support for lock-free data structures. SIGARCH Comput. Archit. News, 21(2), 289\u2013300 (1993)","DOI":"10.1145\/173682.165164"},{"key":"388_CR21","volume-title":"The Art of Multiprocessor Programming","author":"M Herlihy","year":"2008","unstructured":"Herlihy, M., Shavit, N.: The Art of Multiprocessor Programming. Morgan Kaufmann Publishers Inc., San Francisco (2008)"},{"issue":"4","key":"388_CR22","doi-asserted-by":"publisher","first-page":"294","DOI":"10.1137\/0202024","volume":"2","author":"JE Hopcroft","year":"1973","unstructured":"Hopcroft, J.E., Ullman, J.D.: Set merging algorithms. SIAM J. Comput. 2(4), 294\u2013303 (1973)","journal-title":"SIAM J. Comput."},{"issue":"3","key":"388_CR23","doi-asserted-by":"publisher","first-page":"463","DOI":"10.1145\/78969.78972","volume":"12","author":"MP Herlihy","year":"1990","unstructured":"Herlihy, M.P., Wing, J.M.: Linearizability: a correctness condition for concurrent objects. ACM Trans. Program. Lang. Syst. 12(3), 463\u2013492 (1990)","journal-title":"ACM Trans. Program. Lang. Syst."},{"issue":"1","key":"388_CR24","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1006\/jagm.2000.1146","volume":"39","author":"S Halperin","year":"2001","unstructured":"Halperin, S., Zwick, U.: Optimal randomized erew pram algorithms for finding spanning forests. J. Algor. 39(1), 1\u201346 (2001)","journal-title":"J. Algor."},{"key":"388_CR25","doi-asserted-by":"crossref","unstructured":"Jayanti, P.: A complete and constant time wait-free implementation of CAS from LL\/SC and vice versa. In: Distributed Computing, 12th International Symposium, DISC \u201998, Andros, Greece, September 24\u201326, 1998, Proceedings, pp. 216\u2013230 (1998)","DOI":"10.1007\/BFb0056485"},{"key":"388_CR26","doi-asserted-by":"crossref","unstructured":"Jayanti, P.: A time complexity lower bound for randomized implementations of some shared objects. In: Proceedings of the Seventeenth Annual ACM Symposium on Principles of Distributed Computing, PODC \u201998, pp. 201\u2013210. ACM, New York (1998)","DOI":"10.1145\/277697.277735"},{"issue":"2","key":"388_CR27","doi-asserted-by":"publisher","first-page":"227","DOI":"10.1006\/jcss.1997.1291","volume":"54","author":"DB Johnson","year":"1997","unstructured":"Johnson, D.B., Metaxas, P.: Connected components ino (log3\/2 n) parallel time for the crew pram. J Comput Syst Sci 54(2), 227\u2013242 (1997)","journal-title":"J Comput Syst Sci"},{"key":"388_CR28","doi-asserted-by":"crossref","unstructured":"Jayanti, S.V., Tarjan, R.E.: A randomized concurrent algorithm for disjoint set union. In: Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing, PODC \u201916, pp. 75\u201382. ACM, New York (2016)","DOI":"10.1145\/2933057.2933108"},{"key":"388_CR29","doi-asserted-by":"crossref","unstructured":"Jayanti, S., Tarjan, R.E., Boix-Adser\u00e0, E.: Randomized concurrent set union and generalized wake-up. In: Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC \u201919, pp. 187\u2013196. Association for Computing Machinery, New York (2019)","DOI":"10.1145\/3293611.3331593"},{"key":"388_CR30","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-4400-4","volume-title":"The Design and Analysis of Algorithms","author":"DC Kozen","year":"1992","unstructured":"Kozen, D.C.: The Design and Analysis of Algorithms. Springer, Berlin, Heidelberg (1992)"},{"issue":"1","key":"388_CR31","doi-asserted-by":"publisher","first-page":"48","DOI":"10.1090\/S0002-9939-1956-0078686-7","volume":"7","author":"JB Kruskal","year":"1956","unstructured":"Kruskal, J.B.: On the shortest spanning subtree of a graph and the traveling salesman problem. Proc. Am. Math. Soc. 7(1), 48\u201350 (1956)","journal-title":"Proc. Am. Math. Soc."},{"issue":"2 supplement","key":"388_CR32","doi-asserted-by":"publisher","first-page":"13","DOI":"10.1145\/773039.773041","volume":"38","author":"C Lattner","year":"2002","unstructured":"Lattner, C., Adve, V.: Automatic pool allocation for disjoint data structures. SIGPLAN Not. 38(2 supplement), 13\u201324 (2002)","journal-title":"SIGPLAN Not."},{"key":"388_CR33","unstructured":"Liu, S., Tarjan, R.E.: Simple concurrent labeling algorithms for connected components. In: Fineman, J.T., Mitzenmacher, M. (Eds.) 2nd Symposium on Simplicity in Algorithms (SOSA 2019), Volume 69 of OpenAccess Series in Informatics (OASIcs), pp. 3:1\u20133:20. Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, Dagstuhl (2018)"},{"issue":"6","key":"388_CR34","doi-asserted-by":"publisher","first-page":"491","DOI":"10.1109\/TPDS.2004.8","volume":"15","author":"MM Michael","year":"2004","unstructured":"Michael, M.M.: Hazard pointers: safe memory reclamation for lock-free objects. IEEE Trans. Parallel Distrib. Syst. 15(6), 491\u2013504 (2004)","journal-title":"IEEE Trans. Parallel Distrib. Syst."},{"key":"388_CR35","unstructured":"Motorolla. Programmer\u2019s reference manual. https:\/\/www.nxp.com\/files-static\/archives\/doc\/ref_manual\/M68000PRM.pdf. Accessed 07 Sept 2018"},{"issue":"2","key":"388_CR36","doi-asserted-by":"publisher","first-page":"229","DOI":"10.1016\/0020-0190(85)90024-9","volume":"1","author":"J Reif","year":"1985","unstructured":"Reif, J.: Depth first search is inherently sequential. Inform. Process. Lett. 1(2), 229\u2013234 (1985)","journal-title":"Inform. Process. Lett."},{"key":"388_CR37","doi-asserted-by":"crossref","unstructured":"Rastogi, V., Machanavajjhala, A., Chitnis, L., Das Sarma, A.: Finding connected components on map-reduce in logarithmic rounds. In: Proceedings - International Conference on Data Engineering 03 (2012)","DOI":"10.1109\/ICDE.2013.6544813"},{"issue":"1","key":"388_CR38","doi-asserted-by":"publisher","first-page":"67","DOI":"10.1016\/0898-1221(81)90008-0","volume":"7","author":"M Sharir","year":"1981","unstructured":"Sharir, M.: A strong-connectivity algorithm and its applications in data flow analysis. Comput. Math. Appl. 7(1), 67\u201372 (1981)","journal-title":"Comput. Math. Appl."},{"issue":"1","key":"388_CR39","doi-asserted-by":"publisher","first-page":"57","DOI":"10.1016\/0196-6774(82)90008-6","volume":"3","author":"Y Shiloach","year":"1982","unstructured":"Shiloach, Y., Vishkin, U.: An o(logn) parallel connectivity algorithm. J. Algor. 3(1), 57\u201367 (1982)","journal-title":"J. Algor."},{"key":"388_CR40","volume-title":"Algorithms","author":"R Sedgewick","year":"2011","unstructured":"Sedgewick, R., Wayne, K.: Algorithms, 4th edn. Addison-Wesley, London (2011)","edition":"4"},{"key":"388_CR41","doi-asserted-by":"crossref","unstructured":"Tarjan, R.: Depth first search and linear graph algorithms. Siam J. Comput. 1(2), (1972)","DOI":"10.1137\/0201010"},{"key":"388_CR42","doi-asserted-by":"crossref","unstructured":"Tarjan, R.: Testing flow graph reducibility. In: Proceedings of the Fifth Annual ACM Symposium on Theory of Computing, pp. 96\u2013107 (1973)","DOI":"10.1145\/800125.804040"},{"issue":"1","key":"388_CR43","doi-asserted-by":"publisher","first-page":"62","DOI":"10.1137\/0203006","volume":"3","author":"R Tarjan","year":"1974","unstructured":"Tarjan, R.: Finding dominators in directed graphs. SIAM J. Comput. 3(1), 62\u201389 (1974)","journal-title":"SIAM J. Comput."},{"issue":"2","key":"388_CR44","doi-asserted-by":"publisher","first-page":"215","DOI":"10.1145\/321879.321884","volume":"22","author":"Robert Endre Tarjan","year":"1975","unstructured":"Robert Endre Tarjan: Efficiency of a good but not linear set union algorithm. J. ACM 22(2), 215\u2013225 (1975)","journal-title":"J. ACM"},{"issue":"2","key":"388_CR45","doi-asserted-by":"publisher","first-page":"245","DOI":"10.1145\/62.2160","volume":"31","author":"RE Tarjan","year":"1984","unstructured":"Tarjan, R.E., van Leeuwen, J.: Worst-case analysis of set union algorithms. J. ACM 31(2), 245\u2013281 (1984)","journal-title":"J. ACM"},{"key":"388_CR46","doi-asserted-by":"crossref","unstructured":"Wolper, P.: Lectures on formal methods and performance analysis. In: Brinksma, H., Holger, K., Joost-Pieter (Eds.) Lectures on Formal Methods and Performance Analysis. Chapter Constructing Automata from Temporal Logic Formulas: A Tutorial, pp. 261\u2013277. Springer, New York (2002)","DOI":"10.1007\/3-540-44667-2_7"}],"container-title":["Distributed Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s00446-020-00388-x.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s00446-020-00388-x\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s00446-020-00388-x.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2021,11,17]],"date-time":"2021-11-17T10:03:28Z","timestamp":1637143408000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s00446-020-00388-x"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,4,23]]},"references-count":46,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2021,12]]}},"alternative-id":["388"],"URL":"https:\/\/doi.org\/10.1007\/s00446-020-00388-x","relation":{},"ISSN":["0178-2770","1432-0452"],"issn-type":[{"value":"0178-2770","type":"print"},{"value":"1432-0452","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,4,23]]},"assertion":[{"value":"14 November 2016","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"22 December 2020","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"23 April 2021","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}}]}}