Insert and Remove Performance of Boost’s flat_set v.s. std::set
R-bloggers 2014-01-16
Summary:
The standard way to represent an ordered set of numbers is with a binary tree. This offers a good mix of performance properties as the number of elements gets large. In particular it offers O(log(n)) operations insertion/deletion, O(log(n)) operations to find an element. Finding the ith element of the set takes more time, O(n) operations [...]