代码搜索:背包问题
找到约 10,000 项符合「背包问题」的源代码
代码结果 10,000
www.eeworm.com/read/335640/12510229
doc 遗传算法求解01背包问题.doc
www.eeworm.com/read/166496/10017432
doc (0-1)背包问题测试用例.doc
www.eeworm.com/read/166496/10017436
cpp (0-1)背包问题--测试失败版本.cpp
// 这是使用应用程序向导生成的 VC++
// 应用程序项目的主项目文件。
#include "stdafx.h"
#using
#include
using namespace std;
struct Product
{
string product_name;
float value;
www.eeworm.com/read/461486/7226803
cpp 动态规划算法解背包问题.cpp
#include
const int N = 100;
using namespace std;
int max(int a,int b)
{
return (a > b ? a : b);
}
int main()
{
int n; // 物品总数
int W; // 背包总重量
scanf("%d%d",&n,&W);
www.eeworm.com/read/487739/6508087
cache 0-1背包问题.csproj.generateresource.cache
www.eeworm.com/read/270094/11048853
cpp 三维0-1背包问题.cpp
#include
int min(int x, int y)
{
if(x >= y)
return y;
else
return x;
}
int max(int x, int y)
{
if(x >= y)
return x;
else
return y;
}
void Knapsack(int *v,
www.eeworm.com/read/234932/14091568
txt 回溯算法解0--1背包问题.txt
#include//可以用
typedef struct
{float w;
float p;
float v;
}OBJECT;
void merge(OBJECT ob[],int p,int q,int r,int m)
{int *bp=new int[m];
int i,j,k;
i=p;j=q+1;k=0;
while(i
www.eeworm.com/read/382701/9004850
doc 01背包.doc
www.eeworm.com/read/465601/7050105
doc 背包思路.doc
www.eeworm.com/read/443666/7629275
cpp 01背包.cpp
#include"iostream"
using namespace std;
#define C 22
#define N 5
//int s[N]={2,3,4,5};//存放物品的体积
//int v[N]={3,4,5,7};//存放物品的价值
int s[N+1];
int v[N+1];
int m[N+1][C+1];
int H[N+1][C+1];
int