知识卡片
分位点是指定顺序统计量
k 分位点是把排好序的 n 个元素分成 k 个大小尽量相等的集合所需的 k−1 个顺序统计量。它只要求这些边界元素,不要求完整排序;选择算法可作为求边界的子程序,但章末的 O(n log k) 实现属于待解练习。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第9章 中位数和顺序统计量 · 查看原书依据
The kth quantiles of an n-element set are the k – 1 order statistics that divide the sorted set into k equal-sized sets (to within 1).
参考来源
- 位置:《算法导论(第4版)》第 9 章练习 9.3-8(`OEBPS/chapter009.xhtml`,文本字符 [32500, 34000))。
- 结论依据:原文直接定义 k 分位点,并把高效列举算法留为练习。
- 原始内容:The k th quantiles of an n -element set are the k – 1 order statistics that divide the sorted set into k equal-sized sets (to within 1).