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

2类数列问题循环不变式开发策略研究与应用
引用本文:古素梅,杨庆红.2类数列问题循环不变式开发策略研究与应用[J].江西师范大学学报(自然科学版),2020,44(3):307-312.
作者姓名:古素梅  杨庆红
作者单位:江西师范大学计算机信息工程学院,江西 南昌 330022
摘    要:该文通过对组合数学中Catalan数列问题和Fibonacci数列问题进行深入研究,利用归纳推理、组合数学中的加法和乘法原理等方法得到问题求解函数,使用变量记录算法求解过程中子问题的解,并约束循环变量的变化范围,获得问题求解算法的循环不变式,由此得到了2类数列问题循环不变式的统一开发策略.以二叉树的形态数问题和阶梯问题为例,利用所提策略开发循环不变式,并基于循环不变式展示了这2类数列问题算法程序的形式化推导过程.

关 键 词:数列问题  循环不变式  可信软件  归纳推理

The Research and Application of Loop Invariant Development Strategy for Two Kinds of Sequence Problems
GU Sumei,YANG Qinghong.The Research and Application of Loop Invariant Development Strategy for Two Kinds of Sequence Problems[J].Journal of Jiangxi Normal University (Natural Sciences Edition),2020,44(3):307-312.
Authors:GU Sumei  YANG Qinghong
Institution:College of Computer Information Engineering,Jiangxi Normal University,Nanchang Jiangxi 330022,China
Abstract:Based on the combination of mathematics in the Catalan sequence and the Fibonacci sequence problems in-depth study,using the method of inductive reasoning,and the methods of addition and multiplication principle of combinatorial mathematics problem solving function,the variable problem of neutron log algorithm process of solution and the change of constraint loop variable range are used,the loop invariant of problem solving algorithm is obtained,giving the problem of two kinds of sequence loop invariant of the unification of the development strategy.Taking binary tree morphological number problem and ladder problem as examples,the proposed strategy is used to develop loop invariants.
Keywords:sequence problem  loop invariant  trustworthy software  inductive reasoning
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《江西师范大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《江西师范大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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