math.combinatorics vocabulary
Factor handbook » Vocabulary index


Summary
Permutations and combinations

Metadata
Parents:math
Tags:math
Authors:Slava Pestov, Doug Coleman, Aaron Schaefer


Words

Tuple classes
ClassSuperclassSlots
Image combinationsImage tupleseq k length
Image k-permutationsImage tuplelength skip k seq
Image permutationsImage tuplelength seq


Ordinary words
WordStack effect
Image <combinations>( seq k -- combinations )
Image <k-permutations>( seq k -- permutations )
Image <permutations>( seq -- permutations )
Image all-combinations( seq k -- seq' )
Image all-combinations-with-replacement( seq k -- seq' )
Image all-combinations-with-replacement?( ... seq k quot: ( ... elt -- ... ? ) -- ... ? )
Image all-combinations?( ... seq k quot: ( ... elt -- ... ? ) -- ... ? )
Image all-permutations( seq -- seq' )
Image all-permutations?( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Image all-selections( seq n -- seq' )
Image all-selections?( seq n -- ? )
Image all-subsets( seq -- subsets )
Image all-unique-combinations( seq n -- seq' )
Image all-unique-permutations( seq -- seq' )
Image combination( m seq k -- seq' )
Image count-combinations( ... seq k quot: ( ... elt -- ... ? ) -- ... n )
Image count-combinations-with-replacement( ... seq k quot: ( ... elt -- ... ? ) -- ... n )
Image count-permutations( ... seq quot: ( ... elt -- ... ? ) -- ... n )
Image count-selections( ... seq n quot: ( ... elt -- ... ? ) -- ... n )
Image each-combination( ... seq k quot: ( ... elt -- ... ) -- ... )
Image each-combination-with-replacement( ... seq k quot: ( ... elt -- ... ) -- ... )
Image each-permutation( ... seq quot: ( ... elt -- ... ) -- ... )
Image each-selection( ... seq n quot: ( ... elt -- ... ) -- ... )
Image each-unique-permutation( ... seq quot: ( ... elt -- ... ) -- ... )
Image factorial( n -- n! )
Image filter-combinations( ... seq k quot: ( ... elt -- ... ? ) -- ... newseq )
Image filter-combinations-with-replacement( ... seq k quot: ( ... elt -- ... ? ) -- ... newseq )
Image filter-permutations( ... seq quot: ( ... elt -- ... ? ) -- ... newseq )
Image filter-selections( ... seq n quot: ( ... elt -- ... newelt ) -- ... newseq )
Image find-combination( ... seq k quot: ( ... elt -- ... ? ) -- ... elt/f )
Image find-combination-with-replacement( ... seq k quot: ( ... elt -- ... ? ) -- ... elt/f )
Image find-permutation( ... seq quot: ( ... elt -- ... ? ) -- ... elt/f )
Image find-selection( ... seq n quot: ( ... elt -- ... ? ) -- ... elt/f )
Image inverse-permutation( seq -- permutation )
Image map-combinations( ... seq k quot: ( ... elt -- ... newelt ) -- ... newseq )
Image map-combinations-with-replacement( ... seq k quot: ( ... elt -- ... newelt ) -- ... newseq )
Image map-permutations( ... seq quot: ( ... elt -- ... newelt ) -- ... newseq )
Image map-selections( ... seq n quot: ( ... elt -- ... newelt ) -- ... newseq )
Image map>assoc-combinations( ... seq k quot: ( ... elt -- ... key value ) exemplar -- ... assoc )
Image map>assoc-combinations-with-replacement( ... seq k quot: ( ... elt -- ... key value ) exemplar -- ... assoc )
Image nCk( n k -- nCk )
Image nPk( n k -- nPk )
Image next-permutation( seq -- seq )
Image permutation( n seq -- seq' )
Image reduce-combinations( ... seq k identity quot: ( ... prev elt -- ... next ) -- ... result )
Image reduce-combinations-with-replacement( ... seq k identity quot: ( ... prev elt -- ... next ) -- ... result )
Image reduce-permutations( ... seq identity quot: ( ... prev elt -- ... next ) -- ... result )
Image reduce-selections( ... seq n identity quot: ( ... prev elt -- ... next ) -- ... result )


Class predicate words
WordStack effect
Image combinations?( object -- ? )
Image k-permutations?( object -- ? )
Image permutations?( object -- ? )


Files


Metadata files


Children from resource:extra
VocabularySummary
Image math.combinatorics.bitsBitwise permutations