← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3633.a.8.b

满节点按中位键拆分

理解等级:中级

满节点有 2t−1 个键,不能再直接插入。

拆分时中位键升到父节点,两侧各留下 t−1 个键;若是内部节点,孩子也随对应半边转移。

这是 B 树保持节点占用上限的基本动作。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第18章 B树 · 查看原书依据

      Since you cannot insert a key into a leaf node that is full, you need an operation that splits a full node y (having 2t − 1 keys) around its median key y.keyt into two nodes having only t − 1 keys each. The median key moves up into y’s parent to identify the dividing point between the two new trees.

    参考来源

    - 位置:《算法导论(第4版)》第18章《B树》(OEBPS/chapter018.xhtml,文本字符[15000,20000))。 - 结论依据:原文说明满节点以中位键分成两部分,并将中位键提升为父节点分界。 - 原始内容:Since you cannot insert a key into a leaf node that is full, you need an operation that splits a full node y (having 2 t − 1 keys) around its median key y . key t into two nodes having only t − 1 keys each. The median key moves up into y ’s parent to identify the dividing point between the two new trees.