Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

常见的十个排序算法 - 枫林's Blog #2

Open
iMaple opened this issue Sep 21, 2020 · 0 comments
Open

常见的十个排序算法 - 枫林's Blog #2

iMaple opened this issue Sep 21, 2020 · 0 comments

Comments

@iMaple
Copy link
Owner

iMaple commented Sep 21, 2020

https://blog.imaple.net/posts/sorting_algorithm/

排序算法是《数据结构与算法》中最基本的算法之一。
排序算法可以分为内部排序和外部排序,内部排序是指数据记录在内存中进行排序,而外部排序是指因排序的数据量很大,一次不能在内存种中容纳全部的排序记录,因而在排序过程中需要访问外存。常见的内部排序算法有:插入排序、希尔排序、选择排序、冒泡排序、归并排序、快速排序、堆排序、基数排序等。
通过比较元素的大小来决定元素间相对次序的排序也称为比较类排序,如经典的插入排序。由于这类排序时间复杂度不能突破O(nlogn),因此也称为非线性时间比较类排序。而非比较类排序则可以突破基于比较排序的时间下界,以线性时间运行,因此也称为线性时间非比较类排序,如计数排序。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant