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 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
Get step-by-step solutions from verified subject matter experts
