跳转至

Lec 1. AVL Trees, Splay Trees and Amortized Analysis

约 77 个字 预计阅读时间不到 1 分钟

Amortized Analysis

Example

一些练习题:

  • Multipop-stack
  • Binary Counter(和 Binomial Queue 是一样的)
  • Dynamic Array,包括只支持扩容的和支持扩缩容的
    • 扩容的情况有 \(c_i = \begin{cases} i & \text{if } i = 2^k \\ 1 & \text{otherwise.} \end{cases}\)
    • 扩缩容的 vector 在什么情况下会退化?

评论区