当前位置:网站首页>杂乱的知识点
杂乱的知识点
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) |
| 排序 | 稳定性 |
|---|---|
| 插入排序 | 稳定 |
| 希尔排序 | 不稳定 |
| 选择排序 | 不稳定 |
| 堆排序 | 不稳定 |
| 冒泡排序 | 稳定 |
| 快速排序 | 不稳定 |
| 归并排序 | 稳定 |
| 计数排序 | 稳定 |
| 桶排序 | 稳定 |
| 基数排序 |
边栏推荐
- Building a digital software factory -- panoramic interpretation of one-stop Devops platform
- js 语言 精度问题
- 9次Android面试经验总结,已收字节,阿里,高级android面试答案
- JS language precision problem
- Confused test / development programmers, different people have different stories and different puzzles
- Android 3年外包工面试笔记,有机会还是要去大厂学习提升,android开发实习面试题
- Fix blog theme php8 compatibility and optimize dark mode
- Pure JS implementation determines whether the IP is pinged
- Android - basics you need to know about JNI development, interview questions for Android engineers
- 2021-11-23: Regulations: l[1] corresponds to a, l[2] corresponds to B, l[3] corresponds to C
猜你喜欢

Chinese guide to accompanist component library - glide, hot

Detailed process from CPU fetching to sending control and microprogram control principle

What is medical treatment? AI medical concept analysis AI

Confused test / development programmers, different people have different stories and different puzzles

抖音实战~手机号密码一键注册登录流程(限制手机终端登录)

Social order in the meta universe

物联网卡设备接入EasyCVR,如何查看拉流IP以及拉流时间?

【FreeRTOS】07 二值信号量、计数信号量

Usage of go in SQL Server

Use of reverse tools IDA and GDB
随机推荐
Index principle and filling factor in database
通达信股票开户是安全的吗?
All 32 keyword classifications of C language C89 (C90)
Nlp-d58-nlp competition d27 & question brushing D14 & Paper Reading & MathType
Android App Bundle探索,客户端开发面试题目
What is the difference between overload and override?
Shutter control layout
When the IOT network card device is connected to easycvr, how can I view the streaming IP and streaming time?
Tiktok practice ~ one click registration and login process of mobile phone number and password (restrict mobile terminal login)
C language: how to solve the problem of hundreds of horses and loads
C language: structure array implementation to find the lowest student record
NLP工程师是干什么的?工作内容是什么?
抓取开机logcat
C语言:结构体数组实现找出最低分学生记录
使用worker报错:Uncaught DOMException: Failed to construct ‘Worker’: Script at***
UART protocol timing summary
【FreeRTOS】07 二值信号量、计数信号量
Expander+listbox of WPF effect
2021-11-23: Regulations: l[1] corresponds to a, l[2] corresponds to B, l[3] corresponds to C
How many of the 36 difficult points of activity do you know?, Android interview 2020