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)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Assignment3(1)(6)在线全文阅读。
相关推荐: