摘要: 关于全排列的算法研究,有很多,不论述了。采用非递归的算法,是首选。直接上传微软给出的算法: /* * 字符串全排列最优算法(非递归置换) */ public void permutation(char str[],int m,boolean duplicate){ int n = str.lengt 阅读全文
posted @ 2016-11-23 17:05 佟学强 阅读(246) 评论(0) 推荐(0) 编辑