{"title":"ExpoSort: Beating the quasi-polynomial-time barrier for reluctant sorting","authors":"Mikkel Abrahamsen","doi":"arxiv-2409.00794","DOIUrl":null,"url":null,"abstract":"We introduce the algorithm ExpoSort, a groundbreaking method that sorts an\narray of $n$ numbers in a spectacularly inefficient $\\Theta(2^n)$ time.\nExpoSort proudly claims the title of the first reluctant algorithm to\ndecisively surpass the quasi-polynomial running time $\\Omega(n^{\\log\nn/(2+\\varepsilon)})$ of the notoriously sluggish SlowSort algorithm by Broder\nand Stolfi [ACM SIGACT News, 1984]. In the ongoing quest for the slowest\npossible sort, ExpoSort redefines what it means to take one's time. Remarkably, ExpoSort achieves this feat with one of the simplest pseudocodes\namong all known sorting algorithms. However, a slight modification -- merely\nmoving one recursive call inside an if statement -- transforms ExpoSort into an\nastonishingly well-camouflaged variant of the classic InsertionSort with best-\nand worst-case running times of $\\Theta(n)$ and $\\Theta(n^3)$, respectively.\nThis dual nature of ExpoSort serves as a reminder of the utmost care required\nwhen crafting pessimal algorithms, where a slight lapse in judgment could\nresult in accidentally producing an embarrassingly practical algorithm.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"30 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.00794","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We introduce the algorithm ExpoSort, a groundbreaking method that sorts an
array of $n$ numbers in a spectacularly inefficient $\Theta(2^n)$ time.
ExpoSort proudly claims the title of the first reluctant algorithm to
decisively surpass the quasi-polynomial running time $\Omega(n^{\log
n/(2+\varepsilon)})$ of the notoriously sluggish SlowSort algorithm by Broder
and Stolfi [ACM SIGACT News, 1984]. In the ongoing quest for the slowest
possible sort, ExpoSort redefines what it means to take one's time. Remarkably, ExpoSort achieves this feat with one of the simplest pseudocodes
among all known sorting algorithms. However, a slight modification -- merely
moving one recursive call inside an if statement -- transforms ExpoSort into an
astonishingly well-camouflaged variant of the classic InsertionSort with best-
and worst-case running times of $\Theta(n)$ and $\Theta(n^3)$, respectively.
This dual nature of ExpoSort serves as a reminder of the utmost care required
when crafting pessimal algorithms, where a slight lapse in judgment could
result in accidentally producing an embarrassingly practical algorithm.