nLab asymptotic notation

Contents

Definition

Big O

Let ℝ\mathbb{R} denote the set of real numbers. Then there is a function

O:(ℝ→ℝ)→𝒫(ℝ→ℝ)O:(\mathbb{R} \to \mathbb{R}) \to \mathcal{P}(\mathbb{R} \to \mathbb{R})

from the set of endofunctions on the real numbers ℝ→ℝ\mathbb{R} \to \mathbb{R} to the set of subsets of endofunctions on the real numbers 𝒫(ℝ→ℝ)\mathcal{P}(\mathbb{R} \to \mathbb{R}), such that given a real-valued endofunction g:ℝ→ℝg:\mathbb{R} \to \mathbb{R}, an real-valued endofunction f:ℝ→ℝf:\mathbb{R} \to \mathbb{R} is said to be in O(g)O(g) if and only if there merely exists positive real numbers c:ℝ +c:\mathbb{R}^+ and n 0:ℝ +n_0:\mathbb{R}^+ such that for all positive real numbers n:ℝ +n:\mathbb{R}^+, if n≥n 0n \geq n_0, then |f(n)|≤c|g(n)|\vert f(n) \vert \leq c \vert g(n) \vert:

f∈O(g)≔∃c:ℝ +.∃n 0:ℝ +.∃n:ℝ +.(n≥n 0)⇒(|f(n)|≤c|g(n)|)f \in O(g) \coloneqq \exists c:\mathbb{R}^+.\exists n_0:\mathbb{R}^+.\exists n:\mathbb{R}^+.(n \geq n_0) \implies (\vert f(n) \vert \leq c \vert g(n) \vert)

If one doesn’t have power sets in the foundations, one would have to define O(g)O(g) as a family of structural subsets: for each g:ℝ→ℝg:\mathbb{R} \to \mathbb{R}, a set O(g)O(g) and an injection i O(g):O(g)↪(ℝ→ℝ)i_O(g):O(g) \hookrightarrow (\mathbb{R} \to \mathbb{R}). Then f∈O(g)f \in O(g) if ff is in the image of i O(g)i_O(g).

Big Omega

Let ℝ\mathbb{R} denote the set of real numbers. Then there is a function

Ω:(ℝ→ℝ)→𝒫(ℝ→ℝ)\Omega:(\mathbb{R} \to \mathbb{R}) \to \mathcal{P}(\mathbb{R} \to \mathbb{R})

from the set of endofunctions on the real numbers ℝ→ℝ\mathbb{R} \to \mathbb{R} to the set of subsets of endofunctions on the real numbers 𝒫(ℝ→ℝ)\mathcal{P}(\mathbb{R} \to \mathbb{R}), such that given a real-valued endofunction g:ℝ→ℝg:\mathbb{R} \to \mathbb{R}, an real-valued endofunction f:ℝ→ℝf:\mathbb{R} \to \mathbb{R} is said to be in Ω(g)\Omega(g) if and only if there merely exists positive real numbers c:ℝ +c:\mathbb{R}^+ and n 0:ℝ +n_0:\mathbb{R}^+ such that for all positive real numbers n:ℝ +n:\mathbb{R}^+, if n≥n 0n \geq n_0, then |f(n)|≥c|g(n)|\vert f(n) \vert \geq c \vert g(n) \vert:

f∈Ω(g)≔∃c:ℝ +.∃n 0:ℝ +.∃n:ℝ +.(n≥n 0)⇒(|f(n)|≥c|g(n)|)f \in \Omega(g) \coloneqq \exists c:\mathbb{R}^+.\exists n_0:\mathbb{R}^+.\exists n:\mathbb{R}^+.(n \geq n_0) \implies (\vert f(n) \vert \geq c \vert g(n) \vert)

If one doesn’t have power sets in the foundations, one would have to define Ω(g)\Omega(g) as a family of structural subsets: for each g:ℝ→ℝg:\mathbb{R} \to \mathbb{R}, a set Ω(g)\Omega(g) and an injection i Ω(g):Ω(g)↪(ℝ→ℝ)i_\Omega(g):\Omega(g) \hookrightarrow (\mathbb{R} \to \mathbb{R}). Then f∈Ω(g)f \in \Omega(g) if ff is in the image of i Ω(g)i_\Omega(g).

Big theta

Let ℝ\mathbb{R} denote the set of real numbers. Then there is a function

Θ:(ℝ→ℝ)→𝒫(ℝ→ℝ)\Theta:(\mathbb{R} \to \mathbb{R}) \to \mathcal{P}(\mathbb{R} \to \mathbb{R})

defined for all real-valued endofunctions g:ℝ→ℝg:\mathbb{R} \to \mathbb{R} as the intersection of the subsets O(g)O(g) and Ω(g)\Omega(g)

Θ(g)≔O(g)∩Ω(g)\Theta(g) \coloneqq O(g) \cap \Omega(g)

By the properties of power sets, given a real-valued endofunction f:ℝ→ℝf:\mathbb{R} \to \mathbb{R}, ff is said to be in Θ(g)\Theta(g) if it is in both O(g)O(g) and Ω(g)\Omega(g).

f∈Θ(g)≔(f∈O(g))∧(f∈Ω(g))f \in \Theta(g) \coloneqq (f \in O(g)) \wedge (f \in \Omega(g))

If one doesn’t have power sets in the foundations, one would have to define Θ(g)\Theta(g) as a family of structural subsets: for each g:ℝ→ℝg:\mathbb{R} \to \mathbb{R}, a set Θ(g)\Theta(g) and an injection i Θ(g):Θ(g)↪(ℝ→ℝ)i_\Theta(g):\Theta(g) \hookrightarrow (\mathbb{R} \to \mathbb{R}). Then f∈Θ(g)f \in \Theta(g) if ff is in the image of i Θ(g)i_\Theta(g).

 Examples

Let pp be a real polynomial function with degree nn. Then p∈Θ(λx:ℝ.x n)p \in \Theta(\lambda x:\mathbb{R}.x^n).

References

Last revised on July 17, 2023 at 13:26:46. See the history of this page for a list of all contributions to it.