2017年韩山师范学院本科插班生考试《数据结构》A卷

合集下载

(专升本)《数据结构》试题三套

(专升本)《数据结构》试题三套

(专升本)《数据结构》试题三套数据结构试题三套一、单选题1. 在二叉树的遍历过程中,如果先访问根节点,则得到的是:A. 先序遍历B. 中序遍历C. 后序遍历D. 层次遍历2. 下列数据结构中,不属于线性结构的是:A. 数组B. 链表C. 栈D. 队列3. 哪种数据结构可用于实现递归算法的运算过程?A. 数组B. 链表C. 栈D. 队列4. 在队列中,允许删除的一端称为:A. 队首B. 队尾C. 栈顶D. 栈底5. 下列哪种排序算法的时间复杂度最坏情况下也是O(nlogn)?A. 插入排序B. 冒泡排序C. 快速排序D. 选择排序二、填空题1. 拓扑排序是一种按照有向图的拓扑序列排列顶点的算法。

如果一个有向图存在环,则该图不可进行拓扑排序。

拓扑排序的时间复杂度为_______。

2. 假设有一个有n个元素的数组,要通过比较元素的大小来确定元素在数组中的位置,最坏情况下需要比较的次数为_______。

3. 假设有一个有n个元素的数组,按照从小到大的顺序进行插入排序。

已知数组在最坏情况下的逆序对数量为k,则进行插入排序的时间复杂度为_______。

4. 快速排序的时间复杂度取决于划分点的选择。

若每次总是选择数组的第一个元素作为划分点,则当数组已经有序时,快速排序的时间复杂度为_______。

5. 在哈希表中,冲突解决方法有很多种,其中比较常用的是_______和_______。

三、编程题1. 请编写一个函数,实现冒泡排序算法,并对一个整型数组进行排序。

2. 请编写一个函数,实现二分查找算法,并返回查找结果的索引位置。

3. 请编写一个函数,实现栈的逆序操作。

要求只能使用一个额外的栈空间。

4. 请编写一个函数,实现队列的逆序操作。

要求只能使用一个额外的栈空间。

5. 请编写一个函数,实现递归算法,计算斐波那契数列的第n项。

以上为《数据结构》试题三套,包括单选题、填空题和编程题。

通过这些试题,可以测试学生对数据结构相关知识的掌握程度,并培养其分析和解决问题的能力。

专升本《数据结构》 试卷 答案

专升本《数据结构》   试卷   答案

专升本《数据结构》试卷答案专升本《数据结构》-试卷-答案专升本《数据结构》一、(共75题,共150分后)1.数据的逻辑结构是由()部分组成的。

(2分)a.2b.3c.4d.5标准答案:a2.算法是对某一类问题求解步骤的有限序列,并具有()个特性。

(2分)a.3b.4c.5d.6标准答案:c3.队列的入队操作是在()进行的。

(2分)a.队头b.队尾c.任意位置d.指定位置标准答案:b4.队列的出队操作是在()进行的。

(2分)a.队头b.队尾c.任意位置d.指定位置标准答案:a5.数组通常采用顺序存储的优点是()。

(2分)a.便于增加存储空间b.便于依据下标进行随机存取c.避免数据元素的移动d.防止下标溢出标准答案:b6.下列给出的操作中,()是允许对队列进行的操作。

(2分)a.删除队首元素b.取出最近进队的元素c.按元素大小排序d.中间插入元素标准答案:a7.采用带头结点的单链表存储的线性表,若表长为n,在删除第号元素时,需要移动指针()次。

(2分)a.k+1b.kc.k-1d.k-2标准答案:c8.字符数组a[1..100]使用顺序存储,a[6]地址就是517,则a的首地址为()。

(2分后)a.510b.512c.514d.516标准答案:b9.深度为n的全然二叉树最多存有()个结点。

(2分后)a.2n+1b.2n-1c.2nd.2n-1标准答案:d10.若二叉树对应的二叉链表共计n个非空链域,则该二叉树存有()个结点的二叉树。

(2分后)a.n-1b.nc.n+1d.2n标准答案:a11.下面描述错误的就是()。

(2分后)a.借助队列可以同时实现对图的广度优先结点b.二叉树中序结点的序列就是有序c.只有一个结点的二叉树的度为0d.空格串是指由1个或以上的空格符号组成的串标准答案:b12.以下与数据的存储结构无关的术语是()。

(2分)a.循环队列b.链表c.哈希表d.栈标准答案:d13.在一个长度为n的链式栈中入栈实现算法的时间复杂度为()。

(完整word版)数据结构试卷及答案(word文档良心出品)

(完整word版)数据结构试卷及答案(word文档良心出品)

注意事项:1、下面关于串的叙述中,哪一个是不正确的?( )A .串是字符的有限序列B .空串是由空格构成的串C .模式匹配是串的一种重要运算D .串既可以采用顺序存储,也可以采用链式存储 2、设无向图的顶点个数为n ,则该图最多有( )条边。

A .n-1B .n(n-1)/2C . n(n+1)/2D .0 3、以下数据结构中,( )是非线性数据结构。

A .树B .字符串C .队列D .栈 4、下面关于线性表的叙述中,错误的是哪一个?( )A .线性表采用顺序存储,必须占用一片连续的存储单元。

B .线性表采用顺序存储,便于进行插入和删除操作。

C .线性表采用链接存储,不必占用一片连续的存储单元。

D .线性表采用链接存储,便于插入和删除操作。

5、假设以数组A[m]存放循环队列的元素,其头尾指针分别为front 和rear ,则当前队列中的元素个数为( )。

A .(rear-front+m)%mB .rear-front+1C .(front-rear+m)%mD .(rear-front)%m6、在单链表指针为p 的结点之后插入指针为s 的结点,正确的操作是( )。

A .p->next=s; s->next=p->next;B .s->next=p->next; p->next=s;C .p->next=s; p->next=s->next;D .p->next=s->next; p->next=s; 7、设栈的输入序列是1,2,3,4,则( )不可能是其出栈序列。

A .1,2,4,3B .2,1,3,4C .1,4,3,2D .4,3,1,2, 8、广义表(a,(b,c),d,e )的表头和表尾分别为( )。

A .a 和(b,c),d,e B .(a )和(b,c),d,eC .a 和 ((b,c),d,e)D .(a) 和((b,c),d,e)9、栈和队都是( )A .顺序存储的线性结构B .链式存储的非线性结构C .限制存取点的线性结构D .限制存取点的非线性结构 10、从逻辑上可以把数据结构分为( )两大类。

2018年本科插班生考试试题《数据结构》A试卷

2018年本科插班生考试试题《数据结构》A试卷

韩山师范学院2018年本科插班生考试试卷计算机科学与技术 专业 数据结构 试卷(A 卷)一、单项选择题(每题2分,共30分)1. 数据的最小单位是( )。

A. 数据元素 B.数据项 C.数据类型 D. 数据变量2. 一个栈的输入序列为A B C ,则下列序列中不可能是栈的输出序列的是( )。

A. B C AB.C B AC. C A BD. A B C 3.程序段s=i=0;do {i=i+1; s=s+i ;}while(i<=n);的时间复杂度为( )。

A. O(n)B. O(nlog 2n)C.O(n 2)D.O(n 3/2)4.一个非空广义表的表头( )。

