Permutations/Combinations 
Author Message
 Permutations/Combinations

Quote:

>>                                                    n
>> 2) Count on the bit string (or integer) from 0 to 2 - 1.

>> Its that simple.

>And for your next trick you'll show us a neat way of telling when
>exactly k out of the n bits are set :-)

See * REF NUMBERS

integer_bitcount(INT) -> N                                   [procedure]

:-)

--

                 Department of Computer Science, University of Reading,
                 Whiteknights, Reading, Berkshire, UK, RG6 2AX.



Fri, 11 Aug 1995 20:28:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Permutations/Combinations

2. Lisp code for combinations and permutations

3. help with code for combinations/permutations

4. Permutations vs. Combinations

5. Permutations and combinations

6. Lisp code for combinations and permutations

7. all-permutations is faster than permutation

8. A permutation on permutations

9. Generating permutations

10. Finding permutations

11. All Permutations

12. All permutations

 

 
Powered by phpBB® Forum Software