Question: Let's think about the worst - case scenario ( making the tree highest ) for a B - tree. That means the root has 2
Let's think about the worstcase scenario making the tree highest for a Btree.
That means the root has children and each internal node has ~~ children. The following tree shows the worst case scenario where
Think about the worstcase Btree where as shown below. Figure out how many nodes we have at each level in the following tree. HINT: check page of lec notes "NotesA multiway"
Level# # of nodes at each level count Xs
Think about the worstcase tree with
a How many children does each internal node have?
b Now draw a worstcase Btree from to Also count the number of nodes you have at each level, to Then come up with the general formula that works for that tells us the total number of nodes at Level where is the total number of nodes not keyselements in the tree.General formula for L using M and L Do the same as # for a worstcase Btree with M
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
