希尔排序
#1112
Replies: 4 comments 2 replies
-
希尔排序明显是个原地算法呀,这个空间复杂度 O(n) 是疑似直接copy了中文维基中的错误。 包括内层的插入排序一般是用先右移,后插入的版本(稍微快一点) 看了这么多篇算法相关的中英维基比较,特别在算法基础部分(基本都是上世纪70、80年代流行的研究方向),中文短板还是很明显的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
时间复杂度也不对,应该是中文维基的错误 英文版写的是 O(nlogn) |
Beta Was this translation helpful? Give feedback.
0 replies
-
希尔排序不稳定,间隙之类的不好算,复杂度又高,学明白搞搞初赛就行,复赛就算了 |
Beta Was this translation helpful? Give feedback.
1 reply
-
第九、十行是排序用的吗 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://oi-wiki.org/basic/shell-sort/
OI Wiki 是一个编程竞赛知识整合站点,提供有趣又实用的编程竞赛知识以及其他有帮助的内容,帮助广大编程竞赛爱好者更快更深入地学习编程竞赛
Beta Was this translation helpful? Give feedback.
All reactions