用二分法进行插入排序,记录移动个数为
A.O(nlog2n)
B.O(n2)
C.O(log2n)
D.O(n)
第1题:
冒泡排序的时间复杂度为A.O(n) B.O(n2) C.O(log2n) D.O(nlog2n)
第2题:
用归并排序方法,在最坏情况下的时间复杂度为( )。
A.O(n+1)
B.O(n2)
C.O(log2n)
D.O(nlog2n)
第3题:
●Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time of the code will be ()。()A. O(log2n) B. O(n) C. O(nlog2n) D. O(n2)
第4题:
用堆排序方法,在最坏情况下的时间复杂度为( )。
A.O(n+1)
B.O(n2)
C.O(log2n)
D.O(n log2n)
第5题:
二叉排序树的平均检索长度与二分法检索的长度都是
A.O(nlog2n)
B.O(n2)
C.O(log2n)
D.O(n)