The size of my root rectangle will be power of 2 and the size of the children rectangles will always be divisible by 4.
Say I have a rectangle of size 128x128, is there an algorithm that can fill it with rectangles who's size is randomly chosen from an array (i.e. [(8, 8), (8, 16), (16, 16), (16, 24), (24, 24)]). There should be no gaps
My first attempt involved splitting the root rectangle recursively, but this result is uniform to a grid and won't work:
I need it to look more like this: