人教版高中物理选修312345课后习题答案
●设有关键码序列(16,9,4,25,15,2,13,18,17,5,8,24),要按关键码值递增的次序排序,采用直接选择排序法,一趟扫描后的结果为 (5) 。
(5) A.(2,9,4,25,15,16,13,18,17,5,8,24)
B.(15,2,4,18,16,5,8,24,17,9,13,25)
C.(9,4,16,15,2,13,18,17,5,8,24,25)
D.(9,16,4,25,2,15,13,18,5,17,8,24)
【解析】直接选择排序的方法是:首先在所有记录中选出排序码最小的记录,与第一个记录交换,然后在其余的记录中再选出排序码最小的记录与第二个记录交换,以此类推,直到所有记录排好序。题中序列的最小关键码是2,与第一个记录(关键码是16)交换后,结果为A所示。
下面哪种是Kennedy第二类牙列缺损
A、18、17、16、12及23、26、27、28缺失
B、14、13、12、11及21、22、23、24缺失
C、18、17、16及21、22、26缺失
D、16、14缺失
E、15、16及22、23、24、25缺失
计算:
(1)(-8)-(-1) (2)45+(-30)
(3)-1.5-(-11.5) (4)-1/4-(-1/2)
(5)15-[1-(-20-4)] (6)-40-28-(-19)+(-24)
(7)22.54+(-4.4)+(-12.54)+4.4
(8) (2/3-1/2)-(1/3-5/6)
(9)2.4-(-3/5)+(-3.1)+4/5 (10)(-6/13)+(-7/13)-(-2)
(11)3/4-(-11/6)+(-7/3)
(12)11+(-22)-3×(-11)
(13)(-0.1)÷1/2×(-100)
(14)(-3/4)×(-2/3 - 1/3) ×0
(15)(-2)3-32
(16)23÷[(-2)3-(-4)]
(17)(3/4-7/8)÷(-7/8)
(18)(-60)×(3/4+5/6)
(1)(-8)-(-1)=-7
(2)45+(-30)=15
(3)-1.5-(-11.5)=10
(4)-1/4-(-1/2)=1/4
(5)15-[1-(-20-4)]=-10 (6)-40-28-(-19)+(-24)=-73
(7)22.54+(-4.4)+(-12.54)+4.4=10
(8) (2/3-1/2)-(1/3-5/6)=-1
(9)2.4-(-3/5)+(-3.1)+4/5=0.7 (10)(-6/13)+(-7/13)-(-2)=1
(11)3/4-(-11/6)+(-7/3)=1/4
(12)11+(-22)-3×(-11)=22
(13)(-0.1) ÷1/2×(-100)=20
(14)(-3/4) ×(-2/3 - 1/3) ×0=0
(15)(-2)3-32=-17
(16)23÷[(-2)3-(-4)]=-23/4
(17)(3/4-7/8) ÷(-7/8)=1/7
(18)(-60) ×(3/4+5/6)=-95
设有关键码序列(16,9,4,25,15,2,13,18,17,5,8,24),要按关键码值递增的次序排序,采用直接选择排序法,一趟扫描后的结果为
A.(15,2,4,18,16,5,8,24,17,9,13,25)
B.(2,9,4,25,15,16,13,18,17,5,8,24)
C.(9,4,16,15,2,13,18,17,5,8,24,25)
D.(9,16,4,25,2,15,13,18,5,17,8,24)
解析:直接选择排序第一趟从几个关键码值中选出最小关键码,需进行n-1次比较。
1.publicclasstest{
2.publicstaticstringoutput=”
3.
4.publicstaticvoidfoo(inti){
5.try{
6.if(i==1){
7.thrownewException();
8.}
9.output+=1”;
10.}
11.catch(Exceptione){
12.output+=2”;
13.return;
14.}
15.finally(
16.output+=3”;
17.)
18.output+=4”;
19.}
20.
21.publicstaticvoidmain(stringargs[])(
22.foo(0);
23.foo(1);
24.
25.)
26.}
Whatisthevalueofthevariableoutputatline24?()
345678910111213141516171820212223242526
对关键码序列为(16,9,4,25,15,2,13,18,17,5,8,24)进行递增的次序排序,若采用直接选择排序法,一趟扫描后的结果为( )。
A.(15,2,4,18,16,5,8,24,17,9,13,25)
B.(9,4,16,15,2,13,18,17,5,8,24,25)
C.(2,9,4,25,15,16,13,18,17,5,8,24)
D.(9,16,4,25,2,15,13,18,5,17,8,24)
解析:首先在所有的记录中选出键值最小的记录,把它与第一个记录交换:然后在其余的记录中再选出键值最小的记录与第二个换;依此类推,直至所有记录排序完成。在第1趟中,通过n-1次键值比较选出所需记录。
设有关键码序列(16,9,4,25,15,2,13,18,17,5,8,24),要按关键码值递增的次序排序,采用初始增量为4的希尔排序法,一趟扫描后的结果为( )。
A.(15,2,4,18,16,5,8,24,17,9,13,25)
B.(2,9,4,25,15,16,13,18,17,5,8,14)
C.(9,4,16,15,2,13,18,17,5,8,24,15)
D.(9,16,4,25,2,15,13,18,5,17,8,24)
设有关键码序列(16,9,4,25,14,1,13,18,17,5,8,24),要按关键码值递增的次序排序,采用直接选择排序法,一趟扫描后的结果为(23)。
A.(14,1,4,18,16,5,8,24,17,9,13,25)
B.(1,9,4,25,14,16,13,18,17,5,8,24)
C.(9,4,16,14,1,13,18,17,5,8,24,25)
D.(9,16,4,25,1,14,13,18,5,17,8,24)
解析:本题考查直接选择排序的方法。直接选择排序的过程是:首先在所有记录中选出排序码最小的记录,把它与第1个记录交换,然后在其余的记录内选出排序码最小的记录,与第2个记录交换……依此类推,直到所有记录排完为止。题目中给出的关键码序列中最小的是1,那么根据直接选择排序的规则,我们应该把它与第1个记录交换,那么在一趟扫描后的结果为(1,9,4,25,14,16,13,18,17,5,8,24)。
设有关键码序列(16,9,4,25,15,2,13,18,17,5,8,24),要按关键码值递增的次序排序,采用起泡排序法,一趟扫描后的结果为________。
A.(15,2,4, 18, 16, 5,8,24,17,9,13,25)
B.(2, 9, 4, 25, 15, 16, 13, 18, 17, 5, 8, 24)
C.(9, 4, 16, 15, 2, 13, 18, 17, 5, 8, 24, 25)
D.(9, 16, 4, 25, 2, 15, 13, 18, 5, 17, 8, 24)
解析:将排序的记录顺次两两比较,若为逆序则进行交换,一趟起泡排序的效果是将关键码值最大的记录交换到了最后位置。
A. 9, 12, 15, ( ), 22, 25
B. 2, 2, 4, 6, 10, ( ), 26
C. 2, 12, 3, 14, 5’ 15, 7, 16, 11,( )
D. 1, ( ), 81, 256, 625
B.2,2,4,6,10
2 + 2 = 4,2 + 4 = 6,4 + 6 = 10,这是一个移动和数列,6 +10 = 16。
C. 2,12,3,14,5,15,7,16,11,()
这是一个长数列,隔项分组为
2,3,5,7,11,这是一个质数数列。
12,14,15,16是一个合数数列。
12 = 3X4,14 = 2X7,15 = 3X5,16 = 2X8,18 = 3X6。
因此18是这个数列的数字。
D. 81 = 34
256 = 44
625 = 54
D项括号中应该是24 = 16。
相关考题:
- 移送案件案卷
- 单选题ABC Corp. is implementing 11i Oracle Applications. The company has two local administrators in separate locations. They need to ensure that only a relevant set of users is visible to each of these local administrators. Which action will meet the requirement?()Acreate a separate role for each local administratorBspecify user administration privileges in Oracle User ManagementCuse Data Security to provide relevant access to each local administratorDuse Function Security to provide relevant access to each local administrator
- 发现外国人、外国船舶渔业违法案件时,应迅速向()报告,同时报海区局渔政渔港监督处,报告的内容包括船舶的()、国籍和()。
- 保护零线是指中性点接地时,由中性点或中性线引出,并作为电源的导线,工作时仅提供漏电电流通路。
- TN-S表示工作零线与保护零线前一部分合一,后一部分分开设置的接零保护系统。
- 多选题Identify three correct statements regarding Oracle E-Business Suite.() (Choose three.)AIt can run entirely on the Internet.BA minimum of two modules needs to be implemented for an organization.CIt is engineered to work as an integrated system on a single IT infrastructure.DIt supports multi-directional flows of business information within an organization.
- 2004年,某市某电子公司在互联网上张贴销售电捕鱼机广告。接到举报后,有关部门高度重视,市渔业行政执法支队通过暗访,发现这家公司不仅非法制造电捕鱼机,且大量销往四川、浙江、辽宁等式地,市渔政执法支队对该公司进行了突击检查,查获了一批电鱼机销售广告单和邮寄电鱼机的回单以及两台电鱼机。该公司违反了哪些法律规定?
- 防护设施与≤10kV外电线路之间的安全距离不应小于()m。A、1.5B、1.6C、1.7D、1.8
- 海豚科所有种都按照国家保护动物管理。
- 单选题Paul wants to log in to 11i Oracle Applications. Identify the first server to which his requestwould go.()AWeb serverBReports serverCAdministration serverDConcurrent Processing server