Complexity of algorithms and complexity of tasks. What are the differences?

I would like to know the difference between the complexity of the algorithm and the complexity of the problem , that is, that the points are different from two things

+4
source share
1 answer

Good question! Most people do not distinguish between the two, this is a big no-no.

Simply put, the complexity of the algorithm is the running time of the algorithm. This can be represented in many ways: big O, big aunt, or any of the various Landau Notations . There are also other representations, but most often used in the notes of large O, which can be used to analyze the worst time complexity of the algorithm depending on the size of the input.

, (wiki ). , , n log n. , , , , n log n . , , Omega(n log n).

, - , . , , !

+3

Source: https://habr.com/ru/post/1680039/


All Articles