【判断题】【消耗次数: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))
随机题目
【单选题】 If the whole program __________ beforehand, a great deal of time and money would have been lost.
①  was not planned
②  were not planned
③  would not be planned
④  had not been planned
【单选题】 She’s an only child, but they didn’t really __________ her.
①  hurt
②  damage
③  spoil
④  harm
【单选题】 I was stunned by the news, and my initial __________ was anger.
①  impression
②  reaction
③  comment
④  other
【单选题】 Do you mind telling me where you’re from?
①  Certainly. I’m from London
②  Sure. I was born in London
③  Not really, you can do it
④  Certainly not. I’m from London
【单选题】 It was not until she had arrived home __________ remembered her appointment with the doctor.
①  when she
②  that she
③  and she
④  she
【单选题】 If only he __________ what I tell him, but he won’t.
①  had done
②  would do
③  would have done
④  has done
【单选题】 I am very grateful to you for what you’ve given me and __________ you have done for me.
①  which
②  that
③  all what
④  all that
【单选题】 Did Tom tell you to water the flowers?
①  No. And so did I
②  No. And neither did I
③  He did And so I did
④  He did And so do I
【单选题】 I __________ an interesting news item in yesterday’s Times.
①  came across
②  came up
③  came to
④  came over
【单选题】 Many Americans worry about leisure and hurry from one activity to the next, __________ little time to stop and think.
①  leave
②  leaving
③  left
④  to leave