0

Func5(n) 1 s=0; 2 i=6; 3 while (i < n^(5/2)) do 4 j=4; 5 while (j < 5i) do 6 s=s + i - j; 7 j=j + 9 ; 8 end 9 i=4 * i ; 10 end 11 return (s);

So far I got the upper bound for this function is O(n^(5/2)log(n)) and I am not sure if or not this is the closest upper bound we can get. And I have no clue how to show the lower bound with the same function.

Raphael
  • 72,336
  • 29
  • 179
  • 389
Brian
  • 11
  • 2
  • What have you tried? Where did you get stuck? We do not want to just hand you the solution; we want you to gain understanding. However, as it is we do not know what your underlying problem is, so we can not begin to help. See here for tips on asking questions about exercise problems. If you are uncertain how to improve your question, why not ask around in [chat]? – Raphael Sep 16 '18 at 22:28
  • As OP is out of reach, I am voting to close it as duplicate. – John L. Nov 19 '18 at 01:22

0 Answers0