Aritalab:Lecture/Algorithm/BigO

From Metabolomics.JP
< Aritalab:Lecture | Algorithm(Difference between revisions)
Jump to: navigation, search
(New page: ==O記法== ;定義 O( ) 関数 f(x) が正の定数 c と適当な値 x<sub>0</sub> に対して : f(x) ≤ c g(x)   (∀ x ≥ x<sub>0</sub>) を満たすならば : f(x) = O...)

Revision as of 14:09, 18 October 2010

O記法

定義 O( )

関数 f(x) が正の定数 c と適当な値 x0 に対して

f(x) ≤ c g(x)   (∀ x ≥ x0)

を満たすならば

f(x) = O(g(x))

と書く。つまり、O記法は関数の上限を与える。

定義 Ω( )

関数 f(x) が正の定数 c と適当な値 x0 に対して

f(x) ≥ c g(x)   (∀ x ≥ x0)

を満たすならば

f(x) = Ω(g(x))

と書く。つまり、Ω記法は関数の加減を与える。

定義 Θ( )

関数 f(x) が

f(x) = O(g(x)), f(x) = Ω(g(x))

を満たすならば

f(x) = Θ(g(x))

と書く。

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox