Permutation Generation Methods (1977) [pdf]
sedgewick.io