Large o symbol/large ω sign/large theta symbol/small o symbol/small w symbol etc various algorithms complexity notation meaning __ algorithm complexity definition symbol

Source: Internet
Author: User

The large o sign (English: Big O notation) is a mathematical symbol used to describe the asymptotic behavior of a function. To be more precise,


It uses another (usually simpler) function to describe the asymptotic upper bound of a function's order of magnitude.


The definition of the large Omega symbol is similar to that of the big O symbol, but the main difference is that the large O sign function grows to a certain


The degree is always less than a particular function of the constant number of times, the large Omega symbol is always greater than, to describe a function of the order of magnitude


asymptotically lower bound.


The large theta symbol is the combination of the Big O symbol and the large Omega symbol. The specific mathematical definitions are given below:


The function f (n) represents the workload (efficiency) of an algorithm in the case of an input size of n, then when n tends to be large, we compare F (n) with the function g (n) known to another behavior:

1 if 0, it is said that f (n) is strictly less than g (n) on the order of magnitude, and is written as f (n) =o (g (n)).

2 If, then the F (N) is said to be strictly greater than g (n) on the order of magnitude (n) =w (g (n)).

3) If c, where C is a non 0 constant, it is said that f (n) is equal to G (n) at the order of magnitude, that is, f (n) and g (n) are the same order of magnitude, which is: f (n) =θ (g (n)).

4 if f (n) is less than or equal to G (n) at the order of magnitude, it is written as f (n) =o (g (n)).

5 if f (n) is greater than or equal to G (n) at the order of magnitude, it is written as f (n) =ω (g (n)).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.