算法(一)介绍

来源:互联网 发布:java并编程实战百度云 编辑:程序博客网 时间:2024/05/20 20:03

经常有人把算法和数据结构混淆在一起

其实这是两个完全不同的东西

算法的定义:定义良好的计算过程,它取一个或一组值作为输入,并产生一个或一组值作为输出,即,算法就是一系列的计算步骤,用来将输入数据转换成输出结果.(来自算法导论)

原文:Informally,an algorithm is any well-defined computational procedure that takes some value,or set of values, as input and and produces some value, or set of values, as
output. An algorithm is thus a sequence of computational steps that transform the
input into the output.



0 0
原创粉丝点击