摘要: 转载:http://blog.csdn.net/aipb2008/article/details/2227490其实还有一个prev_permutation函数在标准库算法中,next_permutation应用在数列操作上比较广泛.这个函数可以计算一组数据的全排列.但是怎么用,原理如何,我做了简单的剖析.首先查看stl中相关信息.函数原型:template bool next_permutation( BidirectionalIterator_First, BidirectionalIterator_Last );template bool next_permutation( Bidire 阅读全文
posted @ 2013-11-07 20:15 logx 阅读(179) 评论(0) 推荐(0) 编辑