arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.27490cs.DS
收藏

带预测的树搜索

Tree Search With Predictions

Johns Hopkins University(约翰斯·霍普金斯大学)

Michael Dinitz, Bob Dong

AI总结:

研究在树上利用预测进行搜索的问题,提出基于路径宽度的算法,实现查询复杂度与预测误差的对数关系,并证明最优性。

摘要:

“带预测的算法”或“学习增强算法”已被证明是将机器学习与传统算法结合的一个极其有用的范式。其中一个经典场景是搜索有序数组。在没有预测的情况下,经典二分查找需要 $O(\log n)$ 次查询,而有了预测,我们可以使用“倍增二分查找”以 $O(\log η)$ 次查询找到目标键,其中 $η$ 是预测误差,以真实位置与预测位置之差的绝对值衡量。由于数组本质上是一条路径图,本文探讨在更一般的图(树)上能否实现类似的界。我们首先表明,高级答案是“否”:不存在使用 $O(\log η)$ 次查询的搜索算法,其中 $η$ 现在是预测位置与真实位置之间的图距离。然而,作为我们的主要结果,我们证明在具有低“路径宽度”的“类路径”树上可以实现这样的界。特别地,我们证明存在一种搜索算法,其查询次数最多为 $O(k \log η)$,其中 $k$ 是树的路径宽度。我们还证明了一个下界,表明我们的算法在存在意义上具有最优查询复杂度。最后,我们在真实输入上通过实验表明,我们的算法的查询复杂度明显优于简单的无预测算法。

英文摘要:

``Algorithms with predictions'', or ``learning-augmented algorithms'', has proved to be an extremely useful paradigm for combining machine learning with traditional algorithms. One of the textbook settings for this is searching a sorted array. Without a prediction, classical binary search takes $O(\log n)$ queries, while with a prediction we can use ``doubling binary search'' to find the target key using $O(\log η)$ queries, where $η$ is the error of the prediction measured as the absolute value of the difference between the true location and the predicted location. Since an array is just a path graph, in this paper we ask whether similar bounds can be achieved for search on even slightly more general graphs: trees. We show first that the high-level answer is ``no'': there is no search algorithm that uses $O(\log η)$ queries, where $η$ is now the graph distance between the predicted location and the true location. However, as our main result, we show that such bounds can be achieved on trees which are ``path-like'' in that they have low \emph{pathwidth}. In particular, we prove that there is a search algorithm which uses at most $O(k \log η)$ queries, where $k$ is the pathwidth of the tree. We also prove a lower bound showing that our algorithm has existentially optimal query complexity. Finally, we show experimentally, on real-life inputs, that our algorithm has query complexity which is notably better than the simple non-prediction-based algorithm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