【单选题】【消耗次数:1】
排序算法中,从尚未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较,然后将其放入已排序序列的正确位置的方法是( )。
A.冒泡排序
B.直接插入排序
C.归并排序
D.选择排序
参考答案:
复制
纠错
相关题目
【单选题】 排序算法中,从尚未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较(要求比较次数尽量少),然后将其放入已排序序列的正确位置的方法是( )。
①  A.折半插入排序
②  B.直接插入排序
③  C.归并排序
④  D.选择排序
【判断题】 排序算法中,从未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较(要求比较次数尽量少),然后将其放入已排序序列的正确位置的方法是折半插入。
①  正确
②  错误
【单选题】 排序方法中,从未排序序列中挑选元素,并将其依次放入已排序序列(初始为空)的一端的方法,称为( )排序。
①  A.堆
②  B.冒泡
③  C.选择
④  D.快速
【判断题】 排序方法中,从未排序序列中挑选元素,并将其依次放入已排序序列(初始为空)的一端的方法,称为选择排序。
①  正确
②  错误
【单选题】 就排序算法所用的辅助空间而言,堆排序、快速排序、归并排序的关系是( )。
①  A.堆排序 快速排序 归并排序
②  B.堆排序 归并排序 快速排序
③  C.堆排序 归并排序 快速排序
④  D.堆排序 快速排序 归并排序
【单选题】 若待排序序列在排序前已按关键字递增排列,则采用( )方法比较次数最多。
①  A.直接插入排序
②  B.归并排序
③  C.归并排序
④  D.直接选择排序
【判断题】 排序过程中,每一趟从无序子表中将一个待排序的记录按其关键字的大小放置到已经排好序的子序列的适当位置,直到全部排好序为止,该排序算法是直接插入排序。
①  正确
②  错误
【单选题】 在对n个元素进行直接插入排序的过程中,算法的空间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 若对n个元素进行直接插入排序,则进行任一趟排序的过程中,为寻找插入位置而需要的时间复杂度为( )。
①  O(1)
②  O(n)
③  O(n的平方)
④  O(log2(n))
【判断题】 在排序过程中,可以有效地减少一趟排序过程中元素间的比较次数的算法是选择直接插入 ( )。
①  正确
②  错误
随机题目
【单选题】 The question came up at the meeting ___ we had enough money for our research.
①  that
②  which
③  whether
④  if
【判断题】 I have waited for two weeks impatiently and finally the order was cancelled.
①  正确
②  错误
【单选题】 ___ is no possibility ___ Bob can win the first prize in the match.
①  There; that
②  It; that
③  There; whether
④  It; whether
【单选题】 Even if they are on sale, these refrigerators are equal in price to, if not more expensive than, ___ at the other store.
①  anyone
②  the others
③  that
④  the ones
【单选题】 Energy is ___ makes thing work.
①  what
②  something
③  anything
④  that
【单选题】 The doctor did a lot to reduce the patient’s fear ___ he would die of the disease.
①  that
②  which
③  of which
④  of that
【单选题】 These plastic flowers look so ___ that many people think they are real.
①  beautiful
②  natural
③  artificial
④  similar
【单选题】 It is clear that the whole world is passing through a social revolution in which a central_____ must be taken by scientists and technologists.
①  process
②  attention
③  measure
④  part
【单选题】 When I took his temperature, it was two degrees above ___.
①  average
②  ordinary
③  regular
④  normal
【单选题】 ___ he does has nothing to do with me.
①  Whatever
②  No matter what
③  That
④  If