Sunday, December 5, 2010

Permutation Algorithms

The two permutation functions are next_permutation() and prev_permutation(): They have the complexity of O(n).

No comments:

Post a Comment