tags: algorithm
When describing the complexity of an algorithm, O(1), O(n), O(logn), O(nlogn) are often used to represent the corresponding complexity, but at present, everyone also uses these methods to represent the space complexity by default. .
Then, O(1), O(n), O(logn), O(nlogn) can be seen as not only the algorithm complexity, but also the space complexity.
The form of big O plus (), which actually wraps a function f(), O(f()), indicates the relationship between the time/space consumption of an algorithm and the amount of data growth. Where n represents the amount of input data.

If ax=N (a>0, and a≠1), then the number x is called the logarithm of base N, denoted as x=logaN, read as the logarithm of base N, where a is the logarithm The base of N is called the true number.

When describing the complexity of an algorithm, o(1), o(n), o(logn), o(nlogn) are often used to represent the time complexity of the corresponding algorithm. Here is a summary of what they represent: ...
O(1), O(logn), O(n), O(nlogn), O(n2) is a function used to express the time complexity of the algorithm. Time complexity is often expressed in the big O symbol. There is a function in parentheses afte...
May 09, 2019 When describing the complexity of the algorithm, o(1), o(n), o(logn), o(nlogn) are often used to represent the time complexity of the corresponding algorithm. Here we summarize the meanin...
Reference When describing the complexity of the algorithm, o(1), o(n), o(logn), o(nlogn) are often used to indicate the time complexity of the corresponding algorithm. Here we summarize the meanings t...
The next few articles will introduce how the Linux kernel schedules processes. It is necessary to understand these preparations before learning kernel process scheduling! I believe that many developer...
When describing the algorithm complexity, O (1), O (N), O (LOGN), O (NLOGN) O (1), O (N), O (LOGN) O (NLOGN) O (NLOGN) O is often used. 1), O (n), o (logn), O (nlogn) to represent the degree of corres...
Article catalog First, (gradual) time complexity O ( n ) O(n) O(n) 1, constant order O ( 1 ) O(1) O(1) 2, linear order O ( n ) O(n) O(n) 3, the right order O ( l o g O(log O(logn ) ) ) 4, linear align...
Representation of Java algorithm time complexity: o(1), o(n), o(logn), o(nlogn) When describing algorithm complexity, O(1), O(n), O(logn), O(nlogn) are often used to represent the time complexity of t...
Time complexity refers to the computational workload required to execute the algorithm; and space complexity refers to the memory space required to execute the algorithm. (The complexity of the algori...
Time complexity is often used to measure the quality of an algorithm. Here is how to derive time complexity, that is, various time complexity. How to derive time complexity? The derivation of time com...