Node-1 with 5 chidren nodes node2 node3 node4 node5 node6...........
Node-1 contains 4 dataitems(integers)
the child node(node-2) to the left of dataitem-1 contains max. 4 values-all less than dataitem-1 of node-1
the child node(node-3) to the right of dataitem-1 contains max. 4 values-all greater than dataitem-1 of node-1 & less than dataitem-2 of node-1
the child node(node-4) to the right of dataitem-2 contains max. 4 values-all greater than dataitem-2 of node-1 & less than dataitem-3 of node-1 ................
The data structure of each node will be some thing of this sort
struct node* children;
Create the head node first. The when you insert the next node, check how many children does head have. If it has less than 5 children, make the next node the child of the head. If not check how many children does the first child have then check for the 2nd child and so on
This approach is not complete but you can build on this now
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...