

Great answer!!
After thinking about all this for a while, I’ve gone with the basic binary tree (leaning towards AVL tree as I expect my use case to be read heavy).
In my use case, multiple ‘intervals’ can merge together without major penalty (and should be merged together). It looks like a lot of these interval trees (including ph trees) are best when the intervals need to be kept separate.
There is a part of my algorithm where ph trees might be useful though. I’ll have to give it some though.
I’m kind of shocked that a basic binary tree ended up being so usable. Its a classic for a reason, lol. I guess I saw the intervals and got confused and overcomplicated things…
Mexico was importing these car parts and then exporting the Truck back to USA. Because we Tariffed Mexico and Canada, the Mexico and Canadian factories are closing down.
Which is now closing down factories in the heartland of America.
Lose lose for everyone. Who is the winner when the singular Truck was being made across Mexico, USA AND Canada?? Tariffs have now ruined the price of these parts and consolidation efforts, so now everyone is losing their jobs.