Art of computer programming - Knuth Donald E (New Jersey Addison-Wesley, 2005)
V 4, fascicle 2; Generating all tuples and permutations
Keywords: Computer algorithms; Computer programming