{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,20]],"date-time":"2026-08-20T14:35:36Z","timestamp":1787236536364,"version":"build-2736575974"},"reference-count":80,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"3","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM Rev."],"published-print":{"date-parts":[[2021,1]]},"abstract":"<jats:p>We present a randomized method for computing the min-plus product (a.k.a. tropical product) of two $n \\times n$ matrices, yielding a faster algorithm for solving the all-pairs shortest path problem (APSP) in dense $n$-node directed graphs with arbitrary edge weights. In the real random-access machine model, where additions and comparisons of reals are unit cost (but all other operations have logarithmic cost), the algorithm runs in time $\\frac{n^3}{2^{\\Omega(\\log n)^{1\/2}}}$ and is correct with high probability. On the word random-access machine which permits constant-time operations on $\\log(n)$-bit words, the algorithm runs in $n^3\/2^{\\Omega(\\log n)^{1\/2}} + n^{2+o(1)}\\log(nM)$ time on graphs with edge weights in $([0,M] \\cap \\mathbb{Z})\\cup\\{\\infty\\}$. Prior algorithms needed either $\\Theta(n^3\/\\log^c n)$ time for various $c \\leq 2$, or $\\Theta(M^{\\alpha}n^{\\beta})$ time for various $\\alpha &gt; 0$ and $\\beta &gt; 2$. Our algorithm applies a tool from circuit complexity, namely, the Razborov--Smolensky polynomials for approximately representing ${AC}^0[p]$ circuits, to efficiently reduce a matrix product over the min-plus algebra to a relatively small number of rectangular matrix products over $\\mathbb{F}_2$. Each rectangular matrix product can be computed using a particularly efficient method due to Coppersmith. We also give a deterministic version of the algorithm running in $n^3\/2^{\\log^{\\delta} n}$ time for some $\\delta &gt; 0$, which utilizes the Yao--Beigel--Tarui translation of ${AC}^0[m]$ circuits into \u201cnice\u201d depth-two circuits.<\/jats:p>","DOI":"10.1137\/21m1418654","type":"journal-article","created":{"date-parts":[[2021,8,5]],"date-time":"2021-08-05T14:24:15Z","timestamp":1628173455000},"page":"559-582","source":"Crossref","is-referenced-by-count":4,"title":["From Circuit Complexity to Faster All-Pairs Shortest Paths"],"prefix":"10.1137","volume":"63","author":[{"given":"R. Ryan","family":"Williams","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2021,8,5]]},"reference":[{"key":"atypb1","doi-asserted-by":"crossref","unstructured":"J. Alman, T. M. Chan, and R. R. Williams,\n                      Polynomial representations of threshold functions and algorithmic applications\n                      , in Proceedings of the 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), 2016, pp. 467-476.","DOI":"10.1109\/FOCS.2016.57"},{"key":"atypb2","doi-asserted-by":"crossref","unstructured":"J. Alman, T. M. Chan, and R. R. Williams,\n                      Faster deterministic and Las Vegas algorithms for offline approximate nearest neighbors in high dimensions\n                      , in Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA), 2020, pp. 637-649,https:\/\/doi.org\/10.1137\/1.9781611975994.39.","DOI":"10.1137\/1.9781611975994.39"},{"key":"atypb3","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539792233907"},{"key":"atypb4","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1388"},{"key":"atypb5","doi-asserted-by":"crossref","unstructured":"A. Abboud, F. Grandoni, and V. Vassilevska Williams,\n                      Subcubic equivalences between graph centrality problems, APSP and diameter\n                      , in Proceedings of the 2015 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2015, pp. 1681-1697,https:\/\/doi.org\/10.1137\/1.9781611973730.112.","DOI":"10.1137\/1.9781611973730.112"},{"key":"atypb6","unstructured":"A. V. Aho, J. E. Hopcroft, and J. D. Ullman,\n                      The Design and Analysis of Computer Algorithms\n                      , Addison-Wesley Ser. Comput. Sci. Inform. Process., Addison-Wesley, 1974."},{"key":"atypb7","doi-asserted-by":"crossref","unstructured":"A. Abboud, T. D. Hansen, V. Vassilevska Williams, and R. Williams,\n                      Simulating branching programs with Edit Distance and friends, or: A polylog shaved is a lower bound made\n                      , in Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC), 2016, pp. 375-388.","DOI":"10.1145\/2897518.2897653"},{"key":"atypb8","doi-asserted-by":"publisher","DOI":"10.1016\/0168-0072(83)90038-6"},{"key":"atypb9","doi-asserted-by":"crossref","unstructured":"U. Agarwal and V. Ramachandran,\n                      Fine-grained complexity for sparse graphs\n                      , in Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC), 2018, pp. 239-252.","DOI":"10.1145\/3188745.3188888"},{"key":"atypb10","doi-asserted-by":"crossref","unstructured":"J. Alman and R. Williams,\n                      Probabilistic polynomials and Hamming nearest neighbors\n                      , in Proceedings of the 2015 IEEE 56th Annual Symposium on Foundations of Computer Science (FOCS), 2015, pp. 136-150.","DOI":"10.1109\/FOCS.2015.18"},{"key":"atypb11","doi-asserted-by":"crossref","unstructured":"A. Abboud, R. Williams, and H. Yu,\n                      More applications of the polynomial method to algorithm design\n                      , in Proceedings of the 2015 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2015, pp. 218-230,https:\/\/doi.org\/10.1137\/1.9781611973730.17.","DOI":"10.1137\/1.9781611973730.17"},{"key":"atypb12","doi-asserted-by":"publisher","DOI":"10.1007\/BF02523189"},{"key":"atypb13","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-012-9734-3"},{"key":"atypb14","first-page":"193","author":"Ballard G.","year":"2012","journal-title":"Algorithms and Architectures"},{"key":"atypb15","doi-asserted-by":"crossref","unstructured":"G. Ballard, J. Demmel, B. Lipshitz, and O. Schwartz,\n                      Communication-avoiding parallel Strassen: Implementation and performance\n                      , in Proceedings of 2012 International Conference for High Performance Computing, Networking, Storage and Analysis (SC), 2012, pp. 1-11.","DOI":"10.1109\/SC.2012.33"},{"key":"atypb16","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-007-9036-3"},{"key":"atypb17","unstructured":"A. Backurs, N. Dikkala, and C. Tzamos,\n                      Tight hardness results for maximum weight rectangles\n                      , in 43rd International Colloquium on Automata, Languages, and Programming (ICALP), LIPIcs. Leibniz Int. Proc. Inform. 55, Schloss Dagstuhl. Leibniz-Zent. Inform., Wadern, 2016, art. 81."},{"key":"atypb18","doi-asserted-by":"publisher","DOI":"10.1142\/S0218195901000596"},{"key":"atypb19","doi-asserted-by":"publisher","DOI":"10.1137\/15M1053128"},{"key":"atypb20","doi-asserted-by":"publisher","DOI":"10.1007\/BF01263423"},{"key":"atypb21","doi-asserted-by":"publisher","DOI":"10.4086\/toc.2012.v008a004"},{"key":"atypb22","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-007-9062-1"},{"key":"atypb23","doi-asserted-by":"publisher","DOI":"10.1145\/2344422.2344424"},{"key":"atypb24","doi-asserted-by":"publisher","DOI":"10.1137\/08071990X"},{"key":"atypb25","doi-asserted-by":"crossref","unstructured":"T. M. Chan,\n                      Speeding up the Four Russians algorithm by about one more logarithmic factor\n                      , in Proceedings of the 2015 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2015, pp. 212-217,https:\/\/doi.org\/10.1137\/1.9781611973730.16.","DOI":"10.1137\/1.9781611973730.16"},{"key":"atypb26","first-page":"3","volume":"9","author":"Chan T. M.","year":"2018","journal-title":"J. Comput. Geom."},{"key":"atypb27","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(85)90015-7"},{"key":"atypb28","doi-asserted-by":"publisher","DOI":"10.1109\/TPDS.2002.1058095"},{"key":"atypb29","doi-asserted-by":"publisher","DOI":"10.1137\/0211037"},{"key":"atypb30","doi-asserted-by":"publisher","DOI":"10.1137\/0213028"},{"key":"atypb31","doi-asserted-by":"publisher","DOI":"10.1145\/3402926"},{"key":"atypb32","doi-asserted-by":"publisher","DOI":"10.1145\/1486525.1486528"},{"key":"atypb33","doi-asserted-by":"publisher","DOI":"10.1080\/00207169008803814"},{"key":"atypb34","doi-asserted-by":"publisher","DOI":"10.1145\/367766.368168"},{"key":"atypb35","doi-asserted-by":"publisher","DOI":"10.1109\/SWAT.1971.4"},{"key":"atypb36","doi-asserted-by":"publisher","DOI":"10.1137\/0205006"},{"key":"atypb37","doi-asserted-by":"publisher","DOI":"10.1007\/BF01744431"},{"key":"atypb38","doi-asserted-by":"publisher","DOI":"10.1145\/28869.28874"},{"key":"atypb39","doi-asserted-by":"publisher","DOI":"10.1142\/S0129626496000029"},{"key":"atypb40","doi-asserted-by":"publisher","DOI":"10.1016\/0925-7721(95)00022-2"},{"key":"atypb41","doi-asserted-by":"publisher","DOI":"10.1145\/3185378"},{"key":"atypb42","doi-asserted-by":"crossref","unstructured":"H. N. Gabow and P. Sankowski,\n                      Algebraic algorithms for b-matching, shortest undirected paths, and f-factors\n                      , in Proceedings of the 2013 IEEE 54th Annual Symposium on Foundations of Computer Science (FOCS), 2013, pp. 137-146.","DOI":"10.1109\/FOCS.2013.23"},{"key":"atypb43","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2004.05.006"},{"key":"atypb44","doi-asserted-by":"publisher","DOI":"10.1007\/s00453-007-9063-0"},{"key":"atypb45","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(93)90001-D"},{"key":"atypb46","first-page":"131","author":"Han Y.","year":"2012","journal-title":"Springer"},{"key":"atypb47","doi-asserted-by":"publisher","DOI":"10.1145\/321992.321993"},{"key":"atypb48","unstructured":"L. R. Kerr,\n                      The Effect of Algebraic Structure on the Computation Complexity of Matrix Multiplications\n                      , Ph.D. thesis, Cornell University, Ithaca, NY, 1970."},{"key":"atypb49","doi-asserted-by":"crossref","unstructured":"A. Lincoln, V. Vassilevska Williams, and R. Williams,\n                      Tight hardness for shortest cycles and paths in sparse graphs\n                      , in Proceedings of the 2018 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2018, pp. 1236-1252,https:\/\/doi.org\/10.1137\/1.9781611975031.80.","DOI":"10.1137\/1.9781611975031.80"},{"key":"atypb50","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(80)90002-1"},{"key":"atypb51","doi-asserted-by":"crossref","unstructured":"R. Motwani and P. Raghavan,\n                      Randomized algorithms\n                      , Cambridge University Press, 1995.","DOI":"10.1017\/CBO9780511814075"},{"key":"atypb52","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(71)90006-8"},{"key":"atypb53","doi-asserted-by":"publisher","DOI":"10.1016\/0898-1221(81)90130-9"},{"key":"atypb54","doi-asserted-by":"crossref","unstructured":"M. P\u01cetra\u015fcu,\n                      Towards polynomial lower bounds for dynamic problems\n                      , in Proceedings of the 42nd ACM Symposium on Theory of Computing (STOC), 2010, pp. 603-610.","DOI":"10.1145\/1806689.1806772"},{"key":"atypb55","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(03)00402-X"},{"key":"atypb56","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539702419650"},{"key":"atypb57","doi-asserted-by":"publisher","DOI":"10.1007\/BF01137685"},{"key":"atypb58","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(80)90128-3"},{"key":"atypb59","doi-asserted-by":"crossref","unstructured":"L. Roditty and V. Vassilevska Williams,\n                      Minimum weight cycles and triangles: Equivalences and algorithms\n                      , in Proceedings of the 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science (FOCS), 2011, pp. 180-189.","DOI":"10.1109\/FOCS.2011.27"},{"key":"atypb60","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1995.1078"},{"key":"atypb61","doi-asserted-by":"publisher","DOI":"10.1016\/S0925-7721(02)00156-6"},{"key":"atypb62","doi-asserted-by":"crossref","unstructured":"R. Smolensky,\n                      Algebraic methods in the theory of lower bounds for Boolean circuit complexity\n                      , in Proceedings of the 19th Annual ACM Symposium on Theory of Computing (STOC), 1987, pp. 77-82.","DOI":"10.1145\/28395.28404"},{"key":"atypb63","doi-asserted-by":"publisher","DOI":"10.1007\/BF02165411"},{"key":"atypb64","doi-asserted-by":"publisher","DOI":"10.1137\/0213027"},{"key":"atypb65","doi-asserted-by":"crossref","unstructured":"A. Shoshan and U. Zwick,\n                      All pairs shortest paths in undirected graphs with integer weights\n                      , in Proceedings of the 40th Annual Symposium on Foundations of Computer Science (FOCS), 1999, pp. 605-615.","DOI":"10.1109\/SFFCS.1999.814635"},{"key":"atypb66","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(92)90200-F"},{"key":"atypb67","doi-asserted-by":"publisher","DOI":"10.1007\/PL00009198"},{"key":"atypb68","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-27798-9_31"},{"key":"atypb69","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2005.08.008"},{"key":"atypb70","first-page":"3431","author":"Williams V. Vassilevska","year":"2018","journal-title":"World Scientific"},{"key":"atypb71","volume":"65","author":"Vassilevska Williams V.","year":"2018","journal-title":"J. ACM"},{"key":"atypb72","doi-asserted-by":"publisher","DOI":"10.1137\/09076619X"},{"key":"atypb73","doi-asserted-by":"publisher","DOI":"10.1145\/321105.321107"},{"key":"atypb74","doi-asserted-by":"publisher","DOI":"10.4086\/toc.2018.v014a017"},{"key":"atypb75","unstructured":"R. R. Williams,\n                      The polynomial method in circuit complexity applied to algorithm design (invited talk)\n                      , in 34th International Conference on Foundation of Software Technology and Theoretical Computer Science (FSTTCS), 2014, pp. 47-60."},{"key":"atypb76","first-page":"61","author":"Williams R.","year":"2014","journal-title":"J. ACM"},{"key":"atypb77","unstructured":"A. C.C. Yao,\n                      On ACC and threshold circuits\n                      , in Proceedings of the 31st Annual Symposium on Foundations of Computer Science (FOCS), 1990, pp. 619-627."},{"key":"atypb78","doi-asserted-by":"crossref","unstructured":"H. Yu,\n                      An improved combinatorial algorithm for Boolean matrix multiplication\n                      , in Proceedings of the 42nd International Colloquium on Automata, Languages, and Programming (ICALP), 2015, pp. 1094-1105.","DOI":"10.1007\/978-3-662-47672-7_89"},{"key":"atypb79","doi-asserted-by":"publisher","DOI":"10.1145\/567112.567114"},{"key":"atypb80","doi-asserted-by":"crossref","unstructured":"U. Zwick,\n                      A slightly improved sub-cubic algorithm for the all pairs shortest paths problem with real edge lengths\n                      , in ISAAC 2004-International Symposium on Algorithms and Computation, Lecture Notes in Comput. Sci. 3341, Springer, 2004, pp. 921-932.","DOI":"10.1007\/978-3-540-30551-4_78"}],"container-title":["SIAM Review"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/21M1418654","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,20]],"date-time":"2026-08-20T13:45:11Z","timestamp":1787233511000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/21M1418654"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1]]},"references-count":80,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2021,1]]}},"alternative-id":["10.1137\/21M1418654"],"URL":"https:\/\/doi.org\/10.1137\/21m1418654","relation":{},"ISSN":["0036-1445","1095-7200"],"issn-type":[{"value":"0036-1445","type":"print"},{"value":"1095-7200","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1]]}}}