From 63d474bbb9b7f1eb416fe9dcc2e7a44ce1c142a2 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 9 Nov 2021 20:25:15 -0500 Subject: [PATCH] [F] A4 P1.3 Fix --- assignments/a4/a4.tex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assignments/a4/a4.tex b/assignments/a4/a4.tex index 10c3ab1..947c97c 100644 --- a/assignments/a4/a4.tex +++ b/assignments/a4/a4.tex @@ -89,8 +89,10 @@ Therefore $k\log_{14}n \geq k\log_{14}n$. $$\forall f, g: \N \to \R^{\geq 0},~ g \in \cO(f) \land \big(\forall m \in \N,~ f(m) \geq 1 \big) \Rightarrow g \in \cO(\floor{f})$$ \begin{proof} -Assume: $$\big(\forall m \in \N,~ f(m) \geq 1 \big) \Rightarrow g \in \cO(\floor{f})$$ -Also assume: $$\exists c_0, n_0 \in \R^+, \forall n \in \N, n \geq n_0 \Rightarrow g(n) \leq c_0 \cdot f(n)$$ +Assume: +$$\forall m \in \N,~ f(m) \geq 1$$ +Also assume $g \in O(f)$, that is: +$$\exists c_0, n_0 \in \R^+, \forall n \in \N, n \geq n_0 \Rightarrow g(n) \leq c_0 \cdot f(n)$$ WTS: $$\exists c_1, n_1 \in \R^+, \forall n \in \N, n \geq n_1 \Rightarrow g(n) \leq c_1 \cdot \floor{f(n)}$$ Choose $n_1 = n_0$ and $c_1 = 2c_0$.