Home >Common Problem >What are the 5 major features of the program?
The five major characteristics of a program are: 1. Finiteness, the operating steps of an algorithm are limited and cannot be infinite; 2. Determinism, each step in the algorithm must be determined, It cannot be ambiguous; 3. Input, what is needed to execute the algorithm; 4. Output, the result that the program needs to get; 5. Validity, so that the program can run effectively without exceptions.
The five major characteristics of the program are:
1. Finiteness: a The operating steps of the algorithm are limited and cannot be infinite. This is easy to understand. The code of any project is limited, and the operating steps are of course also limited.
2. Determinism: The words that must be determined for each step in the algorithm cannot be ambiguous, like: if what, then, if not, if what, then whatever, this or that, it is not clear which one to choose and how to go about it.
3. Input: What is needed to execute the algorithm, such as comparing the ages of a and b, how do you compare entity data without age.
4. Output : The program is to solve a specific problem, so the program needs to get a result, which is the output.
5. Effectiveness: It is to make the program run effectively without exceptions. , thereby obtaining a specific result.
The above is the detailed content of What are the 5 major features of the program?. For more information, please follow other related articles on the PHP Chinese website!