Recent questions tagged asymptotic-notations

2 2 votes
2 2 answers
274
274 views
Let $n$ be a positive integer.Consider the two statements below:$\text{S1:}$ If $f(n)>g(n)$ for all $n$ then $g(n)$ is ALWAYS o( $f(n))$. where $o$ is small-oh.$\text{S2:...
0 0 votes
1 1 answer
559
559 views
2 2 votes
1 1 answer
773
773 views
int main(){ int c = 0; for(int i = 1; i < n : i++){ for(int j = i + 1; j <= n; j++){ for(int k = 1; k <= j; k++){ c = c + 1; } } } return 0; }What will be the itme comple...
1 1 vote
1 1 answer
231
231 views
Consider the following two recurrence relations:$T_{1}(n)=T_{1}\left(\frac{n}{2}\right)+T_{1}\left(\frac{n}{3}\right)+\Theta(n), T_{1}(1)=2$$T_{2}(n)=T_{2}\left(\frac{2 n...
0 0 votes
0 0 answers
210
210 views
Let $f: \mathbb{N} \rightarrow \mathbb{N}$ and $g: \mathbb{N} \rightarrow \mathbb{N}$ be functions over the set $\mathbb{N}$ of natural numbers. We will say:$f(n)=O(g(n))...