Optimal Binary Search Tree Problem: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 12: Line 12:
== Parameters ==  
== Parameters ==  


n: number of elements
$n$: number of elements


== Table of Algorithms ==  
== Table of Algorithms ==  


Currently no algorithms in our database for the given problem.
Currently no algorithms in our database for the given problem.

Latest revision as of 08:52, 10 April 2023

Description

Suppose we are given $n$ 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 $n$ keys that minimizes the expected access time.

Related Problems

Subproblem: Approximate OBST, Huffman Encoding, Alphabetic Tree Problem

Related: Huffman Encoding, Alphabetic Tree Problem

Parameters

$n$: number of elements

Table of Algorithms

Currently no algorithms in our database for the given problem.