#What can the efficiency of an algorithm be divided into?
The efficiency of an algorithm can be divided into time efficiency and space efficiency. These two are the main criteria for determining the quality of an algorithm.
Related introduction:
Algorithm efficiency refers to the execution time of the algorithm. The algorithm execution time needs to be measured by the time consumed by the program compiled based on the algorithm when it is run on the computer. In the current computer hardware environment, there is less need to consider this issue, especially in PC programming. The memory space is getting larger and larger, so it is considered less and less. However, a good programmer should be aware of it. Your own program has requirements. If you judge 1,000 fors less once than others, you can save a lot of running time. Therefore, it is of great significance to be able to understand and roughly apply "efficiency measurement".
The above is the detailed content of What can the efficiency of an algorithm be divided into?. For more information, please follow other related articles on the PHP Chinese website!