知识卡片
线性渐近界不保证更快
基数排序在适当位宽下可达线性渐近时间,但每轮扫描成本、缓存使用和辅助数组都影响实际选择。
比较排序可能凭更低常数或原地特性胜出。
选排序算法须同时看键域、数据分布、内存和机器,而不能只比大 O。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第8章 线性时间排序 · 查看原书依据
Which sorting algorithm to prefer depends on the characteristics of the implementations, of the underlying machine
参考来源
- 位置:《算法导论(第4版)》第 8 章 8.3 节(`OEBPS/chapter008.xhtml`,文本字符 [20000, 21500))。
- 结论依据:原文明确对比基数排序与快排的扫描、缓存和原地空间权衡。
- 原始内容:Which sorting algorithm to prefer depends on the characteristics of the implementations, of the underlying machine