【单选题】【消耗次数:1】
下列排序算法中时间复杂度不受数据初始状态影响,恒为O(n2)的是
堆排序
冒泡排序
直接选择排序
快速排序
参考答案:
复制
纠错
相关题目
【单选题】 下列各种排序算法中平均时间复杂度为O(n2)是()。
①  快速排序
②  堆排序
③  归并排序
④  冒泡排序
【判断题】 希尔排序算法的时间复杂度为O(n2)。()
①  正确
②  错误
【单选题】 就排序算法所用的辅助空间而言,堆排序、快速排序、归并排序的关系是( )。
①  A.堆排序 快速排序 归并排序
②  B.堆排序 归并排序 快速排序
③  C.堆排序 归并排序 快速排序
④  D.堆排序 快速排序 归并排序
【判断题】 设初始记录关键字基本有序,则快速排序算法的时间复杂度为O(nlog2n)。()
①  正确
②  错误
【单选题】 在对n个元素进行堆排序的过程中,时间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 在对n个元素进行堆排序的过程中,空间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 下列四种排序中()的空间复杂度最大。
①  插入排序
②  冒泡排序
③  堆排序
④  归并排序
【单选题】 在对n个元素进行冒泡排序的过程中,最好情况下的时间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(n)
【单选题】 对n个元素进行直接插入排序时间复杂度为( )。
①  O(1)
②  O(n)
③  n+1
④  n/2
【单选题】 二路归并排序的时间复杂度为()。
①  O(n)
②  O(n2)
③  O(nlog2n)
④  O(1og2n)
随机题目
【单选题】 I have two hobbies. One is fishing, ____ is cooking.
①  another
②  the other
③  else
④  other
【单选题】 A university ____ of teachers, administrators and students.
①  consists
②  composes
③  includes
④  contains
【单选题】 The fact remains  () we are behind many others.
①  that
②  why
③  where
④  how
【单选题】 There were two small rooms in the house, _______ served as a bathroom.
①  the smallest of which
②  the smallest of them
③  the smaller of which
④  smallest of that
【单选题】 The young people are _____ of their responsibility toward society.
①  consistent
②  conscious
③  sensitive
④  sensual
【单选题】 Did the medicine make you feel better?No. The more _______, _______ I feel.
①  medicine I take; and the worse
②  medicine I take; the worse
③  I take medicine; the worse
④  I take medicine; worse
【单选题】 Large fish usually _____ small fish.
①  gather
②  take on
③  feed on
④  organize
【单选题】 I often ______ the cooking for my family, but recently I have been too busy to do it.
①  will do
②  do
③  am doing
④  had done
【单选题】 The plane was about to _________, and yet l left my ticket behind.
①  take on
②  take off
③  take up
④  take in
【单选题】 Global warming threatens the _______ of the whole human race.
①  summit
②  superiority
③  survival
④  status