Question: In a 2 - 3 - 4 tree , a node can have 2 keys, 3 keys ( full node ) , and 4 keys.
In a tree a node can have keys, keys full node and keys. In addition, it is a selfbalanced tree. To solve the problem, consider how each split changes the potential. How does an insert operation change the potential?You may start with defining a potential function as where denotes the the number of nodes in with three keys and denotes the number of nodes in with two keys. The potential function is initially and is always nonnegative. Note that the presentation contains the true cost and the change in potential. Think of "cost" as "number of splits".Perform a split on a full node Analyze the potential by if s parent has keys ie is the root if s parent has key if s parent has keys.Perform an insert operation on and the actual number of splits is
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
