答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
对于顺序存储的有序表(5,12,20,26,37,42,46,50,64),若采用折半查找,则查找元素26的比较次数为( )。
①
2
②
3
③
4
④
5
参考答案:
复制
纠错
相关题目
【单选题】
对于长度为18的顺序存储的有序表,若采用折半查找,则查找第15个元素的比较次数为( )。
①
3
②
4
③
5
④
6
查看完整题目与答案
【单选题】
对于长度为9的顺序存储的有序表,若采用折半查找,在等概率情况下的平均查找长度为( )的9分之一。
①
20
②
18
③
25
④
22
查看完整题目与答案
【单选题】
有一个长度为11的有序表,按折半查找对该表进行查找,在等概率情况下查找成功的平均比较次数为( )。
①
A.29/11
②
B.33/11
③
C.26/11
④
D.30/11
查看完整题目与答案
【单选题】
对具有n个元素的有序表采用折半查找,则算法的时间复杂度为( )。
①
O(n)
②
O(n的平方)
③
O(1)
④
O(log2(n))
查看完整题目与答案
【单选题】
有一个长度为8的有序表,按折半查找对该表进行查找,在等概率情况下查找成功的平均比较次数为( )。
①
A.22/8
②
B.20/8
③
C.23/8
④
D.21/8
查看完整题目与答案
【单选题】
有一个长度为7的有序表,按折半查找对该表进行查找,在等概率情况下查找成功的平均比较次数为( )。
①
A.17/7
②
B.18/7
③
C.21/7
④
D.20/7
查看完整题目与答案
【单选题】
在有序表{10,14,34,43,47,64,75,80,90}中,用折半查找法查找值80时,经( )次比较后查找成功。
①
A.4
②
B.2
③
C.3
④
D.5
查看完整题目与答案
【判断题】
有一个长度为10的有序表,按折半查找对该表进行查找,在等概率情况下查找成功的平均比较次数为29/10。
①
正确
②
错误
查看完整题目与答案
【判断题】
线性表只要以关键字有序的顺序方式存储就能进行折半查找。
①
正确
②
错误
查看完整题目与答案
【单选题】
采用顺序查找方法查找长度为n的线性表时,每个元素的平均查找长度为( )。
①
A.n
②
B.n/2
③
C.(n+1)/2
④
D.(n-1)/2
查看完整题目与答案
随机题目
【单选题】
The weather was terrible outside. She entered the office, her nose ______ with cold.
①
red
②
to be red
③
being red
④
has been red
查看完整题目与答案
【单选题】
Body language contains a lot of information. So, ______ your body language
①
be likely to
②
be aware of
③
be friendly with
④
be patient with
查看完整题目与答案
【单选题】
A balanced diet is ______ as a quick and effective way to keep in good health.
①
consider
②
considers
③
considered
④
considering
查看完整题目与答案
【单选题】
We should not eat or eat less______ food.
①
junk
②
garbage
③
trash
④
rubbish
查看完整题目与答案
【单选题】
My brother can take his car apart and put it back together again. I certainly wish he______ me how.
①
would teach
②
has taught
③
will teach
④
teaches
查看完整题目与答案
【单选题】
She’s very ______ and would like to see each thing in its place.
①
gathered
②
grouped
③
modernized
④
organized
查看完整题目与答案
【单选题】
Keeping eye contact ______ respect for the interviewer and your audience.
①
says
②
pays
③
throws
④
shows
查看完整题目与答案
【单选题】
Do plan to arrive ______or a few minutes early for a job interview.
①
no time
②
on time
③
all the time
④
at a time
查看完整题目与答案
【单选题】
But for the immediate help from his neibour, the old man______of hunger fifteen years ago.
①
must die
②
must have died
③
would die
④
would have died
查看完整题目与答案
【单选题】
Can I send a package with some fragile______?
①
items
②
itinerary
③
terms
④
teams
查看完整题目与答案