问题 单项选择题

关键在待排序的元素序列基本有序的前提下,效率最高的排序方法是

A.直接插入排序

B.选择排序

C.快速排序

D.归并排序

答案

参考答案:A

解析: 本题考查各种排序方法,直接插入排序是将第i个元素插入到已经排序好的前i-1个元素中;选择排序是通过n-i次关键字的比较,从n-i+1个记录中选出关键字最小的记录,并和第i个记录交换,当i等于n时所有记录都已有序排列;快速排序是通过一趟排序将待排序的记录分割为独立的两部分,其中一部分记录的关键字均比另一部分记录的关键字小,然后再分别对这两部分记录继续进行排序,以达到整个序列有序;归并排序是把一个有n个记录的无序文件看成由n个长度为1的有序子文件组成的文件,然后进行两两归并,得到[n/2]个长度为2或l的有序文件,再两两归并,如此重复,直至最后形成包含n个记录的有序文件为止。
通过上面的分析,可知,在待排序元素有序的情况下,直接插入排序不再需要进行比较,而其他3种算法还要分别进行比较,所以效率最高为直接插入排序。

完形填空

第二卷(共35分)

第四部分:写作(共两节,满分35分)

第一节 短文填词(共10小题;每小题1分,满分10分)

阅读下面短文,根据以下提示:1)汉语提示;2)首字母提示;3)语境提示,在每个空格内填入一个适当的英语单词,并将该词完整地写在右边相对应的横线上。所填单词要求意义准确、拼写正确。

Peter was a warm-hearted boy. He is always ready to help others.     

On the morning of last Friday, Peter went to school as u­­­­­­­­­­________.     76.________

He was walking along the road _______ he saw a well uncovered.  77._____________

He thought it was ________ (危险的) for passers-by, so he decided to      78._____________

cover the well. The cover was ______ heavy that he took great trouble    79._____________

to remove it. At last he m______ to cover the well. Hardly had he turned  80._____________

his back and gone when he heard a cry “help” c______ from the well.      81._____________

So he turned back and moved the cover away. To his ______ (惊奇), a     82._____________

worker was inside the well. Peter tried his best to ______ (拉)the worker  83._____________

out of the well. After that, Peter covered the well again properly.  

As he was walking away, he thought to h_______ , “No matter             84._____________

______ I do later, I should always remember to have a double check.”         85.__________

填空题