空间复杂度

average case

T(n) = expected time over all input of size n 

(need assuption )

一定概率下所有时间总和的平均值

insertion sort

worest time :

原文地址:https://www.cnblogs.com/newlangwen/p/11186899.html