摘要:        
有关康拓展开的介绍,请看百度百科:http://baike.baidu.com/view/437641.htm下面是康拓展开的逆运算的函数,acm中常常用到:#include<iostream>using namespace std;int fac[] = {1,1,2,6,24,120,720,5040,40320}; //i的阶乘为fac[i] /*{1...n}的全排列,中的第k个数为s[] */ void invKT(int n, int k, int s[]) { int i, j, t, vst[8]={0}; k--; for (i=0; ...    阅读全文
posted @ 2012-05-04 09:28
大数据工程师康爸
阅读(361)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号