Assignment3(1)(5)

2021-01-20 18:34

其他应用程序(yyy值2;

print the value of N)

打印N值)

procedure yyy (N)

程序yyy(N)

if (N < 5) then (print the value of N;

如果(N < 5)然后(打印N值;

apply the procedure zzz to the value 6)

应用程序打鼾声到值6)

else (apply the procedure zzz to the value 5)

其他(应用程序打鼾声价值5)

procedure zzz (N)

程序打鼾声(N)

if (N = 5) then (print the value 7)

如果(N = 5)然后(打印值7)

else (print the value 8)

其他(打印值8)

________________________

________________________

4. When using binary search algorithm to search for the letter X within the list: R, S, T, U, V, W, Z. How many entries will be checked before discovering that the letter is not in the list? ____________

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

5. When using sequential search algorithm to search for the letter X within the list: R, S, T, U, V, W, Z. How many entries will be checked before discovering that the letter is not in the list? ____________


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

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

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

马上注册会员

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