Abstract:
This paper introduces a common method of arbitrary n multiple circulation, gives the frame of recursive and non-recursive algorithm for arbitrary n multiple circulation, studies how to control circulation variable to optimize program. At last, the application of this method is explained by the problem of subset-sum, the problem of all sequence permutation and the problem of N-queen.
摘要: 提出了任意n重循环设计的一般方法,给出了设计n重循环的递归和非递归程序框架,研究如何控制循环变量的变化以使程序达到最优。最后通过子集和问题、数的全排列和n皇后问题来说明上述方法的应用。
关键词:
任意n重循环,
程序设计,
算法
CLC Number:
XIAO Jianhua1, OUYANG Hao2, HE Hong1,2. Design Method and Application of Arbitrary N Multiple Circulation[J]. , 2004, 30(22): 81-83.
肖建华,欧阳浩,何宏. 任意N重循环的设计方法与应用[J]. , 2004, 30(22): 81-83.