摘要: Task description: Use the decision tree for classification based on Breast cancer dataset available at https://www.kaggle.com/uciml/breast-cancer-wisc 阅读全文
posted @ 2019-10-05 22:16 Chance-Zou 阅读(3065) 评论(0) 推荐(0) 编辑
摘要: 三维数组A[n][m][k],n,m,k三个分量分别称之为行,列,页。 假设A[0][0][0]的存储地址为a,其中每个元素所占内存空间为b,那么计算A[x][y][z]的存储地址的公式为a+(x m k+y k+z) b 三位数组按行优先存储在内存空间中的存储方式为: 首先将第一行第一列的页存满, 阅读全文
posted @ 2019-07-27 11:09 Chance-Zou 阅读(9978) 评论(0) 推荐(1) 编辑
摘要: 2019年复旦计算机专硕考研总结: 这一年来自己在考研的道路上,走了很多弯路,也吸取了很多教训,总结了很多学习方法。记录自己生活的同时,也以此分享自己的一点点经验,希望能对后来者有所帮助。 先介绍下本人的情况:本人本科武汉某985大学软件工程专业,初试总成绩:407,数学二:128,专业课(960) 阅读全文
posted @ 2019-03-22 10:59 Chance-Zou 阅读(6982) 评论(0) 推荐(2) 编辑
摘要: 涉及到图的邻接矩阵存储,图的深度优先搜索,图的连通分量数 该题输入输出要使用printf和scanf,cin和cout最后一个测试点会超时 include using namespace std; //邻接矩阵存储图 //深度优先搜索遍历图 //攻占掉一个点后,计算图的连通分量的个数 int v[1 阅读全文
posted @ 2019-03-06 15:00 Chance-Zou 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 解题思路: 定义三个数组double a[1001],b[1001],c[2001]分别用来表示多项式A,多项式B,和它们的成绩,其中下标表示指数,元素值代表系数 注意点:数组c的长度要大于2001,a,b,c都要初始化为零 阅读全文
posted @ 2019-03-05 18:51 Chance-Zou 阅读(463) 评论(0) 推荐(0) 编辑
摘要: include using namespace std; typedef struct { int level;//节点所在层次 int flag;//0没有孩子,1有孩子 int father;//父节点 }Node; int main() { Node node[205]; int n, m;/ 阅读全文
posted @ 2019-03-05 15:08 Chance-Zou 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 解题思路: 首先我想到的是用一个足够大的动态二维数组来记录不相容的物品,行号代表该物品的编号,该列中存储与该物品不相容的其它物品 然后定义一个足够大的数组dir[100000],数组下标表示该物品的编号,元素值表示与该物品不相容的物品是否存在(数组初始值为零) 对集装箱的物品进行输入时每输入一个物品 阅读全文
posted @ 2019-03-04 17:51 Chance-Zou 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: include include include include using namespace std; bool check(int a[],int n) {//判断是否为回文数 bool flag = true; if (n == 1 && a[0] == 0) { return true; } 阅读全文
posted @ 2019-03-03 23:56 Chance-Zou 阅读(240) 评论(0) 推荐(0) 编辑
摘要: include include include include include using namespace std; int n, m, optnum, truenum, temp, maxcnt = 0; int opt[1010][110] = {0};//代表着每个学生对每个题目的选择 c 阅读全文
posted @ 2019-03-03 11:19 Chance-Zou 阅读(784) 评论(0) 推荐(0) 编辑
摘要: include include include using namespace std; int a[1001][1001];//定义在main()的外面,这样任何函数都有可以调用,就不需要再往其他函数中传参了 //用来遍历一个点附近八个点 int dir[8][2] = { 1,0, 1,0, 0 阅读全文
posted @ 2019-03-02 20:44 Chance-Zou 阅读(672) 评论(0) 推荐(0) 编辑