Home > Common Problem > body text

What can the efficiency of an algorithm be divided into?

藏色散人
Release: 2020-04-16 10:30:21
Original
12271 people have browsed it

What can the efficiency of an algorithm be divided into?

#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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!