A.不可能是子表B.只能是子表C.只能是原子D.可以是子表或原子5.设顺序循环队列Q[0:M-1]的头指针和尾指针分别为F 和R ,头指针F 总是指向队头元素的前一位置,尾指针R 总是指向队尾元素的当前位置,则该循环队列中的元素个数为( )。

A. R-FB.F-RC. (F-R+M)%MD. (R-F+M)%M6.设指针变量p 指向单链表中结点A ,若删除单链表中结点A ,则需要修改指针的操作序列为( )。

A. q=p->next ;p->next=q->next ;free(q);B. q=p->next ;p->data=q->data ;free(q);C. q=p->next ;p->data=q->data ;p->next=q->next ;free(q);D. q=p->next ;q->data=p->data ;p->next=q->next ;free(q);7.设有一个二维数组A [m ][n ],假设A [0][0]存放位置在644(10),A [2][2]存放位置在676(10),每个元素占一个空间,问A [3][3](10)存放在什么位置?脚注(10)表示用10进制表示( )。

最全版专升本《数据结构》试题答案

最全版专升本《数据结构》试题答案

[试题分类]旁升本《数据结构》_08004150圉型]单选份数]: 2个顶点的无向连通网的最小成本树,至少有()个边。

(n-1)(n-1)/2答案:C个顶点的连通无向图,至少有()个边。

(m-1)(m1)/2答案:C3. 空串的长度是()。

答案:A4. 假设以数组A[O .. n1]存放循环队列的元素,其头指针fr o n t指向队头元素、尾指针re a r指向队尾元素一个,则在少用一个元素空间的前提下,队列空的判定条件为()。

A{ f ro n t+ 1) %n==re a rB { re a r+1) %n==fro n tl==fron t==fro n t答案:D5. 可以采用()这种数据结构,实现二叉树的层次遍历运算。

A集合B栈C. 队列D树答案:C6钱性表的顺序存储结构是一种()的存储结构。

A随机存取存取C顺序存取D索引存取答案:A7. 采用带头结点双向链表存储的线性表,在删除一个元素时,需要修改指针()次。

答案:D8. 队列的出队操作是指()操作。

A. 队头删除B队尾删除C. 队头插入D. 队尾插入答案:A9在关键字序列C l O,15,20,25, :}O中,采用折半法查找25,关键字之间比较需要()次。

答案:B10.串下列关于串的叙述中,正确的是()。

个串的长度相等,则2个串相等B.替换操作可以实现字符的删除C.空串至少包一个空格D. 一个串的长度至少是1答案:B11. 若二叉树对应的二叉链表共有n个非空链域,则该二叉树有()个结点的二叉树。

+l答案:D12. 下面叙述错误的是()。

A在无向图的邻接矩阵中每行1的个数等于对应的顶点度B借助于队列可以实现对二叉树的层遍历C对于单链表进行插入操作过程中不会发生上溢现象D. 栈的特点是先进后出答案:C13. 算法是对某一类问题求解步骤的有限序列。

其中,()是算法具有的5个特性之一。

A. 可读性B有穷性C. 正确性D健壮性答案:B14. 队列的入队操作是在()进行的。

2017年韩山师范学院本科插班生考试《英语语法》A卷

2017年韩山师范学院本科插班生考试《英语语法》A卷

