知识卡片

普通读书笔记卡 · 3634.a.1

代表元标识整个集合

理解等级:初级

每个不相交集合用其中一个成员作为代表元。同一集合未修改期间,重复查询应返回同一代表元;若业务规定必须选最小成员,任意挑选代表元的实现就不满足该附加约束。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第19章 不相交集合的数据结构 · 查看原书依据

      To identify each set, choose a representative, which is some member of the set. In some applications, it doesn’t matter which member is used as the representative; it matters only that if you ask for the representative of a dynamic set twice without modifying the set between the requests, you get the same answer both times.

    参考来源

    - 位置:《算法导论(第4版)》第19章《不相交集合的数据结构》(OEBPS/chapter019.xhtml,文本字符[0,5000))。 - 结论依据:原文区分一般代表元稳定性和应用指定选择规则。 - 原始内容:To identify each set, choose a representative , which is some member of the set. In some applications, it doesn’t matter which member is used as the representative; it matters only that if you ask for the representative of a dynamic set twice without modifying the set between the requests, you get the same answer both times.