The concept of algorithm
algorithm is the essence of computer processing of information, because it is on a computer program is essentially an algorithm that tells the computer the exact steps to perform a specified task. Generally, when the information processing algorithm, reads data from the storage device or the address input data, writes the result to an output device or a memory address for later recall.
Algorithm is independent of the presence of a problem-solving methods and ideas.
For the algorithm, language is not important, important is the idea.
Algorithm can have different language to describe the implementation version (described as C, C ++ description, Python description, etc.).
Five characteristics Algorithm
Input: 0 algorithm having a plurality of inputs or
outputs: algorithm outputs at least one or more of
the finite exemplary: algorithm after the step of automatically limited infinite loop without ends, and each step may be completed within an acceptable time
deterministic: algorithms each step has a definite meaning, ambiguity will not appear
feasible: every step of the algorithm are feasible, which means that every step possible to perform a limited number of completed
original link: https: //blog.csdn.net/weixin_42008209/article/details/80159564