Assignment3(1)(6)

2021-01-20 18:34

5。当使用顺序搜索算法搜索的字母X在列表:R、S、T,U、V、W,z .有多少条目将被发现,这封信之前检查未在列表中呢?_______

6. Suppose the binary search algorithm was being used to search for the entry Tom in the list:

6。假设二进制搜索算法被用于搜索条目汤姆在列表中:

Nathan, Oliver, Pat, Quincy, Rodger, Stan, Tom

内森,奥利弗,帕特,昆西,罗杰,斯坦,汤姆

A. What would be the first entry in the list to be considered? _____________

a .这将成为第一个条目列表中被认为是吗?_________________

B. What would be the second entry in the list to be considered? _____________

b .什么是第二个条目列表中被认为是吗?_________________

7. At most, how many entries in a list of 5000 names will be interrogated when using the sequential search algorithm? ___________

7。最多,有多少条目列表的5000个名字将审讯当使用顺序搜索算法?___________

8. Which of the sequential or binary search algorithms would find the name Roger in the following list more quickly?

8。哪个顺序或二进制搜索算法会发现这个名字罗杰在下面的列表更快吗? John, Kelly, Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom

约翰·凯利,刘易斯,莫里斯,内森,奥利弗,帕特,昆西,罗杰,斯坦,汤姆

_______________

售予

ANSWER: Binary

答:二进制

9. What sequence of numbers would be printed if the following procedure were executed with N = 0?

9。什么数字序列将印刷如果下列程序被N = 0 ?

procedure xxx (N)


Assignment3(1)(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:海洋地质调查与研究元数据的标准化

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: