← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 3640

增强结构要维护附加信息

理解等级:高级

数据结构增强是在现有结构的节点上保存额外信息,以支持新操作。

难点是原有插入、删除和旋转也必须同步维护信息;若维护代价过高,新查询再快也未必值得采用。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第17章 数据结构的扩张 · 查看原书依据

      More often, you can augment a textbook data structure by storing additional information in it. You can then program new operations for the data structure to support your application. Augmenting a data structure is not always straightforward, however, since the added information must be updated and maintained by the ordinary operations on the data structure.

    参考来源

    - 位置:《算法导论(第4版)》第17章《数据结构的扩张》(OEBPS/chapter017.xhtml,文本字符[0,5000))。 - 结论依据:原文说明增强是在节点中增加信息以实现新操作,且普通修改操作必须同步更新该信息;成本权衡是据此作的设计推论。 - 原始内容:More often, you can augment a textbook data structure by storing additional information in it. You can then program new operations for the data structure to support your application. Augmenting a data structure is not always straightforward, however, since the added information must be updated and maintained by the ordinary operations on the data structure.