首页 | 官方网站   微博 | 高级检索  
     

24点问题的一种简易算法的设计与实现
引用本文:黄复贤.24点问题的一种简易算法的设计与实现[J].电子科技,2005(9):52-55.
作者姓名:黄复贤
作者单位:菏泽学院,计算机与信息工程系,山东,菏泽,274015
摘    要:实践是敏捷软件开发的核心,对代码要求精益求精,在开发的过程中,简单设计,用测试驱动,通过重构和迭代代码实现设计.24点问题是一类趣味数字游戏问题,开始想用递归思想解决,在编写代码的过程中,写出了递推的过程,程序重复的地方太多,经过重构写出了递归算法,在增量式开发中应用重构技术实现了递归算法并对算法进行了扩展.

关 键 词:24点问题  递归  增量式开发  重构
收稿时间:2004-12-29
修稿时间:2004年12月29

The Design and Realization of a Simplified Algorithm for the 24-Point Problem
Huang Fuxian.The Design and Realization of a Simplified Algorithm for the 24-Point Problem[J].Electronic Science and Technology,2005(9):52-55.
Authors:Huang Fuxian
Abstract:Practice is the core of agile software development. The requirement on the code quality is high. In the development, the design is simple, driving is achieved by testing and code design is realized through refractor and iteration. The 24 point problem is an interesting arithmetic figure game. In the beginning the author intends to use recursion but in the coding process he finds a lot of programs are repeated. At last recursion is realized by refractoring the code. Refractoring is applied in increase development to realize recursion and the algorithm is extended in some way.
Keywords:24 point problem  recursion  increase development  refractor
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号