Question: Problem 5. Optimal binary search tree Consider 4 keys keys A,B,C, and D with probabilities 0.1,0.2,0.4, and 0.3, respectively. (a) What is the expected search

Problem 5. Optimal binary search tree Consider 4 keys keys A,B,C, and D with probabilities 0.1,0.2,0.4, and 0.3, respectively. (a) What is the expected search time (number of comparisons) of the tree: (b) Find an optimal BST and its expected search time using the algorithm from the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
