News for hackers. Stuff that matters.
Re:How does SQLite work? Part 2: btrees by fnord123 on Monday June 29, 2020 @02:08AM (#23674837)
Heapq is a priority queue implemented on a binary tree; not a btree.

> I dont say it's not a good DS, but having it in all languages stdlib seems overkill given the tool we have today.

C++ has map and Java has TreeMap. These are both red black trees (which are equivalent to btrees where k=4). So there's no question of whether there are ordered mapping types in these languages. IMO they'd be better as b(+)rees with a wider fanout. That's all.

There are no comments on this comment yet.