码迷,mamicode.com
首页 > 其他好文 > 详细

homework3

时间:2016-04-01 00:49:50      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

a:

技术分享

b: 将13行(primes[0]=2;)改为primes[0]=3; 15行(curPrime=2;)改为curPrime=3;

c:测试用例t(n=1)

d:节点覆盖:{1,2,3,4,5,6,7,8,9,10,11,12,13,14}

 边覆盖:{(1,2),(2,3),(2,11),(3,4),(4,5),(4,8),(5,6,)(5,7),(6,8),(8,9),(8,10),(9,2),(10,2),(11,12),(12,13),(12,14)(13,11)}

 主路径覆盖:

[2,3,4,8,10,2]
[3,4,8,10,2,3]
[4,8,10,2,3,4]
[8,10,2,3,4,8]
[10,2,3,4,8,10]

[2,3,4,8,9,2]
[3,4,8,9,2,3]
[4,8,9,2,3,4]
[8,9,2,3,4,8]
[9,2,3,4,8,9]

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

[2,3,4,5,6,8,10,2]
[3,4,5,6,8,10,2,3]
[4,5,6,8,10,2,3,4]
[5,6,8,10,2,3,4,5]
[6,8,10,2,3,4,5,6]
[8,10,2,3,4,5,6,8]
[10,2,3,4,5,6,8,10]

[2,3,4,5,6,8,9,2]
[3,4,5,6,8,9,2,3]
[4,5,6,8,9,2,3,4]
[5,6,8,9,2,3,4,5]
[6,8,9,2,3,4,5,6]
[8,9,2,3,4,5,6,8]
[9,2,3,4,5,6,8,9]

[11,12,13]
[12,13,11]
[13,11,12]

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

 

homework3

标签:

原文地址:http://www.cnblogs.com/3013218061shang/p/5343353.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!