Okay, i'm currently working on Task 3a) of Assignment 3.
If a node joins, it gets a random (x,y) pair, and then routes to the responsible node, which will split its OWN zone in two parts!
In a 2d space, this splitting must always be first X then Y, X, Y ... and so on.
But also, every zone must have a ratio of 1:1, 1:2 or 2:1 according to slide 65.
Okay, first node:
n_1 = (9,11) takes the whole space.
n_2 = (4,4), we split on the x-axis at x = 10, n_2 controls the right part.
n_3 = (17,5), n_2 is responsible, split its area on the y-axis.
n_4 = (8,5), n_1 is responsible, BUT:
Now, on the one hand, i have to split on the x-axis again. But on the other hand, the resulting rectangles would have a ratio of 1:4 ...
If anybody knows how to do it right, i would greatly appreciate your help