Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Algorithm 物品'的背包问题;s重量取决于所选项目_Algorithm_Dynamic Programming_Knapsack Problem - Fatal编程技术网

Algorithm 物品'的背包问题;s重量取决于所选项目

Algorithm 物品'的背包问题;s重量取决于所选项目,algorithm,dynamic-programming,knapsack-problem,Algorithm,Dynamic Programming,Knapsack Problem,假设有学生[]年龄[],科目失败[]和科目状态[]。假设每个学生的质量指数为subjects失败[i]/subjectsTaken[i]。我需要选择学生,以便在averageQualityIndex您想要满足约束的情况下,他们的年龄总和达到最大值∑受试者失败[k]/∑被试状态[k]

假设有
学生[]
年龄[],
科目失败[]
科目状态[]
。假设每个学生的质量指数为
subjects失败[i]/subjectsTaken[i]
。我需要选择学生,以便在
averageQualityIndex您想要满足约束的情况下,他们的年龄总和达到最大值
∑受试者失败[k]/∑被试状态[k]