Update 桶排序.cpp

master
p6voizrua 3 years ago
parent 4628089ca2
commit fe198c160b

@ -46,4 +46,18 @@ int main()
int raw[] = { 49,38,65,97,76,13,27,49 };
int size = sizeof(raw) / sizeof(int);
bucket_sort(raw, size, 10);
}
}
/*三、桶排序算法特点
1.
22NNM
O(N^2)O(NlogN)O(NlogN)N/M*log(N/M)*M
3N+M+N/M*log(N/M)*M3N+M+N(logN-logM)O(N+M+N(logN-logM))
2.
O(N+M)
3.
*/

Loading…
Cancel
Save