摘要:
转帖自:http://blog.csdn.net/gaotong2055/article/details/8637745集合R={1,2,3,4}的全排列可以分解为:1,{2,3,4}的全排列 + 2,{1,3,4}的全排列 + 3,{1,2,4}的全排列 + 4,{1,2,3}的全排列。继续分解:{2,3,4} 为 2,{3,4}的全排列,3,{2,4}, 4,{2,3}…………………………………………直到集合里只有一个元素,就可直接输出了.c语言代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include < 阅读全文
posted @ 2013-03-10 21:41
hacker_hzh
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号