??? 12/14/06 15:22 Read: times |
#129473 - Use of the table/algorithm Responding to: ???'s previous message |
What I want to do with the table is to traverse all the subsets of a set of (8/16) elements, sorted by the number of elements in the subset.
The program starts with entry 0 of the table, 0xFF. Eight bits are set, so it represents the original set of 8 elements. Entry 1 is 0x7F - so its a set of 7 elements, missing the left-most one. And so on. |