首页 | 本学科首页   官方微博 | 高级检索  
     

任意N重循环的设计方法与应用
引用本文:肖建华,欧阳浩,何宏.任意N重循环的设计方法与应用[J].计算机工程,2004,30(22):81-83.
作者姓名:肖建华  欧阳浩  何宏
作者单位:1. 湖南工程学院计算机系,湘潭,411101
2. 湘潭大学,湘潭,411105
3. 湖南工程学院计算机系,湘潭,411101;湘潭大学,湘潭,411105
摘    要:提出了任意n重循环设计的一般方法,给出了没计n重循环的递归和非递归程序框架,研究如何控制循环变量的变化以使程序达到最优。最后通过子集和问题、数的全排列和n皇后问题来说明上述方法的应用。

关 键 词:程序设计  递归程序  n重循环设计  程序框架
文章编号:1000-3428(2004)22-0081-03

Design Method and Application of Arbitrary N Multiple Circulation
XIAO Jianhua,OUYANG Hao,HE Hong.Design Method and Application of Arbitrary N Multiple Circulation[J].Computer Engineering,2004,30(22):81-83.
Authors:XIAO Jianhua  OUYANG Hao  HE Hong
Affiliation:XIAO Jianhua1,OUYANG Hao2,HE Hong1,2
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.
Keywords:Arbitrary n multiple circulation  Program design  Algorithm
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号