A Note on Algorithmic Complexity

This documentation includes a time-complexity estimate, in big-O notation, for each algorithm. The n in the complexity estimates is roughly the number of bits in the parameter(s). (More accurately, it's the number of digit_t values needed to hold those bits.) For those algorithms where the complexity calculation differs for different parameters, the parameter is noted as a subscript.

The time complexity is well-known for some algorithms, but for others, I had to make an educated guess. If you discover an error in the listed complexity, please report it.


© Copyright Chad Nelson, 2010-2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)