韩山师范学院2017年本科插班生考试试卷英语 专业 英语语法 试卷(A 卷)一、Choose the correct answer (每题1分,共40分)Direction: Complete the following sentences and then blacken the corresponding letter on the ANSWER SHEET.1.______ can get a better view of the game than the participants.A. Looker-onB. Lookers-onC. Looker-onsD. Lookers-ons2. My mother cut the cloth with ______ scissors.A. aB. twoC. a couple ofD. a pair of3.______ receives only a small portion of the total amount of the sun’s energy.A . The earth’s surface B. The surface earthC. The surface of earthD. The earth surface4. Little boys are easily ______.A. taken outB. taken awayC. taken inD. taken over5. The thief ran away as fast as he could ______ the policeman.A. in sightB. within the sight ofC. within sightD. at the sight of6. Prior ______ his departure, he wrote a letter to his mother.A. ofB. fromC. toD. in7. ______ classical music, which follows formal European traditions, jazz is a spontaneous and free form.A. In comparison withB. In connection withC. In regard toD. In contrast to8. The investigators found that more should be done for ______ in India.A. the poorB. a poorC. poorD. those poor9. A man suffering from a chock should be given ______.A. hot sweet teaB. a hot sweet teaC. the hot sweet teaD. one hot sweet tea10. Under no circumstances will there be wage control while I am ______ of the government.A. the headB. headC. a headD. that head11. We have produced ______ this year as we did in 1993.A. as much cotton twiceB. as twice much cottonC. much as twice cottonD. twice as much cotton12. With the miniaturization of the structural components the weight of these electric devices has decreased ______ 30%.A. byB. withC. inD. as13. Most English people go to Spain for the sea, the sun and all the ______ things associated with a relaxing holiday.A. any b. another C. other D. some14. I cannot invited ______ of you, since I’ve got only one extra ticket.A. eitherB. bothC. someD. one15. The little baby was left alone, with ______ to look after it.A. someoneB. anyoneC. not oneD. no one16. Frank admired his friends Tom and David. He imitated ______.A. theirs every actionB. every action of theirsC. every of their actionD. every action of their one17. The modern machine proved ______ in heart surgery.A. high valuableB. highly valuableC. valuable highD. valuable highly18. Tuition at American university runs ______ one thousand dollars a semester.A. so high asB. as high toC. as high asD. as higher than19. If negotiations for the new trade agreements take ______, critical food shortages will develop in several countries.A. too much longerB. much too longC. the longestD. the longer20. Many scientists ______ their own eyes and ears than the theories of the ancients.A. would rather to believeB. will rather believeC. rather would believeD. would rather believe21. “We didn’t see him at the lecture yesterday.” “He ______ it.”A. mustn’t attendB. cannot have attendedC. would have not attendedD. needn’t have attended22. ______ that bad weather was on the way, the climbers decided to put off their attempt on Eiger until the following week.A. Having toldB. Being toldC. TellingD. Having been told23. You must follow the directions exactly and if you become ______, you must take the time to go back again and reread them.A. to confuseB. confusingC. confusedD. confuse24. What’s the use ______ extra leisure time if you don’t know what to do?A. of knowingB. to haveC. being haveD. have25. I have tried _______ worrying about it.A. to stop consciouslyB. to consciously stopC. to conscious stoppingD. to stopping consciously26. Now that you _______ , what are you going to do?A. are being returnedB. have been returningC. have been returnedD. have returned27. The little girl ______ by the drug-pusher to carry drugs into the country.A. was made useB. was made usedC. was made use ofD. was made used of28. ______ a meeting this afternoon.A. There going to beB. There will be going to beC. There is going to beD. There will going to be29. By the time the course ends,______ a lot about Britain.A. we’ll learntB. we are learningC. we have learntD. we’ll have learnt30. I suppose you’re not going today, ______?A. are youB. do youC. don’t youD. aren’t you31. ______ that this region was so rich in natural resources.A. Little he knewB. Little did he knowC. Little he did knowD. Little he had known32. ______ was wrong.A. Not the teacher but the studentsB. Both the students and the teacherC. Neither the teacher not the studentsD. Not the students but the teacher33. The Smiths ______ their breakfast when the morning post came.A. were havingB. has been havingC. are havingD. had34. Were it not for the adoption of the open policy, things ______ they are today.A. would never beB. could have beenC. would never have beenD. didn’t have35. Einstein’s theory of relativity seemed hard to believe at the time ______.A. when he first introducedB. that he first introduced itC. he first introducedD. which he first introduced it36. The time will surely come ______ ordinary people could operate computers as well.A. whileB. whenC. asD. on which37. _____ human beings depend to a great extent on forests, every effort must be made to preserve trees and wildlife.A. IfB. UnlessC. UntilD. Since38. No one has _____ been able to trace the author of the poem.A. stillB. yetC. alreadyD. just39. Will all those _____ the proposal raise their hands?A. in relation toB. in excess ofC. in contrast toD. in favor of40. I used to be able to play well but I'm _____ now.A. out of dateB. out of touchC. out of practiceD. out of place二、Correct the errors in the following sentences.(每题1分,共20分)Directions: Identify the one that would not be acceptablein standard written English. Mark out the incorrect one and correct it. And then write down your answers on the ANSWER SHEET.1. He had joined the Party for ten years before he was transferred to the city.A B C D2. Because radio communication had failed once before, I was afraid the men inA Bthe crew on the plane might be lost touch with the control tower.C D3. From the measure adopted by the committee, higher retirement age will notA Bgo into effect for two years.C D4. It is this marvelous continuity found in the human condition in any centuryA Bthat make the reading of masterpieces so fascinating.C D5. The president mentioned to the cabinet members he was going to negotiate aA B Cnew treaty with the foreign minister.D6. My brother doesn’t care how much does the car cost because he is going to buyA B C Dit anyway.7. Having finished high school, the village education board appointed him to aA B C teaching post in the primary school.D8. He sold the vegetables at half price, therefore they would go bad.A B C D9. Doctors often study film records of complex operations for improvingA B Ctheir own knowledge and skill.D10. If a crisis was to occur, those unfamiliar with the proceduresA Bwould not know how to handle the situation.C D11. The harder she tried, the more badly she danced before such a large audience.A B C D12. It was not until very recent times that had the theory of “probability” beenA B Clooked upon as hardly more than a curiosity.D13. He had trouble finding out that the capital of that country lay on the coast or inA B C Dthe mountains.14. As a result from hearing from the radio announcement, Peter has written toA Boffer himself as a member of the panel for next week.C D15. Learning a foreign language is especially difficult for those who had neverA B Clearned one before.D16. It often mistakenly supposed that the most expensive things are always the best.A B C D17. Some international students use a cassette recorder to make tapes of theirA Bclasses so that they can repeat the lecture again.C D18. To become a member of the civic association, one need only attend threeA Bmeetings and to pay his fees regularly.C D19. Thomas was a real friend, for he advised me as well as helping me with myA B C Arabic.D20. Some find swimming more enjoyable than to sit at home reading.A B C D三、Put the verbs in brackets in the correct form.(每空1分,共20分)1. The boy, who had remained silent and deep in thought on the journey home, _____(reply) in a way that shocked his father.2. For example, the proverb, “plucking a crop _____ (help) it grow”, is based on the following story.3. They use computers to keep the traffic _____ (run) smoothly.4. Up to now, the program _____ (save) thousands of children who would otherwise have died.5. The Group of Eight, or G8, _____ (form) by eight o f the world’s wealthiestnations in 1998.6. Barbara is easy to recognize as she’s the only one of the women who _____ (wear) an evening dress.7. Liuxiang was the first Asian _____ (win) the men’s 110m hurdles at the Olympics in Athens.8. When the first English settlers arrived in the New World, the Indians wearing jewelry made of animal bones ___(greet) them warmly.9. Do you believe that there is a _____ (connect) between smoking and heart disease?10. She stared at the painting, wondering where she _____ (see) it.11. By the end of next year they _______(complete) the task.12. A good deal of British car manufacture _______ (closely tie with) the continental industry.13. He held out a suggestion that the working part ________ (machine) in a more efficient way.14. Part of the light _______ (strike) the surface will be reflected from it.15. ____(remind) not to miss the flight at 15:30, the manager set out for the airport in a hurry.16. They ______(build) a new bridge over the river since May.17. Their letters ______ (not arrive) when they ______(leave) home this morning.18. She _________ (not want) to stay in bed while the others _________ (all,四、Fill in the blanks with proper prep., adv.,determiner, coordinator or subordinator.(每空1分,共10分)1.Mr. Brown showed his dissatisfaction ______your delay.2.The two companies are completely independent. There is no connection______ them.3.Don’t blame him for this; I am responsible ______that has happened.4.We managed to keep the fire in check, but we couldn’t put it _____.5.Medical research has shown that the widespread use of cigarettes contributes______the increase of cancers.6.He decided to make further improvements on the computer’s design ______the light of the requirements of customers.7.Finding a job in such a big company has always been ______ his wildestdreams.8.He was not conscious ______ what an important discovery he had made.9.He stood there with his back _______ the wall.10.That mountain is about two thousand feet _____ sea level.五、Rewrite the following sentences according to therequirements. (每题1分,共10分)1. Combine the sentence by using infinitive “to”She is so excited that she can’t utter one word.2. Use “there be” structure to rewrite the following sentence:Three accidents have occurred at this crossroads this week.3. Rewrite the following sentence with anticipatory “it”:How she came to have such a valuable painting is a mystery.4. Rewrite the given situation into subjunctive mood:I did not bring enough money with me, so I can’t take a taxi now.5. Put the following sentence into indirect speech:“I’ll be waiting for you in the office tonight,” David said.6. Join the sentences by changing the second into a non-restrictive attributive clause:The postman came to the back door. He is new in the district.7. Rewrite the following sentence so that it contains an adverbial clause.Hearing the news they immediately set off for Shanghai.8. Rewrite the underlined parts by using inversion.A temple stands at the foot of the mountain.9. Rewrite the underlined sentence with the emphasized pattern “it is …that/who/which”.She didn’t know her mother was ill in bed until she came home from work.10. Combine the following sentences by using an absolute construction (独立主格结构)There was no way for me to cross. I walked upstream on the south side.。

20XX年韩山师范学院本科插班生考试《数据结构》课程试卷

20XX年韩山师范学院本科插班生考试《数据结构》课程试卷

20xx年韩山师范学院本科插班生考试《数据结构》课程试卷韩山师范学院20xx年本科插班生考试试卷计算机科学与技术专业数据结构试卷(A 卷)一、单项选择题(每题2分,共30分)1. 栈和队列的共同特点是( A )。

A. 只允许在端点处插入和删除元素B. 都是先进后出C. 都是先进先出D. 没有共同点 2. 用链接方式存储的队列,在进行插入运算时( D )。

A. 仅修改头指针 B. 头、尾指针都要修改 C. 仅修改尾指针 D. 头、尾指针可能都要修改3. 以下数据结构中哪一个是非线性结构?( D )A. 队列B. 栈C. 线性表D. 二叉树4. 设有一个二维数组A[m][n],假设A[0][0]存放位置在644,A[2][2]存放位置在676,每个元素占一个空间,问A[3][3]存放在什么位置?( C ) A .688 B .678 C .692 D .696//对的.676+(676-644)/2A[2][2]与A[0][0] 相差两排零2个元素A[3][3]与A[2][2] 相差一排零1个元素因为元素的地址是连续的5. 树最适合用来表示( C )。

