retagged by
1,988 views
1 votes
1 votes
Please explain what is mean by asymptotically faster?

okk so if we have two time complexity T(n) and F(n)

T(n)=O(n^2)

F(n)= O(n^2 logn)

i am actually confused by the fact that asymptotically faster means it is doing faster than other one for same input or getting less time ( MEANS ONE GETTING LOWER VALUE IS MORE FASTER) OR IT IS JUST SIMPLE TIME COMPLEXITY COMPARISON.

means from my 1st case  O(n^2)> O(n^2logn)

for 2nd O(n^2)<O(n^2logn)

so please help what does it exactly means
retagged by

1 Answer

3 votes
3 votes
Asymptotically faster means that eventually it grows larger, but doesn't strictly mean that it's always going to be faster at the beginning. i.e. n^2 grows asymptotically faster than 10*n as n goes to infinity. For n < 10, n^2 < 10*n, but for n > 10, n^2 > 10*n. This is what big-O is about, eventually O(n^2) will grow faster than O(n).

NOTE: if an algorithm X  is asymptotically Faster than other algorithm Y for same set of input, it means X will take more time than Y so, Y is efficient than X.
edited by

Related questions

0 votes
0 votes
0 answers
1
aka 53 asked Nov 25, 2017
338 views
I wanted to know how θ is derived for a problem. Can we write it directly Example n^4 + n^3+ n^2 Here worst case will be n^4 since it is the term with highest power(wors...
3 votes
3 votes
2 answers
2
Manu Thakur asked Aug 15, 2017
860 views
f(n) = $n*2^{n}$g(n) = $e^n$What is the relation b/w the asymptotic time complexities of f(n) and g(n)?
1 votes
1 votes
1 answer
3
Çșȇ ʛấẗẻ asked Jan 3, 2017
202 views
Assume we are given that f(n) = Οg(n), then which of the following can be stated true2f(n) = Ο(2g(n)) log f(n) = Ο(log (g(n))g(n) ≠ Ω f(n)None of these
1 votes
1 votes
1 answer
4
Anu asked May 14, 2015
459 views
How n + n/2 + n/4 + .... 1 can approximate it as an infinite GP?Is it =1+2+4+8+..........n/4 + n/2 +n ?=O(2^n) ?