Optimal Binary Search Tree Problem

Suppose we are given nn keys and the probabilities of accessing each key and those occurring in the gap between two successive keys. The optimal binary search tree problem is to construct a binary search tree on these nn keys that minimizes the expected access time.

Parameters

  • nn: number of elements

Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 4 of 4 algorithms

See more
Yao1982O(n2)O(n^2)O(n2)O(n^2)
Knuth's DP algorithm1971O(n2)O(n^2)O(n2)O(n^2)
DP algorithm (Gilbert, Moore)1959O(n3)O(n^3)O(n2)O(n^2)
Naive algorithm1940O(4n/n3/2)O(4^n/n^{3/2})O(1)O(1)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table