代码搜索:背包问题
找到约 10,000 项符合「背包问题」的源代码
代码结果 10,000
www.eeworm.com/read/193089/8254069
cpp 背包.cpp
#include"stdio.h"
void knapsack(int v[],int w[],int c, int n,int m[][11])
{
int jmax=(w[n]-1)>c?c:(w[n]-1);
for(int j=0;j
www.eeworm.com/read/193089/8254077
opt 背包.opt
www.eeworm.com/read/193089/8254081
plg 背包.plg
Build Log
--------------------Configuration: 背包 - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\Owner\LOCA
www.eeworm.com/read/204628/15336435
dsp 背包.dsp
# Microsoft Developer Studio Project File - Name="背包" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Consol
www.eeworm.com/read/204628/15336436
ncb 背包.ncb
www.eeworm.com/read/204628/15336437
dsw 背包.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# 警告: 不能编辑或删除该工作区文件!
###############################################################################
Project: "背包"=".\背包.dsp" - Pa
www.eeworm.com/read/204628/15336438
cpp 背包.cpp
#include
#include
#define max 100
typedef struct Goods
{
int v;//value
int w;//weigth
float ave;//v/w
}Goods;
class package
{
public:
void Getin();//输入数据并排序
www.eeworm.com/read/204628/15336439
opt 背包.opt
www.eeworm.com/read/204628/15336440
plg 背包.plg
Build Log
--------------------Configuration: 背包 - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\JOY\LOCALS
www.eeworm.com/read/174185/9602919
txt 说明.txt
本程序利用遗传算法来求解<mark>背包问题</mark>.采用二进制字符串编码,1表示选择物体,0则不选择. <mark>背包问题</mark>描述:在M件物品取出若干件放在空间为W的背包里,每件物品的重量为W1,W·2……Wn,与之相对应的价值为P1,P2……Pn。求出获得最大价值的方案。注意:在本题中,所有的重量值均为整数。
...