HW3书上习题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HW3书上习题相关的知识,希望对你有一定的参考价值。

测试:

技术分享

 

技术分享

书上习题:

a)

技术分享

 

b)比如循环测试错误:while(numPrimes < 3)

c)n=1

d)

节点覆盖:

{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14}

边覆盖:

{(0,1), (1,2), (1,10), (2,3), (3,4), (3,7), (4,5), (4,6), (6,3),

(5,7), (7,8), (7,9), (8,9), (9,1), (10,11), (11,12), (11,14), (12,13), (13,11)}

主路径覆盖:

{

[0,1,2,3,4,5,7,8,9]

[0,1,2,3,4,5,7,9]

[0,1,2,3,4,6]

[0,1,2,3,7,8,9]

[0,1,2,3,7,9]

[0,1,10,11,12,13]

[0,1,10,11,14]

[2,3,4,5,7,8,9,1,10,11,14]

[2,3,4,5,7,8,9,1,10,11,12,13]

[2,3,4,5,7,9,1,10,11,14]

[2,3,4,5,7,9,1,10,11,12,13]

[2,3,7,8,9,1,10,11,14]

[2,3,7,8,9,1,10,11,12,13]

[2,3,7,9,1,10,11,14]

[2,3,7,9,1,10,11,14]

[4,6,3,7,8,9,1,10,11,14]

[4,6,3,7,8,9,1,10,11,12,13]

[4,6,3,7,9,1,10,11,14]

[4,6,3,7,9,1,10,11,12,13]

[12,13,11,14]

[1,2,3,4,5,7,8,9,1]

[1,2,3,4,5,7,9,1]

[1,2,3,7,8,9,1]

[1,2,3,7,1]

[3,4,6,3]

[11,12,13,11]

}

 

以上是关于HW3书上习题的主要内容,如果未能解决你的问题,请参考以下文章

2017.7.17-2017.7.23

计组复习题集_第三章

《Python自然语言处理》第二章 习题解答 练习6

apue第四章习题的一些拙见(不定时更新)

《ACM-ICPC程序设计系列 数论及其应用》课后习题个人答案记录

c语言的科学与艺术 学习笔记--第5章习题 打印1900年以前的日历