知识卡片
左行即使落空也不漏右侧
左侧 max 达到查询左端点时可先左行。
若左侧最终没有交集,达到 max 的那个区间只能位于查询区间右侧;按左端点排序,右子树的区间更靠右,也不会相交。故单路径搜索仍完整。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第17章 数据结构的扩张 · 查看原书依据
i.high < i′.low ≤ x.int.low ≤ i″.low. Because i.high < i″.low, the interval trichotomy tells us that i and i″ do not overlap. Since we chose i″ as any interval in x’s right subtree, no node in x’s right subtree overlaps i.
参考来源
- 位置:《算法导论(第4版)》第17章《数据结构的扩张》(OEBPS/chapter017.xhtml,文本字符[30000,35000))。
- 结论依据:定理17.2把区间三分和搜索树的左端点顺序串成不等式,证明左行不会漏掉右侧解。
- 原始内容:i . high < i ′. low ≤ x . int . low ≤ i ″. low . Because i . high < i ″. low , the interval trichotomy tells us that i and i ″ do not overlap. Since we chose i ″ as any interval in x ’s right subtree, no node in x ’s right subtree overlaps i .