Nested loops into mathematical model to count number of operations

后端 未结 4 472
野性不改
野性不改 2021-01-13 12:24

I\'m reading the book \'Algorithms - Fourth edition\' by Sedgewick and Wayne and I must admit that some parts in the \"Analysis of Algorithms\" chapter are confusing me! Thi

4条回答
  •  执笔经年
    2021-01-13 12:40

    You can use Sigma notation and discover how to come up with the formula mentioned in your book:

    enter image description here

提交回复
热议问题