Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with the question that is in the given picture In class we studied an algorithm which, given the probabilities-of-query for each of the

Please help with the question that is in the given picture
image text in transcribed
In class we studied an algorithm which, given the probabilities-of-query for each of the keys and "gaps in a binary search tree, determined the optimal (i.e., least-average-search-cost) structure for the tree. Determine an optimal binary search tree containing precisely the following keys, with the indicated corresponding query probabilities, assuming that all queries are for keys that are senithe tree i.e, that all gap probabilities are zero) ALPHA BAKER CHARLIE DELTA ECHO FOXTROT GOLF HOTEL 0.08 0.13 0.26 0.04 0.20 0.12 0.06 0.11 (a) Give the ROOT table for the optimal binary search tree (b) Draw the optimal binary search tree, being sure to include the associated key value in each node. Give the average search cost for the optimal binary search tree (again assuming that all queries will be for keys that are present in the tree). Round your answer to the nearest 0.01 (c) AVERAGE SEARCH COST

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions