niusouti.com
参考答案和解析
正确答案:A
更多“若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)


    正确答案:D
    执行一个包含递增数组元素的算法的时间复杂度是。。。

  • 第2题:

    堆排序的时间复杂度是O()。

    A.O(n)

    B.O(2n)

    C.O(n2)

    D.O(nlogn)


    O ( nlogn )

  • 第3题:

    插入排序的时间复杂度是()。

    A.O(n^2)

    B.O(2n)

    C.O(n)

    D.O(n/2)


    B

  • 第4题:

    顺序查找的时间复杂度是()。

    A.O(n^2)

    B.O(2n)

    C.O(n)

    D.O(n/2)


    C

  • 第5题:

    1、顺序查找的时间复杂度是()。

    A.O(n^2)

    B.O(2n)

    C.O(n)

    D.O(n/2)


    C