Finding equidistant points on a circle
How to find the positions of a number of equidistant points on a circle, including C++ code to do it for you.
Lexicographical index calculation
Finding the index in a container that holds the frequency of elements in lexicographical order. Includes C++ source code for word frequency vectors (that makes use of this index calculation).