Complexity for nested loops dividing by 2

后端 未结 3 1462
感动是毒
感动是毒 2020-12-29 14:19

I am trying to figure out the complexity of a for loop using Big O notation. I have done this before in my other classes, but this one is more rigorous than the others becau

3条回答
  •  天涯浪人
    2020-12-29 14:33

    To formally solve the your algorithm's time complexity, you may use the following steps with Sigma notation:

    enter image description here

    Also, take a look a the last slide of this very interesting document by Dr. Jauhar.

提交回复
热议问题