Combinatorica`
Combinatorica`
NextKSubset
NextKSubset[l,s]
gives the -subset of list l, following the -subset s in lexicographic order.
更多信息和选项
- To use NextKSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
NextKSubset[l,s]
gives the -subset of list l, following the -subset s in lexicographic order.