I have a table with row elements that have a minimum and a maximum height and width, and I am trying to find a way to calculate the minimum number of sizes that I need to to satisfy all the conditions of being between the min and the max. I tried to use ChatGPT and it offered me a solution using Intervalltree, but it does not seem to work and the documentation on it seems sparse:
The first few rows of the table looks like this:
Width | Height | Widthmax | Widthmin | Heightmax | Heightmin |
---|---|---|---|---|---|
46.625 | 88.0 | 45.875 | 45.125 | 87.25 | 86.5 |
47.25 | 87.75 | 46.5 | 45.75 | 87.0 | 86.25 |
46.75 | 72.5 | 46.0 | 45.25 | 71.75 | 71.0 |
45.5 | 87.375 | 44.75 | 44.0 | 86.625 | 85.875 |
45.375 | 87.375 | 44.625 | 43.875 | 86.625 | 85.875 |
45.375 | 95.375 | 44.625 | 43.875 | 94.625 | 93.875 |
45.625 | 95.375 | 44.875 | 44.125 | 94.625 | 93.875 |