retagged by
607 views

2 Answers

Best answer
1 votes
1 votes

∑O(n) = $\sum _{i=1}^{n}$ O (n) = O(n)  $\sum _{i=1}^{n}$ 1 why because O(n) is constant

∑O(n) =  O(n)  { 1+1+1+...+1 ( n times ) }

          = O(n) . n = O(n2)  like that

 ∑O(n2) = O(n2)  { 1+1+1+...+1 ( n times ) }

             = O(n2) . n = O(n3

selected by
0 votes
0 votes

This is the proof for the first part

Related questions