scorpion4377
- 9
- 0
Hey everybody,
I'm a little embarrassed to be asking this question as I feel it is extremely easy, but I will do so anyway. I'm self studying some algorithms, and the book that I'm using claims that
a n^2 + b n + c \in \Omega(n^2)
Of course, this is equivalent to saying that there exists c_1, c_2 \in ℝ^+ such that
0 \leq c_1 n^2 \leq a n^2 + b n + c \leq c_2 n^2 for all n \geq n_0^*
In order to verify this, the book says that I should let c_1 = a/4, c_2 = 7a/4 and n \geq 2 \cdot max(|b|/a, \sqrt{|c|/a}). This would imply that
0 \leq a n^2/4 \leq a n^2 + b n + c \leq 7a n^2/4 for all n \geq n_0^*
I understand that they picked c_1 and c_2 (almost) arbitrarily. However, I just can't see how they picked their lower limit on n given these two constants. I've been messing around with the quadratic equation for a little while now and I just fail to see it.
Any help would be appreciated! I just want to understand the logic of their selection of n_0^*. THanks!
I'm a little embarrassed to be asking this question as I feel it is extremely easy, but I will do so anyway. I'm self studying some algorithms, and the book that I'm using claims that
a n^2 + b n + c \in \Omega(n^2)
Of course, this is equivalent to saying that there exists c_1, c_2 \in ℝ^+ such that
0 \leq c_1 n^2 \leq a n^2 + b n + c \leq c_2 n^2 for all n \geq n_0^*
In order to verify this, the book says that I should let c_1 = a/4, c_2 = 7a/4 and n \geq 2 \cdot max(|b|/a, \sqrt{|c|/a}). This would imply that
0 \leq a n^2/4 \leq a n^2 + b n + c \leq 7a n^2/4 for all n \geq n_0^*
I understand that they picked c_1 and c_2 (almost) arbitrarily. However, I just can't see how they picked their lower limit on n given these two constants. I've been messing around with the quadratic equation for a little while now and I just fail to see it.
Any help would be appreciated! I just want to understand the logic of their selection of n_0^*. THanks!