若f(n)=3n2+2n+1,则f(n)=()。
A.O(n2)
B.O(n)
C.O(2n)
D.O(3n2)
第1题:
●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)
第2题:
堆排序的时间复杂度是O()。
A.O(n)
B.O(2n)
C.O(n2)
D.O(nlogn)
第3题:
插入排序的时间复杂度是()。
A.O(n^2)
B.O(2n)
C.O(n)
D.O(n/2)
第4题:
顺序查找的时间复杂度是()。
A.O(n^2)
B.O(2n)
C.O(n)
D.O(n/2)
第5题:
1、顺序查找的时间复杂度是()。
A.O(n^2)
B.O(2n)
C.O(n)
D.O(n/2)