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

费用与距离相关的二分搜索

Binary Search with Distance-Dependent Costs

Calvin Leng, David Kempe

摘要:

我们引入了一个搜索问题,推广了二叉搜索的典型设置。与二进制搜索的设置类似,在线上以对抗方式选择目标,并且为了响应查询,算法会学习查询是否正确、太高或太低。与二叉搜索设置不同,查询的成本是查询和正确答案之间距离的单调非递减函数;对于过高和过低的查询,可以使用不同的函数。该算法的目标是以最小的总代价识别一个敌方选择的目标。请注意,算法甚至不知道它所产生的成本,直到最后,当目标被揭示。这种抽象捕捉了许多自然设置,其中主体通过设置数量(例如物品价格,带宽,税率,药物剂量等)进行实验。其中所选择的设置离最佳设置越远,成本或遗憾就越大。首先,我们证明了对于任意对称成本函数(即,相同数量的过冲与下冲导致相同的成本),标准的二进制搜索算法是4近似。然后,我们表明,当成本函数是有界度多项式的距离,可以使用动态规划最佳地解决这个问题,这依赖于一个仔细的编码的组合成本过去的查询(回忆,只会在未来透露)。然后,我们将该设置推广到查找树上的节点;在这里,对查询的响应是目标所在的树上的方向,并且成本随着从查询到目标的树上的距离而增加。使用Berendsohn和Kozma的k-截搜索树框架和我们为线路情况开发的思想,当成本函数是有界次数多项式时,我们给出了PTAS。

英文摘要:

We introduce a search problem generalizing the typical setting of Binary Search on the line. Similar to the setting for Binary Search, a target is chosen adversarially on the line, and in response to a query, the algorithm learns whether the query was correct, too high, or too low. Different from the Binary Search setting, the cost of a query is a monotone non-decreasing function of the distance between the query and the correct answer; different functions can be used for queries that are too high vs. those that are too low. The algorithm's goal is to identify an adversarially chosen target with minimum total cost. Note that the algorithm does not even know the cost it incurred until the end, when the target is revealed. This abstraction captures many natural settings in which a principal experiments by setting a quantity (such as an item price, bandwidth, tax rate, medicine dosage, etc.) where the cost or regret increases the further the chosen setting is from the optimal one. First, we show that for arbitrary symmetric cost functions (i.e., overshooting vs. undershooting by the same amount leads to the same cost), the standard Binary Search algorithm is a 4-approximation. We then show that when the cost functions are bounded-degree polynomials of the distance, the problem can be solved optimally using Dynamic Programming; this relies on a careful encoding of the combined cost of past queries (which, recall, will only be revealed in the future). We then generalize the setting to finding a node on a tree; here, the response to a query is the direction on the tree in which the target is located, and the cost is increasing in the distance on the tree from the query to the target. Using the k-cut search tree framework of Berendsohn and Kozma and the ideas we developed for the case of the line, we give a PTAS when the cost function is a bounded-degree polynomial.

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

↑