经常有人把算法和数据结构混淆在一起
其实这是两个完全不同的东西
算法的定义:定义良好的计算过程,它取一个或一组值作为输入,并产生一个或一组值作为输出,即,算法就是一系列的计算步骤,用来将输入数据转换成输出结果.(来自算法导论)
原文: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.