-
实验六
task1 contestant.hpp #pragma once #include<iomanip> #include<iostream> #include<string> struct Contestant{ long id; std::string name; std::string majo -
回溯法分析最小重量机器设计问题
一、 回溯法分析最小重量机器设计问题 先明确最小重量机器设计问题定义(回溯法分析的前提): 一台机器由 $n$ 个部件组成,每个部件都有 $m$ 个不同的供应商可选;第 $i$ 个部件从第 $j$ 个供应商采购,对应重量 $w_{ij}$、费用 $c_{ij}$;要求总费用不超过给定上限 $C$,求 -
实验6
前三个实验代码均已进行验证并运行 Task.4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sa -
实验6
实验六 实验任务一代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; -
高级语言程序设计课程第十次个人作业
班级:https://edu.cnblogs.com/campus/fzu/gjyycx 要求:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500428 姓名:杜翰墨 (1) (2) (3) (4) (5) (6) ( -
OOP6
任务一 task1.cpp #include <algorithm> #include <iostream> #include <stdexcept> #include <vector> #include "contestant.hpp" #include "utils.hpp" const std -
实验6 文件I/O与异常处理
实验任务1 代码 c++ 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string name -
实验六
任务四 #include<stdio.h> #define N 10 typedef struct{ char isbn[20]; char name[80]; char author[20]; double sales_price; int sales_count; }Book; void out -
算法第四章作业
1.贪心策略:先把所有区间按照右端点从小到大排序,之后按顺序逐个检查每个区间,如果当前区间没有被上一个选好的点覆盖,就在这个区间的右端点位置选一个新点。 证明:每一步选择未被覆盖区间的右端点是局部最优解,这个点能覆盖后续区间,最优解中存在覆盖当前区间的点,将这个点替换为选的右端点,也能覆盖所有区间而 -
实验6
1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 char author[80]; // -
算法第五章作业
1.1最小重量机器设计问题” 的解空间是每次满足部件总重量的部件与不同供应商的选择组合 1.2解空间树: (1)解空间树是一棵n层的m叉树 (2)树的层数对应部件的序号(第 1 层对应第 1 个部件,第 n 层对应第 n 个部件) (3)每一层的每个结点,有m个分支,对应该部件的m个供应商; (4) -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业的要求在:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 姓名:黄思哲 学号:102500433 1. 2. 3. 4. -
第五次作业
用回溯法分析最小重量机器设计问题 假设有 n 个部件,每个部件可以从 m 个供应商处购买。已知:第 i 个部件从第 j 个供应商购买的价格 c[i][j],第 i 个部件从第 j 个供应商购买的重量 w[i][j],要求选择每个部件的一个供应商,使得: 总价格不超过预算 d,总重量最小。 1.1 解 -
落山基唬人队-beta冲刺
这个作业属于哪个课程 https://edu.cnblogs.com/campus/fzu/202501SoftwareEngineering 这个作业要求在哪里 https://edu.cnblogs.com/campus/fzu/202501SoftwareEngineering/homewor -
团队作业6 - 复审与事后分析
From KFCoder✅️ 项目 内容 这个作业属于哪个课程 ->点我进入课程主页 这个作业要求在哪里 ->点我查看作业要求 Alpha阶段项目复审 ->点我查看项目复审结果 事后诸葛亮分析报告 ->点我查看事后诸葛亮分析报告 -
实验六
实验任务4 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char author[80]; // 作者 7 double sales_ -
实验六
实验1: 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #define N 3 5 typedef struct student{ 6 int id; 7 char name[20]; 8 char subject[2 -
团队作业6——复审与事后分析
复审与事后分析 复审:https://www.cnblogs.com/AprilXie/p/19384686 事后分析:https://www.cnblogs.com/AprilXie/p/19384724 -
实验六
任务1 点击查看代码 // P286例8.17 // 对教材示例代码作了微调,把输出学生信息设计成函数模块 // 打印不及格学生信息、打印所有学生信息均调用该模块实现 #include <stdio.h> #include <string.h> #define N 10 // 运行程序输入测试时,可 -
实验六
实验任务1 源代码如下: contestant.hpp 点击查看代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::strin