Sander Borst, Daniel Dadush, Sophie Huiberts, Danish Kashaev
{"title":"A nearly optimal randomized algorithm for explorable heap selection.","authors":"Sander Borst, Daniel Dadush, Sophie Huiberts, Danish Kashaev","doi":"10.1007/s10107-024-02145-5","DOIUrl":null,"url":null,"abstract":"<p><p>Explorable heap selection is the problem of selecting the <i>n</i>th smallest value in a binary heap. The key values can only be accessed by traversing through the underlying infinite binary tree, and the complexity of the algorithm is measured by the total distance traveled in the tree (each edge has unit cost). This problem was originally proposed as a model to study search strategies for the branch-and-bound algorithm with storage restrictions by Karp, Saks and Widgerson (FOCS '86), who gave deterministic and randomized <math><mrow><mi>n</mi> <mo>·</mo> <mo>exp</mo> <mo>(</mo> <mi>O</mi> <mrow><mo>(</mo> <msqrt><mrow><mo>log</mo> <mi>n</mi></mrow> </msqrt> <mo>)</mo></mrow> <mo>)</mo></mrow> </math> time algorithms using <math><mrow><mi>O</mi> <mo>(</mo> <mo>log</mo> <msup><mrow><mo>(</mo> <mi>n</mi> <mo>)</mo></mrow> <mrow><mn>2.5</mn></mrow> </msup> <mo>)</mo></mrow> </math> and <math><mrow><mi>O</mi> <mo>(</mo> <msqrt><mrow><mo>log</mo> <mi>n</mi></mrow> </msqrt> <mo>)</mo></mrow> </math> space respectively. We present a new randomized algorithm with running time <math><mrow><mi>O</mi> <mo>(</mo> <mi>n</mi> <mo>log</mo> <msup><mrow><mo>(</mo> <mi>n</mi> <mo>)</mo></mrow> <mn>3</mn></msup> <mo>)</mo></mrow> </math> against an oblivious adversary using <math><mrow><mi>O</mi> <mo>(</mo> <mo>log</mo> <mi>n</mi> <mo>)</mo></mrow> </math> space, substantially improving the previous best randomized running time at the expense of slightly increased space usage. We also show an <math><mrow><mi>Ω</mi> <mo>(</mo> <mo>log</mo> <mo>(</mo> <mi>n</mi> <mo>)</mo> <mi>n</mi> <mo>/</mo> <mo>log</mo> <mo>(</mo> <mo>log</mo> <mo>(</mo> <mi>n</mi> <mo>)</mo> <mo>)</mo> <mo>)</mo></mrow> </math> lower bound for any algorithm that solves the problem in the same amount of space, indicating that our algorithm is nearly optimal.</p>","PeriodicalId":18297,"journal":{"name":"Mathematical Programming","volume":"210 1-2","pages":"75-96"},"PeriodicalIF":2.2000,"publicationDate":"2025-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11870923/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Mathematical Programming","FirstCategoryId":"100","ListUrlMain":"https://doi.org/10.1007/s10107-024-02145-5","RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2024/11/5 0:00:00","PubModel":"Epub","JCR":"Q2","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Explorable heap selection is the problem of selecting the nth smallest value in a binary heap. The key values can only be accessed by traversing through the underlying infinite binary tree, and the complexity of the algorithm is measured by the total distance traveled in the tree (each edge has unit cost). This problem was originally proposed as a model to study search strategies for the branch-and-bound algorithm with storage restrictions by Karp, Saks and Widgerson (FOCS '86), who gave deterministic and randomized time algorithms using and space respectively. We present a new randomized algorithm with running time against an oblivious adversary using space, substantially improving the previous best randomized running time at the expense of slightly increased space usage. We also show an lower bound for any algorithm that solves the problem in the same amount of space, indicating that our algorithm is nearly optimal.
可探索堆选择是在二进制堆中选择第 n 个最小值的问题。关键值只能通过遍历底层的无限二叉树来获取,算法的复杂度由在树中所走的总距离来衡量(每条边都有单位成本)。这个问题最初是由 Karp、Saks 和 Widgerson(FOCS '86)作为研究有存储限制的分支与边界算法搜索策略的模型提出的,他们分别给出了使用 O ( log ( n ) 2.5 ) 和 O ( log n ) 空间的确定性和随机 n - exp ( O ( log n ) ) 时间算法。我们提出了一种新的随机算法,其针对遗忘对手的运行时间为 O ( n log ( n ) 3 ),使用空间为 O ( log n ),大大改进了之前的最佳随机运行时间,但使用空间略有增加。我们还展示了 Ω ( log ( n ) n / log ( log ( n ) )) 的下限,表明我们的算法接近最优。
期刊介绍:
Mathematical Programming publishes original articles dealing with every aspect of mathematical optimization; that is, everything of direct or indirect use concerning the problem of optimizing a function of many variables, often subject to a set of constraints. This involves theoretical and computational issues as well as application studies. Included, along with the standard topics of linear, nonlinear, integer, conic, stochastic and combinatorial optimization, are techniques for formulating and applying mathematical programming models, convex, nonsmooth and variational analysis, the theory of polyhedra, variational inequalities, and control and game theory viewed from the perspective of mathematical programming.