美文网首页
Midterm cheat sheet CS381

Midterm cheat sheet CS381

作者: 成江 | 来源:发表于2018-02-05 01:32 被阅读18次

    For every b > 1 and every x > 0, we have logb n = O(nx).
    For every r > 1 and every d > 0, we have nd = O(rn).

    2log3n = nlog23

    T(n) = T(n/3) + T(2n/3) + cn, T(n) is O(nlgn).

    Proof of T(n) is Ω(nlgn):

         T(n) ≥ (work done by leftmost leaves) + (cn⋅hleft)
                 ≥T1⋅2log3(n)+cn⋅log3(n)
                 =T1⋅nlog3(2)+cn⋅log3(n)
                 ≈T1⋅n0.63+cn⋅log3(n)
                 =Ω(nlgn)

    相关文章

      网友评论

          本文标题:Midterm cheat sheet CS381

          本文链接:https://www.haomeiwen.com/subject/jizvzxtx.html