知识卡片
建集摊还成本常数
MAKE-SET 新建秩为零的单节点树,其节点势能为零,原有节点势能不变;实际建集也只花常数时间,因此摊还成本仍是 O(1)。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 建集摊还成本常数
原书出处 · 1 处
- 第19章 不相交集合的数据结构 · 查看原书依据
Lemma 19.11 The amortized cost of each MAKE-SET operation is O(1). Proof Suppose that the qth operation is MAKE-SET(x). This operation creates node x with rank 0, so that ϕq(x) = 0.
参考来源
- 位置:《算法导论(第4版)》第19章《不相交集合的数据结构》(OEBPS/chapter019.xhtml,文本字符[30000,35000))。
- 结论依据:引理19.11将建集实际成本与零势能变化相加。
- 原始内容:Lemma 19.11 The amortized cost of each M AKE -S ET operation is O (1). Proof Suppose that the q th operation is M AKE -S ET ( x ). This operation creates node x with rank 0, so that ϕ q ( x ) = 0.