通过斯tern-布罗克特树实现快速有理数搜索
Fast Rational Search via Stern-Brocot Tree
AI总结:
本文提出基于斯tern-布罗克特树压缩遍历的新算法,用于快速有理数搜索,并扩展至无界有理数搜索和实数最佳近似计算问题。
摘要:
我们重新审视有理数搜索问题:给定一个未知的有理数α=a/b∈(0,1),其中b≤n,目标是通过比较查询“β≤α?”来确定α。该问题几十年前已被研究,已知存在最优查询算法。我们提出了一种基于压缩遍历斯tern-布罗克特树的新算法,这种树在文献中似乎被忽视了。这种方法自然扩展到两个相关的问题,据我们所知,这些问题此前未被解决:(i) 无界有理数搜索,其中n是未知的;(ii) 使用仅比较查询计算未知实数的最佳(在精确意义上)有理数近似值。
英文摘要:
We revisit the problem of rational search: given an unknown rational number $α= \frac{a}{b} \in (0,1)$ with $b \leq n$, the goal is to identify $α$ using comparison queries of the form ``$β\leq α$?''. The problem has been studied several decades ago and optimal query algorithms are known. We present a new algorithm for rational search based on a compressed traversal of the Stern--Brocot tree, which appeared to have been overlooked in the literature. This approach also naturally extends to two related problems that, to the best of our knowledge, have not been previously addressed: (i) unbounded rational search, where the bound $n$ is unknown, and (ii) computing the best (in a precise sense) rational approximation of an unknown real number using only comparison queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。