全球旧事资料 分类
)i1L
4.p
extq
extq
extpriorpq
extpppriorq
5.
12、
1
6.ADCBFEG、ABCDEFFG
7.ABC、ABC
二、应用题
1(1)Hash表(4分)
地址0123456789101112
关键安1321
64572282412
探测次数17
1231311
(2)查找成功的平均查找长度:(1分)
(51122317)9209
查找不成功的平均查找长度:(1分)
(21987654321)13
2(1)、构造(3分)
19
14
22
10
1520
56
21
2、1014151920212256(2分)(3)、(3分)
第5页共7页
f3、5分,每行05
ij132433414252554、初始关键字:18第一趟:12第二趟:12第三趟:12第四趟:12O(
2)(1分)。5、7分(1)4分
v5673118812255318
18255318
18255318
18255318
18182553
A
(2)4分
B1
C
3
2
5D4
E
F
(4分)
6、13分
E
F
ABCD
第6页共7页
f(2)WPL013013022015301530321
1分
(3)A:010B:011C:110D:111E:00F;10(3分)
12、AB:(A、B)1分
AC:(A、D、C)2分
AD:(A、D)1分
AE:(A、D、E)2分
三,设计题(20分)
1、10分
StatusListDeleteSqlistLElemTypex
i
tijfori0iLle
gthi
ifLelemixbreak
ifiLle
gthretur
ERRORforjijLle
gthi1j
LelemjLelemj1Lle
gth(8分)
平均时间复杂度:(2分)
设元素个数记为
,则平均时间复杂度为:
E1
i
1

i1
2
2(10分)
voidpopStackSElemtypee
ifStopSbaseretur
ERRORStopestop2、(10分)
voidCou
tLeavesBi
TreeTi
t
ifTifTlchildTrchild
Cou
tLeavesTlchild
Cou
tLeavesTrchild

第7页共7页
fr
好听全球资料 返回顶部