当前位置:网站首页>杂乱的知识点
杂乱的知识点
2022-06-24 00:32:00 【FFire_ant】
杂乱的知识点
排序
| 排序方法 | 时间复杂度(平均) | 事件复杂度(最坏) | 事件复杂度(最好) | 空间复杂度 |
|---|---|---|---|---|
| 插入排序 | O(n^2) | O(n^2) | O(n) | O(1) |
| 希尔排序 | O(2^1.3) | O(n^2) | O(n) | O(1) |
| 选择排序 | O(n^2) | O(n^2) | O(n^2) | O(1) |
| 堆排序 | O(nlogN) | O(nlogN) | O(nlogN) | O(1) |
| 冒泡排序 | O(n^2) | O(n^2) | O(n) | O(1) |
| 快速排序 | O(nlogN) | O(n^2) | O(nlogN) | O(nlogN) |
| 归并排序 | O(nlogN) | O(nlogN) | O(nlogN) | O(n) |
| 基数排序 | O(n+k) | O(n+k) | O(n+k) | O(n+k) |
| 桶排序 | O(n+k) | O(n^2) | O(n) | O(N+K) |
| 基数排序 | O(n*k) | O(n*k) | O(n*k) | O(n*k) |
| 排序 | 稳定性 |
|---|---|
| 插入排序 | 稳定 |
| 希尔排序 | 不稳定 |
| 选择排序 | 不稳定 |
| 堆排序 | 不稳定 |
| 冒泡排序 | 稳定 |
| 快速排序 | 不稳定 |
| 归并排序 | 稳定 |
| 计数排序 | 稳定 |
| 桶排序 | 稳定 |
| 基数排序 |
边栏推荐
- Using anydesk remote control for intranet penetration horizontal movement
- Mip-NeRF:抗混叠的多尺度神经辐射场ICCV2021
- DO280OpenShift访问控制--管理项目和账户
- Security | warm tips: security incidents on the cloud have intensified recently. Please do a good job in backup monitoring of cloud security protection!
- 迷茫的测试/开发程序员,不同人有着不同的故事、有着不同的迷茫......
- Accompanist组件库中文指南 - Glide篇,劲爆
- C language: how to solve the problem of hundreds of horses and loads
- C language: recursively implementing factorial of n
- The easycvr program started abnormally as a service, but the process started normally. What is the reason?
- AI技术在医学领域有什么用?
猜你喜欢

C语言:结构体数组实现找出最低分学生记录

Superscalar processor design yaoyongbin Chapter 3 virtual memory -- Excerpt from subsection 3.1~3.2

Keywords such as extern and struct

飞桨产业级开源模型库:加速企业AI任务开发与应用

Common core resource objects of kubernetes

Learn PWN from CTF wiki - ret2text

EasyCVR程序以服务启动异常,进程启动却正常,是什么原因?

迷茫的测试/开发程序员,不同人有着不同的故事、有着不同的迷茫......

量化投资模型——高频交易做市模型相关(Avellaneda & Stoikov’s)研究解读&代码资源

【红绿灯识别】基于matlab GUI红绿灯识别【含Matlab源码 1908期】
随机推荐
Activity 的 36 大难点,你会几个?,安卓面试2020
抖音实战~密码找回
Principles and differences between hash and history
The easycvr program started abnormally as a service, but the process started normally. What is the reason?
Android - JNI 开发你所需要知道的基础,Android工程师面试题
现在网上开股票账户安全吗?选择国有券商,最快8分钟开户成功
[traffic light identification] traffic light identification based on Matlab GUI [including Matlab source code 1908]
Save: software analysis, verification and test platform
纯js实现判断ip是否ping通
国内首款开源MySQL HTAP数据库即将发布,三大看点提前告知 石原子科技重磅推出
[technical grass planting] the tail of the "double 11" event. Let's talk about how much discount the message push service package is!
智能制造时代下,MES管理系统需要解决哪些问题
Salesforce Future method in salesforce – @future
Social order in the meta universe
[leetcode notes] no118 Yanghui triangle
js 语言 精度问题
使用递归形成多级目录树结构,附带可能是全网最详细注释。
Fix blog theme php8 compatibility and optimize dark mode
Chaos engineering, learn about it
C language: on the right shift of matrix