【单选题】【消耗次数:1】
排序算法中,从尚未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较(要求比较次数尽量少),然后将其放入已排序序列的正确位置的方法是( )。
A.折半插入排序
B.直接插入排序
C.归并排序
D.选择排序
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 排序算法中,从尚未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较,然后将其放入已排序序列的正确位置的方法是( )。
①  A.冒泡排序
②  B.直接插入排序
③  C.归并排序
④  D.选择排序
【判断题】 排序算法中,从未排序序列中依次取出元素与已排序序列(初始为空)中的元素进行比较(要求比较次数尽量少),然后将其放入已排序序列的正确位置的方法是折半插入。
①  正确
②  错误
【单选题】 排序方法中,从未排序序列中挑选元素,并将其依次放入已排序序列(初始为空)的一端的方法,称为( )排序。
①  A.堆
②  B.冒泡
③  C.选择
④  D.快速
【判断题】 排序方法中,从未排序序列中挑选元素,并将其依次放入已排序序列(初始为空)的一端的方法,称为选择排序。
①  正确
②  错误
【单选题】 就排序算法所用的辅助空间而言,堆排序、快速排序、归并排序的关系是( )。
①  A.堆排序 快速排序 归并排序
②  B.堆排序 归并排序 快速排序
③  C.堆排序 归并排序 快速排序
④  D.堆排序 快速排序 归并排序
【单选题】 对n个元素进行直接插入排序时间复杂度为( )。
①  O(1)
②  O(n)
③  n+1
④  n/2
【单选题】 若对n个元素进行直接插入排序,在进行第i趟排序时,假定元素r[i+1]的插入位置为r[j],则需要移动元素的次数为( )。
①  j-i
②  i-j-1
③  i-j
④  i-j+1
【单选题】 若待排序序列在排序前已按关键字递增排列,则采用( )方法比较次数最多。
①  A.直接插入排序
②  B.归并排序
③  C.归并排序
④  D.直接选择排序
【单选题】 在对n个元素进行直接插入排序的过程中,算法的空间复杂度为( )。
①  O(1)
②  O(log2(n))
③  O(n的平方)
④  O(nlog2(n))
【单选题】 在对n个元素进行直接插入排序的过程中,共需要进行( )趟。
①  n
②  n+1
③  n-1
④  2n
随机题目
【单选题】 12.I am busy today. Maybe we can have lunch together _______other day.
①  any
②  each
③  some
④  every
【单选题】 28. I have no intention ________ lending Dan any more money.
①  to
②  in
③  for
④  of
【单选题】 11. He is really worried about his daughter as she is ______to him.
①  anything
②  everything
③  something
④  nothing
【单选题】 3.In the few months of the war his army seemed ______ , but soon it met its Waterloo.
①  strong
②  . vincible
③  invincible
④  popular
【单选题】 4. Many heads of the state attended the celebration ____ the tenth anniversary of the founding of the country.
①  marking
②  recognizing
③  counting
④  happen
【单选题】 20.Old Tom is _____the weather for a day or two.
①  above
②  for
③  in
④  under
【单选题】 17._____ of English is essential for those who apply for the post.
①  Good knowledge
②  A good knowledge
③  Good knowledges
④  The good knowledge
【单选题】 14.We should plant trees on _______ side of the road.
①  each
②  some
③  every
④  many
【单选题】 5. As he is recovering, he has grown more confident and _______ about life.
①  pessimistic
②  positive
③  negative
④  interested
【单选题】 8.She no longer has that______ smile as before, but instead carries the sad look of a mother who has just lost her son.
①  careless
②  carefree
③  interested
④  sick