Art of computer programming - Knuth Donald E (New Jersey Addison-Wesley, 2005)
V4, fascicle 3: Generating all combinations and partitions
Keywords: Computer algorithms; Computer programming