问题 F: Graph 时间限制: 1 Sec 内存限制: 128 MB 提交: 30 解决: 5 [提交][状态][论坛] 题目描写叙述 Your task is to judge whether a regular polygon can be drawn only by straightedg ...
分类:
其他好文 时间:
2016-04-04 10:20:04
阅读次数:
134
在之前初步介绍图的文章中,我们得知,图(graph)是表征事物之间关系的一种抽象化表示方法,而基于图的概念,我们将所有的无回路无向图拿出来,给它们一个新的名字——树。 关于树的概念性术语很多,这里我们先就简单的二叉树(一个根至多有两个子树)来进行分析。 这就是一些简单的二叉树,这里A、B、C等我们成 ...
分类:
其他好文 时间:
2016-04-02 17:33:10
阅读次数:
249
课程复习:通过这几节课的学习,我知道了什么是node,edge,edge pair;明白了什么是分支覆盖和边界值,初步能够能据不同情况分析边界值。 作业:1.P63 7 1)control flow graph 2)令MAXPRIMES=3,t2 = (n = 5)数组越界,而t1 = (n = 3 ...
分类:
其他好文 时间:
2016-03-31 17:00:55
阅读次数:
194
作业题目:教材49页第7题a到d,并基于Junit及Eclemma实现一个主路径覆盖的测试一、Use the following method printPrimes() for questions a-f below (a) Draw the control flow graph for the ...
分类:
Web程序 时间:
2016-03-30 22:10:34
阅读次数:
624
题目的源代码如下: 问题: 1、以上源代码的控制流图如下: 2、当把下面判断是不是素数的代码中的for的条件改成for(int i = 0; i <= 0 ; i++)是代码如下 for(int i = 0; i <= 0; i++){ if(isDivisible(primes[i],curPri ...
分类:
其他好文 时间:
2016-03-30 19:27:04
阅读次数:
190
程序代码如下: 题目要求如下: (a)Draw the control flow graph (b)t1=(n=3),t2=(n=5) Design a simple fault that t2 would be more likely to discover than t1 would. (c)F ...
分类:
其他好文 时间:
2016-03-30 06:57:50
阅读次数:
168
题目源程序 1 public static void printPrimes (int n) 2 { 3 int curPrime; // Value currently considered for primeness 4 int numPrimes; // Number of primes fo ...
分类:
其他好文 时间:
2016-03-30 06:52:14
阅读次数:
202
Use the following method printPrimes() for questions a-d below. 1. /** ***************************************************** 2. * Finds and prints n p ...
分类:
其他好文 时间:
2016-03-29 23:49:01
阅读次数:
260
笨人用笨办法,要求熟记,默写,必须做到。 第一部分、计算机算法常用术语中英对照Data Structures 基本数据结构 Dictionaries 字典 Priority Queues 堆 Graph Data Structures 图 Set Data Structures 集合 Kd-Tree ...
分类:
其他好文 时间:
2016-03-29 14:27:37
阅读次数:
343