摘要:
Task description: Use the decision tree for classification based on Breast cancer dataset available at https://www.kaggle.com/uciml/breast-cancer-wisc 阅读全文
摘要:
三维数组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 三位数组按行优先存储在内存空间中的存储方式为: 首先将第一行第一列的页存满, 阅读全文
摘要:
涉及到图的邻接矩阵存储,图的深度优先搜索,图的连通分量数 该题输入输出要使用printf和scanf,cin和cout最后一个测试点会超时 include using namespace std; //邻接矩阵存储图 //深度优先搜索遍历图 //攻占掉一个点后,计算图的连通分量的个数 int v[1 阅读全文
摘要:
include using namespace std; typedef struct { int level;//节点所在层次 int flag;//0没有孩子,1有孩子 int father;//父节点 }Node; int main() { Node node[205]; int n, m;/ 阅读全文
摘要:
include include include include using namespace std; bool check(int a[],int n) {//判断是否为回文数 bool flag = true; if (n == 1 && a[0] == 0) { return true; } 阅读全文
摘要:
include include include include include using namespace std; int n, m, optnum, truenum, temp, maxcnt = 0; int opt[1010][110] = {0};//代表着每个学生对每个题目的选择 c 阅读全文
摘要:
include include include using namespace std; int a[1001][1001];//定义在main()的外面,这样任何函数都有可以调用,就不需要再往其他函数中传参了 //用来遍历一个点附近八个点 int dir[8][2] = { 1,0, 1,0, 0 阅读全文