Thursday, February 16, 2006

Permutation count

Given a permutation of N different objects, map it uniquely to an integer from 0 to N!-1, and vice versa. Variable-base number system. (factorial).

No comments :