A.有序数据元素B.无序数据元素C.元素之间具有分支层次关系的数据D.元素之间无联系的数据6. 二叉树的第k层的结点数最多为( D )。

A.2k-1 B.2K+1 C.2K-1 D. 2k-17. 设有向无环图G中的有向边集合E={,,,},则下列属于该有向图G的一种拓扑排序序列的是(A)。

A. 1,2,3,4B. 2,3,4,1C. 1,4,2,3D. 1,2,4,3//拓扑排序,每个结点的所有前驱结点都排在该结点的前面。

有向无环图中,拓扑排序:1.包含所有顶点2.若序列有顶点A在B的前面,则图不存在B->A的边。

即,若图中存在B->A,则B 在A的前面故BCD不对8. 下列关于数据结构的叙述中,正确的是(A)。

A. 数组是同类型值的集合B. 树是一种线性结构C. 一般情况下递归算法的程序结构更为精炼、效率更高D. 用一维数组存储二叉树,总是以先序遍历的顺序存储各结点9. 对于线性表(7,34,55,25,64,46,20,10)进行散列存储时,若选用H(K)=K % 9作为散列函数,则散列地址为1的元素有(D)个。

2017年韩山师范学院本科插班生考试《基础英语》A卷

2017年韩山师范学院本科插班生考试《基础英语》A卷

韩山师范学院2017年本科插班生考试试卷英语专业基础英语试卷( A卷)nguage knowledge. Choose one word, phrase or statementthat best completes the sentence. (每空1分,共20分)1. Agriculture is the country’s chief source of wealth, wheat ______ by far the biggest cereal crop.A. isB. beenC. beD. being2. Jack _____ from home for two days now, and I am beginning to worry about his safety.A. has been missingB. has been missedC. had been missingD. was missed3. Above the trees are the hills, ____ magnificence the river faithfully reflects on the surface.A. whereB. of whoseC. whoseD. which4. Who ______ was coming to see me in my office this afternoon?A. you saidB. did you sayC. did you say thatD. you did say5. Does Alan like hamburgers?Yes. So much ____ that he eats them almost every day.A.forB. asC. toD. so6. Your ideas, ______ seem unusual to me.A. like herB. like hersC. similar to herD. similar to herself7. The opening ceremony is a great occasion. It is essential _____ for that.A. for us to be preparedB. that we are preparedC. of us to be preparedD. our being prepared8. Time _____, the celebration will be held as scheduled.A. permitB. permittingC. permittedD. permits9. The bus moved slowly in the thick fog. As a result, we arrived at our _____ almost two hours late.A. designationB. destinyC. destinationD. dignity10. He demonstrated his _____ for music by the ease with which he picked out melodies by ear.A. attitudeB. ability C aptitude D. wisdom11. Many modern language teachers make occasional use of teaching aids such as computers and tape recorders, but only a few use then systematically as an ______part of their work.A. incredibleB. individualC. integralD. associate12. Living in the countryside has its _____ as well as advantages.A. inferiorityB. setbacksC. drawbacksD. validity13. The air that holds a maximum amount of water vapor is _____, like s sponge unable to hold any more water.A. immersedB. saturatedC. quantifiedD. ventilated14. Electric wires in your house are_____ with poor conductors like rubber or silk.A. segregatedB. insulatedC. isolatedD. severed15. The enemy are now in a very difficult situation; they can neither advance nor ____ .A. resignB. retreatC. retrieveD. repel16. Reading is an active thinking process ______ the interaction between the reader and the print.A. containingB. indulgingC. involvingD. resolving17. In some cases, a sentence may be grammatically acceptable, but ______ in implication.A. ambitiousB. affirmativeC. approximateD. ambiguous18. For Europeans, life is a career; for Americans, it is a _______ of hazards.A. successB. recessionC. successionD. procession19. Reading efficiency means the ______ of a reading task within an appropriate time frame and with appropriate comprehension.A. accomplishmentB. commitmentC. contentmentD. complement20. In the past, major disasters, such as wars, plagues and earthquakes, could destroy only a _____ of the human race and environment.A. fractionB. fragmentC. frictionD. fictionII.Derivative. Write down the correct word to complete each sentence. (每题1分,共10分)A.Breathe1. It is so hot in this small kitchen that I can hardly ________.2. When I answered the telephone, there was an unknown and _____ voice on other end, which was really irritating.3. There was a ______ silence during the last world table-tennis championship game.4. You are wasting your ______ trying to persuade him to quit smoking. He’ll only stop when he wants to.5. During the last convention, there were so many items on the agenda that there was hardly any ____ space.B. express6. Being an advanced student of English, you should be able to _____ yourself freely in English.7. A cat’s mewing may be _______ of hunger, cold or pain.8. _______, impressionism and romanticism are different movements in art, music and literature.9. The shop assistant was a middle-aged man with an ______ face.10. The beauty of the cave, with its stalagmites and stalactites and dripping water, was beyond _______.III.Match each word in Column A with the phrase in Column B that is similar in meaning. (每题1分,共10分)IV.Fill in each blank with a preposition from the box.(每题1分,共10分)1. The “quality”newspapers are often held ___ as an example ofimpartial journalism.2. I don’t think our food suppliers will hold ___ much longer.3. Do you think the editors of the magazines will hold ____ our taking sides on political questions?4. During the enemy’s offensive, the village people refused to surrender but held ___ until the rescue troops arrived.5. The football match was held ____ till further notice on account of the continual rain.6. We are not surprised at the young man’s enrollment in that university because it is not their policy to hold a person’s past bad behavior _____ him.7. Any teacher is inclined to hold ___ any excellent work of the students for his or her class to imitate.8. If we think what we are doing is good and beneficial to the people we should try to hold ____ it and never give up.9. Before the rainy season, the authorities had already had the banks of earth built to hold _____ the potential flood.10. It was a place of romance. I felt I had just to hold ____ my hand to touch it.V.Reading comprehension. Choose the one that you think is the best answer and mark your answers on Answer Sheet.(每题2分,共10分)Passage OneToday, more and more people are using credit cards instead of money to buy the things they need. Almost anyone who has a steady income and a continuous work record can apply for a credit card. If you have a credit card, you can buy a car, have a dinner, take a trip, and even get a haircut by charging the cost to your account. In this way you canpay for purchases a month or two later, without any extra charge. Or you may choose to spread out your payments over several months and pay only part of the total amount each month. If you do this, the credit card company or the bank who sponsors the credit card will add a small service charge to you total bill. This is very convenient for the customer. With the credit card in your wallet or purse, you don’t have to carry much cash. This saves you trips to the bank to cash checks or draw cash. Also if you carry credit cards instead of a lot of cash, you don’t have to be concerned about losing your money through carelessness or theft. The card user only has to worry about paying the final bill. This of course can be a problem if you charge more than you can pay for.Credit cards are big business. Americans spend 16 billion dollars a year on credit cards and there are already 590 million of them in circulation. Many banks sponsor their own credit companies and issue cards free to their customers. Other credit card companies charge their members annual dues. The stores that accept credit cards must pay a small fee to the credit card company – a percentage of purchase price of the merchandise or service. In return, the credit card company promptly pay the store for the merchandise or service. Credit card companies make a profit from the fees they charge the stores and also from the fees collected from customers who pay for their charges in monthly installments.However, credit card companies sometimes have problems collecting overdue payments from unreliable customers. Also the use of stolen, lost, or counterfeit credit cards by criminals has become a big headache for the credit card companies which are responsible for the goods and services illegally charged to their customers’ account.1. What is the biggest worry for credit card users?A. Their credit cards may get stolen.B. They will be charged for the credit card service by the bank.C. The time allowed for them to pay back the money is not long enough.D. They may have spent more money than they can pay back.2. According to the passage, which of the following is Not a channel for the credit card company to make a profit?A. Membership fees for credit card users.B. A heavy fine for overdue payments.C. Service charges for stores that accept credit cards.D. Service charges for card users who pay back over period.3. The author’s purpose of writing this article is to _____.A. persuade people to use credit cardsB. warn people of the danger of using credit cardsC. explain how credit card business worksD. explain how to use credit cardsPassage TwoSome 2,400 miners were on the day shift last Tuesday morning at the Kinross gold mine, 65 miles from Johannesburg. A welding team was repairing a broken track for one of the trains that help carry gold ore to the surface. Suddenly, an acetylene tank sparked and flared. Flames swept through the tunnel, igniting plastic-covered wiring, which in turn set fire to polyurethane foam that keeps the walls dry and solid. Within minutes the mine shaft filled with thick black smoke containing toxic fumes from the burning plastic. Choking miners immediately fell and died of asphyxiation.When the initial 9 ½ -hour rescue operation ended, 177 were dead, one was missing, and 235 were injured, making Kinross the worst gold-mine disaster in South African history. All but five of the victims were black, and the black-dominated National Union of Mineworkers denounced the “unacceptably low safety standards” in the mines. In fact, Kinross last year lost its top safety rating. But the mine’s generalmanager said the plastics that burned had been considered safe. A government investigation is now under way.4. Which of the following statements is true?A. Many miners were burnt to death.B. Many miners choked and died.C. Many miners fell into the mine and were killed.5. Which of the following statements is not mentioned in the text?A. Kinross gold mine is the only gold mine in South Africa.B. Kinross gold mine disaster was worse than any other disaster that has taken place in South Africa.C. Kinross gold mine used to have a high safety rating.VI.Cloze. Decide which of the words given in the box below would best complete the passage if inserted in the corresponding blanks.The words can be used ONCE ONLY. Mark the letter for eachword on Answer Sheet.(每题1分,共10分)In the recent past, medical research has shown that heart disease is associated with certain factors in our day-to-day lives: with smoking, with poor nutrition, and with a lack of exercise.Doctors and other health experts have been 1____ the fact that we can often reduce the risk of heart disease by paying more attention to these factors.More and more people are realizing that there is a 2_____ betweenheart disease and the way they live. As a result of this new awareness, attitudes towards health are changing. In the past, people tend to think that it was 3____ for good health to have a good doctor who could be relied on to know exactly what to do when they become ill. Now they are realizing that merely receiving the best treatment 4_____ illness and injury is not enough. They are learning that they must 5____ more responsibility for their own health.Today many people are changing their dietary 6_____ and eating food with less fat and cholesterol. Many are paying more attention to reducing 7 ____ in their lives. The number of smokers in the US is now far below the level of a lot of years ago 8______ many people succeed in breaking the habit and as fewer people take it up.More and more are aware of the 9______ of regular exercise like walking, running or swimming, some have begun to walk or ride bicycles to work instead of driving. Millions have become members of health clubs and have 10 ____ health club one of the fastest growing businesses in the US today.e the words given in parentheses to translate the following sentences. Change the forms if necessary.(每题3分,共15分)1. 我们原无须自己预定雅虎因特网服务。

