算法是指完成一个任务所需要的具体步骤和方法。也就是说给定初始状态或输入数据,经过计算机程序的有限次运算,能够得出所要求或期望的终止状态或输出数据。算法常常含有...
代码说明:
算法是指完成一个任务所需要的具体步骤和方法。也就是说给定初始状态或输入数据,经过计算机程序的有限次运算,能够得出所要求或期望的终止状态或输出数据。算法常常含有重复的步骤和一些比较或逻辑判断。如果一个算法有缺陷,或不适合于某个问题,执行这个算法将不会解决这个问题。不同的算法可能用不同的时间、空间或效率来完成同样的任务。一个算法的优劣可以用空间复杂度与时间复杂度来衡量。 -Algorithm is required to complete a task specific steps and methods. That is a given initial state or input data through a computer program for a limited time operations, able to draw the required or desired end state or output data. Algorithm often contain repeat the steps and some of the more or logical judgments. If an algorithm is defective, or not suitable for a particular problem, the implementation of this algorithm will not solve the problem. Different algorithms may use a different time, space or efficiency to accomplish the same task. Pros and cons of an algorithm can use space complexity and time complexity of the evaluation.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!