【判断题】【消耗次数:1】
希尔排序算法的时间复杂度为O(n2)。()
正确
错误
参考答案:
复制
纠错
相关题目
【单选题】 下列各种排序算法中平均时间复杂度为O(n2)是()。
①  快速排序
②  堆排序
③  归并排序
④  冒泡排序
【单选题】 下列排序算法中时间复杂度不受数据初始状态影响,恒为O(n2)的是
①  堆排序
②  冒泡排序
③  直接选择排序
④  快速排序
【判断题】 设初始记录关键字基本有序,则快速排序算法的时间复杂度为O(nlog2n)。()
①  正确
②  错误
【单选题】 在对n个元素进行堆排序的过程中,时间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【判断题】 求两个n阶矩阵的乘积,算法的基本操作为乘法 ,时间复杂度为 O(n3) 。
①  正确
②  错误
【单选题】 二路归并排序的时间复杂度为()。
①  O(n)
②  O(n2)
③  O(nlog2n)
④  O(1og2n)
【单选题】 对n个元素进行直接插入排序时间复杂度为( )。
①  O(1)
②  O(n)
③  n+1
④  n/2
【单选题】 在n个结点的顺序表中,算法的时间复杂度是O(1)的操作是
①  访问第i个结点(1≤i≤n)
②  在第i个结点后插入一个新结点(1≤i≤n)
③  删除第i个结点(1≤i≤n)
④  将n个结点从小到大排序
【单选题】 在对n个元素进行直接插入排序的过程中,算法的空间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 对具有n个元素的有序表采用折半查找,则算法的时间复杂度为( )。
①  O(n)
②  O(n的平方)
③  O(1)
④  O(log2(n))
随机题目
【单选题】 One of my ____ sentences is: there is no smoke without fire.
①  faithful
②  favorite
③  favorable
④  famous
【单选题】 Theboysspentthewholemorning____ possibleanswerstothequestion.
①  discuss
②  to discuss
③  discussing
④  discussed
【单选题】 At the meeting they all kept ____.
①  silence
②  silently
③  silent
④  quietly
【单选题】 Woman: Bob, do you think you can lend me fifty dollars? Bob: Let me see. ____
①  You know I have no money at all.
②  Sorry, I don’t think I have much with me.
③  I don’t think you should do it.
④  Oh, I have quite a lot.
【单选题】 --Good morning,John. How are you doing?--________________
①  Im pleased.
②  Good night.
③  Not so bad. And you?
④  How do you do?
【单选题】 I don’t quite remember the key ____ the question though I answered it correctly.
①  of
②  to
③  for
④  about
【单选题】 We can assign the work to ____is reliable.
①  whose
②  whom
③  whoever
④  whomever
【单选题】 The city ______ its birth-rate by almost 60% in the past 20 years.
①  cuts
②  has been cut
③  cut
④  has cut
【单选题】 There are many ____ between the young and the old about their dreams.
①  difficult
②  differences
③  different
④  difficulties
【单选题】 Now that we’ve ____, can we come to a decision?
①  thought over
②  thought of
③  thought through
④  thought about