计算机科学 > 数据结构与算法
[提交于 2022年2月14日]
标题:A Simple Algorithm for Optimal Search Trees with Two-Way Comparisons
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present a simple $O(n^4)$-time algorithm for computing optimal search trees with two-way comparisons. The only previous solution to this problem, by Anderson et al., has the same running time, but is significantly more complicated and is restricted to the variant where only successful queries are allowed. Our algorithm extends directly to solve the standard full variant of the problem, which also allows unsuccessful queries and for which no polynomial-time algorithm was previously known. The correctness proof of our algorithm relies on a new structural theorem for two-way-comparison search trees.
提交历史
来自:Neal E. Young[v1] 2022年2月14日 星期一 00:00:00 UTC