2017年韩山师范学院本科插班生考试《数学分析》A卷

2017年韩山师范学院本科插班生考试《数学分析》A卷

韩山师范学院2017年本科插班生考试试卷数学与应用数学 专业 数学分析 试卷(A 卷)一、 填空题(每小题3分,共30分)1. 设函数)(x f 在 [a,b ] 上连续,则21()x d f t dt dx⎰= . 2. 设)(x f 具有连续的导数, 则=+⎰dx x f x f x f )(1)()(2' .3. 设=)(x f sin , 0,, 0, (2, 0,kxx x k x k x x ⎧<⎪⎪=⎨⎪+>⎪⎩为常数), 若()f x 在0x =在右连续,则k =_________ _ ____.4. 设∈+=x x n xn x f n , ||1sin )(2) , (∞+∞-.则=∞→)(lim x f n n . 5. 函数3ln 3)(--=x x x f 全部间断点是 .6.343()41032f x x x ⎡⎤=-+⎢⎥⎣⎦设 ,则其在,上的最小值为 .7. 二重积分23Dx y dxdy ⎰⎰ (其中D :0≤y ≤x 2,0≤x ≤1)的值为 . 8. 设(,)z f x y xy =+,(,)f u v 具有连续偏导数,则偏导数zy∂=∂ . 9. 交换积分dx y x f dyy⎰⎰-101),(的次序成为 .10. 设dy hh x f x f x f y h 36)2()(lim),(0则且=+-=→等于 .二、 计算题(每小题6分,共30分)1. 设⎪⎩⎪⎨⎧=+≠++=0 ,0 0 ,1sin ),(222222y x y x yx y y x f ,考察函数f 在原点(0,0)的偏导数。

2. 求cos 2x 的幂级数展开式.3. 计算极限 2n 11lim(1)nn n→∞++.4.求曲面z y x =+22,4:22=+y x D 及xoy 平面所围成的立体体积.5.求由曲线y 2 = 2x 及直线y = x-4所围成的图形的面积。

韩山师范学院专升本插班生考试样1

韩山师范学院专升本插班生考试样1

韩山师范学院专升本插班生考试样卷数学与应用数学 专业 高等代数 样卷一、填空题(每小题2分,共12分) 1.最小的数域是 。

2.能整除任意多项式的多项式是 。

3.-1是5432()614113f x x x x x x =+----的 重根。

4.六阶行列式D 的一项233142561465a a a a a a 的符号为 。

5.二次型12312(,,)6f x x x x x =-的矩阵是 。

6.设(1,1,1),(1,1,)αβλ=-=是欧氏空间R 3的两个向量,则当λ= 时,有αβ⊥。

二、判断题(每小题2分,共10分)1.设:f A B →是一个映射,若对12,x x A ∀∈,只要12x x =,就有12()()f x f x =,那么f 是A 到B 的一个单射.( ) 2.次数大于1的奇次实系数多项式在实数域上一定可约. ( ) 3.若5整除三阶行列式D 的每一个元素,则53整除D .( )4.n 阶行列式D 的元素ij a 的代数余子式A ij ,当i 与j 的奇偶性相同时一定等于余子式M ij .( ) 5.(A+B)(A -B )=A 2-B 2.( )三、选择题(每小题3分,共18分)1.010002000010n n-=( ).(A) n!; (B) (-1)n-1n! ; (C )-n! ; (D) (-1)n n! 2.m 个方程n 个未知量的线性方程组有无穷多解的充要条件是( ). (A)m n <; (B) 系数矩阵的秩<n ; (C ) 系数矩阵的秩等于增广矩阵的秩; (D)系数矩阵的秩等于增广矩阵的秩且小于n 3.n 阶矩阵A 不可逆的充要条件是( ). (A)对数域F 上任意n 阶矩阵B ,都有AB ≠BA ; (B)存在数域F 上的一个n 阶矩阵B ,使得AB ≠I ; (C)对数域F 上任意n 阶矩阵B ,都有AB ≠I ; (D)对数域F 上任意n 阶矩阵B ,都有AB =04.当λ满足条件( )时,二次型222123123121323(,,)5422f x x x x x x x x x x x x λ=+++-- 为正定二次型.(A)2λ>; (B)2λ<; (C)2λ≥ ; (D)2λ≤5.设σ是n 维欧氏空间V 的线性变换,12,,,n ααα 为V 的规范正交基,则( )使σ为正交变换.(A)12,,,n V βββ∀∈ ,有(),1,2,,i i i n σαβ== ;(B)12,,,n βββ 为V 中线性无关的向量,且(),1,2,,i i i n σαβ== ; (C)12,,,n βββ 两两正交,有(),1,2,,i i i n σαβ== ; (D)12,,,n βββ 为V 的规范正交基,且(),1,2,,i i i n σαβ==6.设β可由12,,,n ααα 线性表示,但β不能由121,,,n ααα- 线性表示,则( ) (A)121,,,,n αααβ- 线性无关; (B)121,,,,n αααβ- 线性相关;(C)n α不能由121,,,,n αααβ- 线性表示;(D)n α可由121,,,,n αααβ- 线性表示四、计算题(共30分)1.(7分)计算n 阶行列式D=1221100001000001nn n x x x a a a a x a -----+.2.(8分)设A=112224336⎛⎫⎪⎪ ⎪⎝⎭,求齐次线性方程组AX=0的一个基础解系,并求一个秩为2的方阵B ,使AB=0.3.(7分)判断c 满足何条件时,线性方程组1212212212x x x x c x x c +=⎧⎪-=⎨⎪+=⎩有解?4.(8分)设线性变换σ在基123,,ααα下的矩阵为A=001010100⎛⎫⎪⎪ ⎪⎝⎭,求σ的本征值与本征向量。

数据结构考试试题库含答案解析

数据结构考试试题库含答案解析

数据结构习题集含答案目录目录 (1)选择题 (2)第一章绪论. (2)第二章线性表. (4)第三章栈和队列. (6)第四章串. (7)第五章数组和广义表 (8)第六章树和二叉树 (8)第七章图. (11)第八章查找. (13)第九章排序. (14)简答题 (19)第一章绪论. (19)第二章线性表. (24)第三章栈和队列. (26)第四章串. (28)第五章数组和广义表 (29)第六章树和二叉树 (31)第七章图. (36)第八章查找. (38)第九章排序. (39)编程题 (41)第一章绪论. (41)第二章线性表. (41)第三章栈和队列. (52)第四章串. (52)第五章数组和广义表 (52)第六章树和二叉树 (52)第七章图. (52)第八章查找. (52)第九章排序. (57)选择题第一章绪论1. 数据结构这门学科是针对什么问题而产生的?( A )A、针对非数值计算的程序设计问题 B 、针对数值计算的程序设计问题C、数值计算与非数值计算的问题都针对D、两者都不针对2. 数据结构这门学科的研究内容下面选项最准确的是( D )A、研究数据对象和数据之间的关系 B 、研究数据对象C、研究数据对象和数据的操作D、研究数据对象、数据之间的关系和操作3. 某班级的学生成绩表中查得张三同学的各科成绩记录,其中数据结构考了90分,那么下面关于数据对象、数据元素、数据项描述正确的是( C )A、某班级的学生成绩表是数据元素,90 分是数据项B、某班级的学生成绩表是数据对象,90 分是数据元素C、某班级的学生成绩表是数据对象,90 分是数据项D、某班级的学生成绩表是数据元素,90 分是数据元素4. *数据结构是指(A )。

A、数据元素的组织形式B、数据类型C、数据存储结构D、数据定义5. 数据在计算机存储器内表示时,物理地址与逻辑地址不相同,称之为(C )。

A、存储结构B、逻辑结构C、链式存储结构D、顺序存储结构6. 算法分析的目的是( C )A、找出数据的合理性B、研究算法中的输入和输出关系C、分析算法效率以求改进D、分析算法的易懂性和文档型性7. 算法分析的主要方法( A )。

《高等代数》韩山师范学院专插本历年真题 (2)

《高等代数》韩山师范学院专插本历年真题 (2)

韩山师范学院专升本插班生考试样卷数学与应用数学 专业 高等代数 A 卷一、填空题(每小题2分,共12分) 1. 一个素数p 有 个因数.2. 多项式)(x f 无重因式的充要条件是 .3. 两个实二次型等价的充分必要条件是它们有相同的秩和 .4. 最大的数域是 .5. 次数大于零的多项式在复数域C 中只能有 次的不可约多项式.6. 一个向量空间V 的基所含向量的个数叫做V 的 . 二、判断题(每小题2分,共10分) 1. 4267351 是奇排列.( )2. 2是多项式1415623-+-x x x 的二重根.( )3. 多项式3261614x x x -+-在有理数域上是不可约的.( )4. 任意一个齐次线性方程组都有基础解系.( )5. 在欧氏空间C [-1,1]中,向量1与x 正交.( ) 三、选择题(每小题3分,共18分) 1.若111221221,a a a a = 则下列( )是方程组111122121122220,0.a x a x b a x a x b -+=⎧⎨-+=⎩ 的解. (A )11211112222212,;b a a b x x b a a b ==(B )11211112222212,;b a a b x x b a a b -==-(C )11211112222212,;b a a b x x b a a b -==-(D )11211112222212,.b a a b x x b a a b --==--2.000000200000300000101n n =-( ).(A ) (-1)n -3 n ! ; (B ) (-1) 2n n ! ; (C ) (-1)n -2 n ! ; (D )n ! . 3. 设A ,B ,C 都是n 阶方阵,且ABC =I , 则( )成立.(A )CAB = I (B )BAC = I (C )ACB = I (D ) CBA = I 4. 设A 是n 阶可逆矩阵,则下面推断正确的是( )(A ) 交换A 的i , j 两行得到B ,则交换A -1的i , j 两行就得到B -1. (B ) 交换A 的i , j 两行得到B ,则交换A -1的i , j 两列就得到B -1.(C ) 把A 的第 j 行的k 倍加到第i 行得到B ,则把A -1的第i 行的k 倍加到第j 行就得到B -1.(D ) 把A 的第 j 行的k 倍加到第i 行得到B ,则把A -1的第i 列的k 倍加到第j 列就得到B -1.5. 设Q 为有理数域,R 为实数域,C 为复数域,则下述结论正确的是( ). (A )Q 构成R 上的向量空间; (B )Q 构成C 上的向量空间; (C )R 构成C 上的向量空间; (D )C 构成R 上的向量空间.6. 已知欧氏空间R 3的线性变换(,,)(,,)x y z x y y y z σ=++,则( )成立. (A )σ 是正交变换,但不是对称变换; (B )σ 是对称变换,但不是正交变换; (C )σ 是正交变换,也是对称变换; (D )σ 不是正交变换,也不是对称变换. 四、计算题(共30分) 1.(7分)计算行列式ab b b b b a b b b D bb a b b b b b a b b b b b a=。

2012韩山师范学院专升本插班生考试《数据结构》试卷

2012韩山师范学院专升本插班生考试《数据结构》试卷

韩山师范学院2012年专升本插班生考试计算机科学与技术 专业 数据结构 试卷 (A 卷)一、 单项选择题(每题1.5分,共30分)1、数据的不可分割的最小单位是( C )。

A .数据元素B .数据对象C .数据项D .数据串2、一个算法应该具有一些重要特性,下列不是算法特性的是( D ) 。

A .有穷性B .确定性C .可行性D .健壮性E .至少一个输出 3、下面关于线性表的表述中,( B )是错误的?A .若线性表采用顺序存储,必须占用一片连续的存储单元。

B .若线性表采用顺序存储,便于进行插入和删除操作。

C .线性表采用链接存储,占用的存储单元不一定是连续的。

D .线性表采用链接存储,便于插入和删除操作。

4、下列哪个不是链表所具有的特点是( A )。

A .可随机访问表中元素B .插入、删除不需要移动元素C .线性链表必须有一个指针域D .所需空间与线性长度成正比[解析] 链表是线性表的链式存储,是用结点来存储数据元素。

线性表采用链表作为存储结构时,不能进行数据元素的随机访问,其优点是插入和删除操作不需要移动元素。

5、若线性表的长度为 n,且采用顺序存储结构,则等概率删除其第 i个元素的算法的时间复杂度为( D )(1<=i<=n)。

A. O(i)B. O(n-i)C. O(1)D. O(n)6、静态链表中指针表示的是(B)。

A.内存地址B.数组下标 C.表头地址 D.下一元素地址7、下列关于串的叙述中正确的是B。

A.串中所含的字母个数称为串的长度B.串是一种特殊的线性表C.串中的字母不区分大小写D.由空格组成的串称为空串8、设有一个采用压缩存储的9 阶对称矩阵A,以行序为主存储,第一个元素a 11的存储地址为 0,每个元素占一个地址空间,则a86的地址为()。

A. 26B. 27C. 36D. 37E.46F.479、判断一个带表头的循环链表H为空表的判定条件是( A )A.H==NULLB.H->next==NULLC.H->next=NULLD.H->next==H10、若一个栈的输入序列为 1,2,3,…,n,输出序列的第一个元素是 i,则第j 个输出元素是( B )。

专插本《数据结构》样卷

专插本《数据结构》样卷

韩山师范学院2009年专升本插班生考试试卷计算机科学与技术专业数据结构样卷一、单项选择题(每题2分,共40分)。

1.关于线性表的描述,错误的是()。

A. 线性表是线性结构B. 线性表就是单链表C. 线性表的顺序存储结构,必须占用一片连续的存储单元D. 线性表的链式存储结构,不必占用连续的存储单元2.在存储数据时,通常不仅要存储各数据元素的值,而且还要存储( )。

A.数据的处理方法B.数据元素的类型C.数据元素之间的关系D.数据的存储方法3.与单链表相比,双链表的优点之一是( )。

A.插入、删除操作更简单B.可以进行随机访问C.可以省略表头指针或表尾指针D.顺序访问相邻结点更灵活4. 对n个不同的排序码进行冒泡排序,在元素无序的情况下比较的次数为( )。

A. n+1B. nC. n-1D. n(n-1)/25.如果结点A有3个兄弟,而且B为A的双亲,则B是度为()A.3 B.4 C.5 D.16.在具有N个单元的顺序存储循环队列中,假定front和rear分别为队头指针和队尾指针,则判断队满的条件为()。

A.front == rear B.(rear+1) % MAXSIZE == frontC.front - rear==1 D.rear % MAXSIZE == front7. 某二叉树的前序遍历序列为 ABDGCEFH ,中序遍历序列为 DGBAECHF ,则后序遍历序列为()。

A. BDGCEFHAB. GDBECFHAC. BDGAECHFD. GDBEHFCA8.设无向图的顶点个数为n,则该图最多有()条边。

A. n-1B. n(n-1)/2 C.n(n+1)/2 D. 09. 在一个长度为N的线性表中顺序查找值为x的元素时,在等概率的情况下查找成功时的平均查找长度为()。

A. NB. N/2C. (N+1)/2D. (N-1)/210.深度为5的二叉树至多有( )个结点。

A.16B.32C.31D.1011. 堆的形状是一棵( )。

数据结构试卷及答案复习进程

数据结构试卷及答案复习进程

数据结构试卷及答案收集于网络,如有侵权请联系管理员删除注意事项:1、下面关于串的叙述中,哪一个是不正确的?( )A .串是字符的有限序列B .空串是由空格构成的串C .模式匹配是串的一种重要运算D .串既可以采用顺序存储,也可以采用链式存储 2、设无向图的顶点个数为n ,则该图最多有( )条边。

A .n-1B .n(n-1)/2C . n(n+1)/2D .03、以下数据结构中,( )是非线性数据结构。

A .树B .字符串C .队列D .栈4、下面关于线性表的叙述中,错误的是哪一个?( )A .线性表采用顺序存储,必须占用一片连续的存储单元。

B .线性表采用顺序存储,便于进行插入和删除操作。

C .线性表采用链接存储,不必占用一片连续的存储单元。

D .线性表采用链接存储,便于插入和删除操作。

5、假设以数组A[m]存放循环队列的元素,其头尾指针分别为front 和rear ,则当前队列中的元素个数为( )。

A .(rear-front+m)%mB .rear-front+1C .(front-rear+m)%mD .(rear-front)%m6、在单链表指针为p 的结点之后插入指针为s 的结点,正确的操作是( )。

A .p->next=s; s->next=p->next;B .s->next=p->next; p->next=s;C .p->next=s; p->next=s->next;D .p->next=s->next; p->next=s; 7、设栈的输入序列是1,2,3,4,则( )不可能是其出栈序列。

A .1,2,4,3B .2,1,3,4C .1,4,3,2 D .4,3,1,2, 8、广义表(a,(b,c),d,e )的表头和表尾分别为( )。

A .a 和(b,c),d,e B .(a )和(b,c),d,eC .a 和 ((b,c),d,e)D .(a) 和((b,c),d,e) 9、栈和队都是( )期末考试《数据结构》A 卷一、单项选择题(请将正确答案的字母填写在每题对应的括号内,每小题1分,共20分)姓名:________ 学号:__________ 年级:______________ 专业:_____________A.顺序存储的线性结构 B.链式存储的非线性结构C.限制存取点的线性结构 D.限制存取点的非线性结构10、从逻辑上可以把数据结构分为()两大类。

word版,2017《数据结构》期末考试试题及答案,文档

word版,2017《数据结构》期末考试试题及答案,文档

2017《数据结构》期末考试一试题及答案《数据结构》期末考试一试题及答案1..................................... .. (2)试题1答案............................................. ............................................... (7)《数据结构》期末考试一试题及答案2..................................... .. (9)试题2答案............................................. ............................................... (14)《数据结构》期末考试一试题及答案3..................................... (16)试题3答案............................................. ............................................... (21)第1页共23页《数据结构》期末考试一试题及答案 1一、单项选择题(每题2分,共20分)1. 栈和行列的共同特色是( )。

A.只同意在端点处插入和删除元素B.都是先进后出C.都是先进先出D.没有共同点用链接方式储存的行列,在进行插入运算时().A.仅改正头指针B.头、尾指针都要改正C.仅改正尾指针D.头、尾指针可能都要改正以下数据结构中哪一个是非线性结构?()A.行列B.栈C.线性表D.二叉树4.设有一个二维数组A[m][n],假定A[0][0]寄存地点在644(10),A[2][2]寄存地点在676(10),每个元素占一个空间,问A[3][3](10)寄存在什么地点?脚注(10)表示用10进制表示。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

韩山师范学院2017年本科插班生考试试卷
计算机科学与技术 专业 数据结构 试卷(A 卷)
一、单项选择题(每题2分,共30分)
1. 对线性表,在下列哪种情况下应当采用链表表示?( ) A. 经常需要随机地存取元素 B. 经常需要进行插入和删除操作 C. 表中元素需要占据一片连续的存储空间 D. 表中元素的个数不变
2. 一个栈的输入序列为1 2 3,则下列序列中不可能是栈的输出序列的是( )。

A. 2 3
B. 3 2 1
C. 3 1 2
D. 1 2 3
3.程序段s=i=0;do {i=i+1; s=s+i ;}while(i<=n);的时间复杂度为( )。

A. O(n)
B. O(nlog 2n)
C.O(n 2)
D.O(n 3/2)
4.一个非空广义表的表头( )。

A.不可能是子表
B.只能是子表
C.只能是原子
D.可以是子表或原子
5.设数组data[m]作为循环队列SQ 的存储空间,front 为队头指针,rear 为队尾指针,则执行出队操作后其头指针front 值为( )。

A. front=front+1 B. front=(front+1)%(m-1)
C. front=(front-1)%m
D. front=(front+1)%m
6.在一个单链表中,若q 所指结点是p 所指结点的前驱结点,若在q 与p 之间插入一个s 所指的结点,则执行( )。

A. s →link=p →link; p →link=s;
B. p →link=s; s →link=q;
C. q →link=s; s →link =p;
D. p →link=s →link; s →link=p;
7.设有一个二维数组A[m][n],假设A[0][0]存放位置在644(10),A[2][2]存放位置在676(10),每个元素占一个空间,问A[3][3](10)存放在什么位置?脚注(10)表示用10进制表示()。

A. 696
B. 692
C.688
D. 678
8.用某种排序方法对关键字序列(25,84,21,47,15,27,68,35,20)进行排序时,序列的变化情况如下:
20,15,21,25,47,27,68,35,84
15,20,21,25,35,27,47,68,84
15,20,21,25,27,35,47,68,84
则所采用的排序方法是()。

A.选择排序
B.希尔排序
C.归并排序
D.快速排序
9.组成数据的基本单位是()。

A. 数据项
B.数据类型
C.数据元素
D.数据变量
10.数组的逻辑结构不同于下列()的逻辑结构。

A. 树
B. 栈
C. 队列
D. 线性表
11.根据二叉树的定义可知二叉树共有()种不同的形态。

A.4
B. 5
C. 6
D. 7
12.设一条单链表的头指针变量为head且该链表没有头结点,则其判空条件是()。

A. head==0
B. head->next==0
C. h ead->next==head
D. head!=0 13.设用邻接矩阵A表示有向图G的存储结构,则有向图G中顶点i的入度为()。

A.第i行非0元素的个数之和
B. 第i列非0元素的个数之和
C.第i行0元素的个数之和
D. 第i列0元素的个数之和
14.设无向图G中有n个顶点,则该无向图的最小生成树上有()条边。

A. 2n
B. 2n-1
C. n-1
D. n
15.由权值分别为11,8,6,2,5的叶子结点生成一棵哈夫曼树,它的带权路径长度为()
A. 24
B. 48
C. 53
D. 71
二、填空题(每空2分,共20分)
1.数据的物理结构主要包括_____________和______________两种情况。

2.设某棵二叉树中度数为0的结点数为N 0,度数为1的结点数为N 1,则该二叉树中度数为2的结点数为_________;若采用二叉链表作为该二叉树的存储结构,则该二叉树中共有_______个空指针域。

3. 设顺序线性表中有n 个数据元素,则第i 个位置上插入一个数据元素需要移动表中_______个数据元素;删除第i 个位置上的数据元素需要移动表中_______个元素。

4.设某无向图G 的邻接表为
,则从顶点V1开始的深度优先遍历序列为
__________ _;广度优先遍历序列为____ ____。

5. 设有一组初始关键字序列为(24,35,12,27,18,26),则第3趟直接插入排序结束后的结果的是______________________ ________; 设有一组初始关键字序列为(24,35,12,27,18,26),则第3趟简单选择排序结束后的结果的是__________________________________。

三、判断题(对的划√,错的划×。

每小题1分,共10分)
( )1.线性表中的所有元素都有一个前驱元素和后继元素。

( )2.不论是入队列操作还是入栈操作,在顺序存储结构上都需要考虑
“溢出”情况。

()3.对连通图进行深度优先遍历可以访问到该图中的所有顶点。

()4.由树转化成二叉树,该二叉树的右子树不一定为空。

()5.如果某个有向图的邻接表中第i条单链表为空,则第i个顶点的出度为零。

()6..有向图的邻接表和逆邻接表中表结点的个数不一定相等。

()7.不论线性表采用顺序存储结构还是链式存储结构,删除值为X 的结点的时间复杂度均为O(n)。

()8.关键路径是AOE网中源点到汇点的最短路径。

()9.图的深度优先遍历算法中需要设置一个标志数组,以便区分图中的每个顶点是否被访问过。

()10.用邻接矩阵作为图的存储结构时,则其所占用的存储空间与图中顶点数无关而与图中边数有关。

四、程序填空题(每个空2分,共10分)
1.下面程序段的功能是实现一趟快速排序,请在下划线处填上正确的语句。

struct record {int key;datatype others;};
void quickpass(struct record r[], int s, int t, int &i)
{ int j=t; struct record x=r[s]; i=s;
while(i<j)
{while (i<j && r[j].key>x.key) j=j-1; if (i<j) {r[i]=r[j];i=i+1;}
while (____________________) i=i+1; if (i<j) {r[j]=r[i];j=j-1;}
}
_________________;
}
2.如下为二分查找的非递归算法,试将其填写完整。

Int Binsch(ElemType A[ ],int n,KeyType K)
{
int low=0;
int high=n-1;
while (low<=high)
{
int mid=_______________________________;
if (K==A[mid].key) return mid; //查找成功,返回元素的下标
else if (K<[mid].key)
_________________________; //在左子表上继续查找
else __________________; //在右子表上继续查找
}
return -1; //查找失败,返回-1
}
五、分析简答题(第一题8分,其余各题6分,共20
分)
1.(8分)已知一个图的顶点集V和边集E分别为:
V={1,2,3,4,5,6,7};
E={(1,2)3,(1,3)5,(1,4)8,(2,5)10,(2,3)6,(3,4)15,(3,5)12,(3,6)9,(4,6)4,(4,7)
20,(5,6)18,(6,7)25};
用克鲁斯卡尔算法(Kruskal)得到最小生成树,试写出在最小生成树中依次得到的各条边。

2. (6分)设某棵二叉树的中序遍历序列为DBEAC,前序遍历序列为ABDEC,试写出这棵二叉树的后序遍历结果并画出这颗二叉树。

3.(6分)一个线性表为B=(12,23,45,57,20,03,78,31,15,36),设散列表为HT[0..12],散列函数为H(key)= key % 13并用线性探查法解决冲突,请画出散列表,并计算等概率情况下查找成功的平均查找长度。

六、算法设计题(10分)
设有一线性表(a1, a2,…,a n-1)用单链表存储,写算法实现将其就地逆置的
操作。

(“就地”是指辅助空间应为O(1))。

相关文档
最新文档