程序段for(i=n-1;i>=0;i--)for(j=1;j<=n;j++)ifA[j]>A[j+1]A[j]与A[j+1]对换;其中n为正整数,则最后一行的语句频度在最坏情况下是()。
A. O(n)
B. O(n2)
C. O(n3)
D. O(nlog2n)
查看答案
下面关于算法的说法正确的是()。
A. 算法的时间效率取决于算法所花费的CPU时间
B.在算法设计中不能用牺牲空间代价来换取好的时间效率
C.算法必须具有有穷性、确定性等五个特性
D.通常用时空效率来衡量算法的优劣
[音频]Section A This section is to test your ability to give proper responses. Choose the best answer for each recorded question. And put the Capital letter in the blank.1. A) Fine. And you?C) Sit down please.B) I like it very much.D) Oh, yes. Please.2. A) Take careC) My pleasure.B ) It's great.D) This way, please.3. A) See you tomorrow.C) Here is the room key.B) OK, it doesn't matterD) Sorry, all our rooms are booked.4. A) Yes, please.C) Don ’t do it.B) Have a nice day.D) Let ’s go.5. A) Hurry up.C) Certainly. Is Friday OK?B) So long.D) Mind your steps.6. A) Coffee, pleaseC) Your telephone number, please.B) Yes. Here you are.D) I ’m fine, thank you.7. A) Don ’t worry.C) All right.B) Good luck!D) Never mind.
[音频]This section is to test your ability to dictate. You are required to put the missing words or phrases on the Answer Sheet in order of the numbered blanks according to what you hear.Volunteers are our heart and soul. Please come and help us build homes for _20__ low-income families. There is no experience needed and we supply the __21__. Just volunteer for a day. It's fun, rewarding and you can learn some __22__.If building isn't your thing, come and volunteer for one of our events or __23__. You must be __24__ 14 years of age to volunteer and those 15 years and undermust come with a parent.Come and sign up now to volunteer your time.
竖井的底部和顶部可以通过拖曳三角箭头,修改竖井的顶部和底部限制条件,也可以直接修改实例属性值。
A. 对
B. 错