快速排序VS堆排序

在使用大量随机数据的情况下,测试结果是快速排序比堆排序快很多。
这是为啥呢,下面几篇文章很好的说明了原因。

https://blog.csdn.net/qq_39521554/article/details/79364718?utm_source=blogxgwz0
https://blog.csdn.net/nawuyao/article/details/52729518?utm_source=blogxgwz0

猜你喜欢

转载自blog.csdn.net/yrx0619/article/details/83377320
今日推荐