in Algorithms retagged by
590 views
1 vote
1 vote

 

in Algorithms retagged by
by
590 views

4 Comments

edited by
a=2,x=8 a+x=10

is answer is 10?
0
0
$\frac{n(n+1)}{2}  \frac{n^2(n^2+1)}{2}=O(n^6)$  Right??

So a+x = 8.
0
0
noo time complexity is 0(n^8) check it properly brother .....
0
0
Ok.. I got it..(earlier i take i=1 to n but it is n²).
0
0

1 Answer

0 votes
0 votes
Best answer

 time complexity of this code  is 0(n^8) 

after apply this formula (a^(xlog2n)) than (a^(log2n^x)) solving this formula we got a=2,x=8 a+x=10

 

 

2 Comments

how the a's value became 2? please explain.
0
0
edited by
$O(a^{xlog_{2}n}) = O(a^{log_{2}(n^{x})})  = O((n^{x}){^{log_{2}a}}) = O(n^8)$

So, $a=2$ to make  $log_{2}2=1$
0
0

Related questions

0 votes
0 votes
2 answers
1
Gate Fever asked in Algorithms Sep 27, 2018
1,955 views
Gate Fever asked in Algorithms Sep 27, 2018
2.0k views
0 votes
0 votes
1 answer
2
0 votes
0 votes
3 answers
3