摘要
针对程序复杂度高的问题,提出在结构化程序设计中利用数学思维方法来进行代码剖析、发现客观规律并归纳抽象,从而实现编程优化的思路。结合Mc Cabe方法对程序进行复杂度度量,来说明利用数学思维进行编程可以明显降低程序的复杂程度,达到编程优化的目的。
To aim at the high complexity of the program, it uses mathematical thinking method in the process of structural design to analyze the code and find the objective laws, so as to achieve the idea of programming optimization. Using the Mc Cabe method to measure the complexity of the program, it can be used to reduce the complexity of the program and achieve the purpose of programming optimization by programming with mathematical thinking.
出处
《微型电脑应用》
2016年第5期20-22,共3页
Microcomputer Applications
基金
青海大学中青年科研基金项目(2015-QGY-11)
青海大学课堂教学改革和考试综合改革项目(KG-14-04)
关键词
数学思维
McCabe方法
程序复杂度
编程优化
Mathematical Thinking
Mc Cabe Mothed
Program Complexity
Programming Optimization