8000 GitHub - asdgh1000/algorithm-structure: basic algorithm && structure
[go: up one dir, main page]

Skip to content

asdgh1000/algorithm-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

algorithm-structure

常见排序算法列表

中文名称 英文名称 平均时间复杂度 最坏时间复杂度 最好时间复杂度 空间复杂度 稳定性
选择排序 Selection $n^2$ $n^2$ $n^2$ 1 不稳
冒泡排序 Bubble $n^2$ $n^2$ n 1
插入排序 Insertion $n^2$ $n^2$ n 1
堆排序 heap n$\log_2 n$ n$\log_2 n$ n$\log_2 n$ 1 不稳
希尔排序 Shell $n^1.3$ $n^2$ n 1 不稳
归并排序 Merge n$\log_2 n$ n$\log_2 n$ n$\log_2 n$ n
快速排序 Quick n$\log_2 n$ $n^2$ n$\log_2 n$ $\log_2 n$ 不稳
桶排序 Bucket n+k $n^2$ n n+k
计数排序 Counting n+k n+k n+k n+k
基数排序 Radix n*k n*k n*k n+k

About

basic algorithm && structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0