Recent questions tagged asymptotic-notations

2 2 votes
1 1 answer
811
811 views
Assume that $f(n)$ and $g(n)$ are asymptotically positive. Which of the following is correct?$f(n)=O(g(n))$ and $g(n)=O(h(n)) \Rightarrow f(n)=\omega(h(n))$$f(n)=\Omega(g...
0 0 votes
1 1 answer
787
787 views
Let A be a sorted array of distinct integers of length n. Design an algorithm to find an index i such that A[i] = i if such an index exists. If there are more than one su...
0 0 votes
0 0 answers
816
816 views
Consider f(n) and g(n) be asymptotic non-negative functions. So here can we say that min(f(n), g(n)) = Θ(f(n) + g(n))My proof for thisFor f(n) = Θ(g(n))c1*g(n) $\leq $ f(...
0 0 votes
0 0 answers
426
426 views
Please list out the best free available video playlist for Asymptotic Worst-Case Time and Space Complexity from Algorithm as an answer here (only one playlist per answer)...
0 0 votes
1 1 answer
512
512 views
Arrange the following in increasing orders of asymptotic complexity.$f1(n)=2^{n}, f2(n)=n^{\frac{3}{2}}, f3(n)=n\log n,f4(n)=n^{\log n}$$f3, f2, f4, f1$$f3, f2, f1, f4$$f...
1 1 vote
1 1 answer
750
750 views
BigO notation ofT(n)=T(n-1)+ √n ; n>=1 =0. ; Otherwise
0 0 votes
0 0 answers
674
674 views
Iterative functions:f(n)= n/lognc=2What is f*(n) ?How to solve this question?
14 14 votes
4 4 answers
1.8k
1.8k views
Let $S(n)$ be$$S(n)=S(n / 2)+\log (n) .$$What will be asymptotic bound on $S(n)$?$\Theta(n \log n)$$\Theta(\log n)$$\Theta(\log \log n)$$\Theta\left((\log n)^ 2\right)$
24 24 votes
3 3 answers
2.7k
2.7k views
Let $T(n)=T(a n)+T(b n)+n,$ where $a+b<1$.What will be asymptotic bound on $T(n)?$$\Theta(n)$$\Theta\left(n^ 2\right)$$\Theta(n \log n)$$\Theta((a+b) \log n)$
7 7 votes
2 2 answers
1.0k
1.0k views
Let $T(n)$ be$$T(n)=16 T(n / 4)+n^{2}(\log n)^{3}$$What will be asymptotic bound on $T(n)?$$\Theta\left(n^ 2(\log n)^ 3\right)$$\Theta\left(n^ 2(\log n)^ 4\right)$$\Theta...
6 6 votes
3 3 answers
936
936 views
Let $T(n)$ be$$T(n)=64 T(n / 4)+8^{\log _{2} n}$$What will be asymptotic bound on $T(n)?$ $\Theta\left(n^ 3(\log n)^ 3\right)$$\Theta\left(n^ 3\right)$$\Theta\left(n^ 3 \...
71 71 votes
3 answers 3 answers
3.7k
3.7k views
Let $T(n)=2 T(n / 2)+O(n),$ where "$O$" is big-oh. What will be asymptotic bound on $T(n)?$$\Theta(n)$$\Theta(n \log n)$$\Theta\left(n^ 2\right)$$O\left(n^ 3\right)$
16 16 votes
3 3 answers
2.1k
2.1k views
Let $T(n)$ be$$T(n)=T(\sqrt{n})+\log \log n$$What will be asymptotic bound on $T(n)?$$\Theta(\log n)$$\Theta((\log \log n)^2)$$\Theta(\log \log \log n)$$\Theta(\log \log ...
10 10 votes
3 3 answers
1.2k
1.2k views
Let $T(n)$ be$$T(n)=2 T(\sqrt{n})+\log n$$What will be asymptotic bound on $T(n) ?$$\Theta(\log n)$$\Theta(\log \log n)$$\Theta(\log n \log \log n)$$\Theta(n \log n)$
4 4 votes
1 1 answer
590
590 views
Let $T(n)$ be$$T(n)=T(n-1)+n^{2} $$$$T(1) = 1$$What will be asymptotic bound on $T(n) ?$$\Theta\left(\mathrm{n}^ 2\right)$$\Theta\left(n^ 3\right)$$\Theta\left(n^ 4\right...
15 15 votes
2 2 answers
2.1k
2.1k views
Let $T(n)$ be$$T(n)=n^{2}+T(n / 2)+T(n / 4)$$What will be asymptotic bound on $T(n)?$ $\Theta\left(n^ 2\right)$$\Theta\left(n^ 3\right)$$\Theta\left(n^ 4\right)$$\Theta\l...
19 19 votes
6 6 answers
1.9k
1.9k views
Let $$T(n)=\sqrt{n} \cdot T(\sqrt{n})+n$$What will be asymptotic bound on $T(n) ?$$\Theta(\sqrt{n} \log n)$$\Theta(\log \log n)$$\Theta(n \log \log n)$$\Theta(\sqrt{n} \l...
30 30 votes
6 answers 6 answers
2.8k
2.8k views
Let $T(n)$ be$$T(n)= \begin{cases}2 T(n / 2)+8 T(n / 4)+n^{2} & \text { if } n \geq 4 \\1 & \text { if } n \leq 3\end{cases}$$What will be asymptotic bound on $T(n)?$ $\T...
4 4 votes
1 1 answer
506
506 views
Let $T(n)$ be$$T(n)=T(\sqrt{n})+1$$What will be asymptotic bound on $T(n)$?$\Theta(\log n)$$\Theta(\sqrt{n})$$\Theta(\log \log n)$$\Theta\left((\log n)^ 2\right)$
32 32 votes
7 7 answers
2.4k
2.4k views
Select the correct asymptotic complexity of an algorithm with runtime $T(n, n)$ where$T(x, c)=\Theta(x) \quad$ for $c \leq 2$,$T(c, y)=\Theta(y) \quad$ for $c \leq 2$, an...
36 36 votes
4 4 answers
2.4k
2.4k views
Consider mutually recursive definitions of $T(a, b)$ and $S(c, d)$ :$$\begin{array}{rlr}T(x, c) & =\Theta(x) & \text { for } c \leq 2 \\T(x, y) & =\Theta(x)+S(x, y / 2), ...
59 59 votes
3 3 answers
3.5k
3.5k views
A list of $n$ arrays, each of length $n,$ is passed to an algorithm like merge-sort. The algorithm recursively divides a set of arrays into two parts until there are only...
7 7 votes
1 1 answer
855
855 views
Consider a recurrence relation.$$T(n)=\alpha T(n / 2)+n^{2} .$$Let $a \geq 1$ be an integer.Which of the following is/are true?For $\alpha>4, T(n)=\theta\left(n^{\lg \alp...
14 14 votes
3 3 answers
1.6k
1.6k views
Let $T(n)$ be$$T(n)=2 T\left(\frac{n}{2}\right)+\frac{n}{\lg n}$$$T(2) =1$What will be asymptotic bound on $T(n) ?$$\Theta\left(n^ 2(\log n)\right)$$\Theta\left(n(\log n)...