Question: Think about perfect ( completely full ) M - ary trees. Assume each leaf node is full as well. 2 3 . What is the
Think about perfect completely full Mary trees. Assume each leaf node is full as well.
What is the total number of keys in the tree when the total number of levels is
a
b
In order to look for a particular key in a perfect ary tree having elementskeys which makes it faster? Having a smaller M or larger M Why?
Think about the worst case scenario where your key is found at the bottom of the tree. Calculate the total number of comparisons in a perfect triary tree Each leaf node is full as well using your own algorithm given in # above. Express your answer as where is the total number of keys.
What is the worstcase bigO for searching in a perfect triary tree? Explain.
What is the best case bigO for searching in a perfect triary tree? Explain.
What is the average bigO for searching in a perfect triary tree? Explain.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
