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

课后题7

时间:2016-03-31 23:16:21      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
原题如下
技术分享技术分享
技术分享
 
 
answer:
a:
技术分享
标号为代码行
 
b:数组越界
 
c:n=0
 
d: 

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

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

  主路径覆盖: {(1,2,3,4,5,6),

         (1,2,3,4,5,7,8,9),

         (1,2,10,11),

         (1,2,10,12),

         (2,3,4,5,7,8,9,2),

         (2,3,4,5,7,8,2)

         (2,3,4,8,9,2),

         (2,3,4,8,2)

         (3,4,5,7,8,9,2,10,11,12),

         (3,4,5,7,8,9,2,10,11,13),

         (3,4,5,7,8,2,10,11,12),

         (3,4,5,7,8,2,10,11,13),

         (4,5,6,4),

         (4,5,7,8,9,2,3,4),

         (4,5,7,8,2,3,4),

         (4,8,2,3,4),

         (4,8,9,2,3,4),

         (5,6,4,5),

         (5,6,4,8,9,2,10,11,12),

         (5,6,4,8,9,2,10,11,13),

         (5,6,4,8,2,10,11,12),

         (5,6,4,8,2,10,11,13),

         (6,4,5,6),

         (6,4,5,7,8,9,2,10,11,12),

         (6,4,5,7,8,9,2,10,11,13),

         (6,4,5,7,8,2,10,11,12),

         (6,4,5,7,8,2,10,11,13),

         (6,4,5,7,8,9,2,3),

         (6,4,8,9,2,3),

         (7,8,9,2,3,4,5,7),

         (7,8,2,3,4,5,7),

         (8,9,2,3,4,5,7,8),

         (8,2,3,4,5,7,8),

         (8,9,2,3,4,8),

         (8,2,3,4,8),

         (9,2,3,4,5,7,8,9),

         (9,2,3,4,8,9),

         (11,12,11),

         (12,11,12),

         (12,11,13)

}

 

 

技术分享

课后题7

标签:

原文地址:http://www.cnblogs.com/hz147/p/5343178.html

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