arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.14481cs.DScs.DB
收藏

不平衡二叉树

Unbalancing Binary Trees

Matthew L. Ginsberg

摘要:

假设Zipf定律是准确的,我们表明,现有的技术,部分优化二叉树产生的结果,比真正的最优约10%。我们提出了一个新的近似优化技术,运行在O(n log n)的时间,并产生约1%的树比最佳差。运行时间与Garsia-Wachs算法相当,但该技术可以应用于更有用的情况,即期望搜索的节点包含在树中而不是树外。

英文摘要:

Assuming Zipf's Law to be accurate, we show that existing techniques for partially optimizing binary trees produce results that are approximately 10% worse than true optimal. We present a new approximate optimization technique that runs in O(n log n) time and produces trees approximately 1% worse than optimal. The running time is comparable to that of the Garsia-Wachs algorithm but the technique can be applied to the more useful case where the node being searched for is expected to be contained in the tree as opposed to outside of it.

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

↑