Question: User If you add data into a 2 - 4 tree in sorted, ascending order, what behavior do you observe? Is this a good or
User
If you add data into a tree in sorted, ascending order, what behavior do you observe? Is this a good or a bad thing?
Every data added becomes the rightmost element of the rightmost leaf node.
After adding many elements almost every node in the tree will have the max number of data.
After adding many elements almost every node in the tree will have the max number of children.
As we continue to add elements, the left side of the tree slowly starts to resemble a binary search tree if we promote the nd data.
As we continue to add elements, the right side of the tree slowly starts to resemble a binary search tree if we promote the rd data.
The tree becomes degenerate since we are always adding to the right side of the tree.
Every add operation takes strictly Olog n time since we travel from root to leaf.
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
