Re:Algorithms for Modern Hardware
by deadlypointer on Saturday March 16, 2024 @03:26AM
(#39723976)
Std::set is using red black trees, did you mean std unordered set?
[ Parent
| on HN ]
Re:Algorithms for Modern Hardware
by anonymoushn on Saturday March 16, 2024 @05:06AM
(#39724369)
yes, the common complaint about separate chaining being effectively mandatory is about unordered_map and unordered_set. It looks like std::set suffers from essentially the same pathology though: you cannot use implementations with good data layouts (b-trees) because the standard imposes unreasonable requirements about iterator invalidation.