Question: For this assignment, you needed to implement a 4-heap - a heap where each child had four equations. This meant you needed to create two

 For this assignment, you needed to implement a 4-heap - a

For this assignment, you needed to implement a 4-heap - a heap where each child had four equations. This meant you needed to create two equations: a formula parent(i) to find the parent of some node i, and a formula child(i,j) to find the j-th child of some node i. What were those formula? (To get full credit on this question, you just need to correctly define parent(i) and child(i,j) You do not need to justify your definitions.) For this assignment, you needed to implement a 4-heap - a heap where each child had four equations. This meant you needed to create two equations: a formula parent(i) to find the parent of some node i, and a formula child(i,j) to find the j-th child of some node i. What were those formula? (To get full credit on this question, you just need to correctly define parent(i) and child(i,j) You do not need to justify your definitions.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!