Skip to content

Commit dc770ad

Browse files
committed
auto commit
1 parent 4e5c1d8 commit dc770ad

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

notes/算法.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,6 @@ public class Insertion {
499499

500500
插入排序对于部分有序数组和小规模数组特别高效。
501501

502-
<font size=3> **选择排序和插入排序的比较** </font> </br>
503-
504-
对于随机排列的无重复主键的数组,插入排序和选择排序的运行时间是平方级别的,两者之比是一个较小的常数。
505-
506502
## 希尔排序
507503

508504
对于大规模的数组,插入排序很慢,因为它只能交换相邻的元素,如果要把元素从一端移到另一端,就需要很多次操作。

0 commit comments

Comments
 (0)