摘 要:算法是用于解决一个实际问题而采取的方法或思路,通过自然语言、流程图的方式可以将算法实现的基本步骤和流程表示出来。算法具有有穷性、确定性、有效性等特点,对于同一个问题,其实现的算法可以有多个。一般为了有效地解决实际问题,不仅要保证算法正确,还要考虑到算法的质量,所以选择一个合适的算法尤其重要。在进行了算法的表示之后,可以利用相应的程序设计语言将算法实现,最终解决实际问题。
关键词:算法;程序设计;线段分割
中图分类号:TP311.1 文献标识码:A 文章编号:2096-4706(2019)22-0107-03
Application of Algorithm in Program
WANG Xuemei
(Shandong Huayu University of Technology,Dezhou 253034,China)
Abstract:The algorithm is a method or idea used to solve a practical problem. Through the natural language and flow chart,the basic steps and processes of the algorithm can be expressed. The algorithm has the characteristics of poverty,certainty,validity,etc. For the same problem,there are many algorithms that can be implemented. In general,in order to effectively solve practical problems,not only to ensure the correctness of the algorithm,but also to consider the quality of the algorithm. Therefore,it is particularly important to choose a suitable algorithm. After the representation of the algorithm,we can use the corresponding programming language to implement the algorithm and finally solve the actual problem.
Keywords:algorithm;program design;segment segmentation
参考文献:
[1] 杨克昌. 计算机常用算法与程序设计教程 [M]. 北京:人民邮电出版社,2008.
[2] 谭浩强.C 程序设计:第5 版 [M]. 北京:清华大学出版社,2017.
[3] 顾民. 程序设计中的算法优化思考 [J]. 中国新通信,2018,20(1):65.
作者简介:王学梅(1979.08-),女,汉族,山东德州人,教师,讲师,硕士,研究方向:数据库应用、软件开发。