by acjohnson55 · 9y ago · 0 comments
I did a bunch of research on this while working on a comments system. You pay a price in table space if your hierarchies tend to get very deep. But for most applications I can think of, it's the way to go, which you'll see if you page through to Slide 69.
Yeah, O(n^2) could hurt. I guess you have to have some idea of what average and max depths are to figure out how many rows you're talking about. But the other advantages are pretty compelling.
http://seespotcode.net/2016/04/30/static-trees/
It's got some pretty serious practical limitations, but I found it an interesting exploration.