ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
combinatorial Directory Reference

Files

 
Bitwise.h
 The broadword tricks of Knuth (section 7.1.3 of The Art of Computer Programming), beyond the book: operations on the 64 bits of a word as on a vector of bits, with a few instructions and no loop over the bits.
 
FastBitwise.h
 The engineered operations on words and on arrays of words, beyond the book [see Bitwise.h for the broadword tricks of Knuth, which compute the same results by the identities of his section 7.1.3 alone].
 
FastGeneration.h
 The engineered generation of permutations and combinations, beyond the book [see Generation.h for the algorithms of Knuth (section 7.2.1 of The Art of Computer Programming) as written there]: the same objects, with the work per object brought down to a few instructions, so that visit() is the larger part of the time.
 
Generation.h
 The generation of the basic combinatorial objects of Knuth (section 7.2.1 of The Art of Computer Programming), beyond the book [see Enumeration.h for the enumerations by backtrack of chapter 16]: each function calls visit() on every object, in a given order, and returns their number; a visit that returns true stops the generation, and one that returns void never does (as in FastGeneration.h).