The optimal binary search tree for Andersson's search algorithm
暂无分享,去创建一个
Andersson [1] presented a search algorithm for binary search trees that uses only two-way key comparisons by deferring equality comparisons until the leaves are reached. The use of a different search algorithm means that the optimal tree for the traditional search algorithm, which has been shown to be computable inO(n2) time by Knuth [3], is not optimal with respect to the different search algorithm. This paper shows that the optimal binary search tree for Andersson's search algorithm can be computed inO(nlogn) time using existing algorithms for the special case of zero successful access frequencies, such as the Hu-Tucker algorithm [2].
[1] Donald E. Knuth,et al. The Art of Computer Programming: Volume 3: Sorting and Searching , 1998 .
[2] Arne Andersson. A note on searching in a binary search tree , 1991, Softw. Pract. Exp..
[3] Donald Ervin Knuth,et al. The Art of Computer Programming , 1968 .
[4] T. C. Hu,et al. Optimal Computer Search Trees and Variable-Length Alphabetical Codes , 1971 .
[5] Donald E. Knuth,et al. Optimum binary search trees , 1971, Acta Informatica.