登录
首页 » 算法 » knapsak problem

knapsak problem

于 2022-10-30 发布 文件大小:2.57 kB
0 160
下载积分: 2 下载次数: 1

代码说明:

一个旅游者想在周末和他的朋友好好旅行。他们要去山上看大自然的奇观,所以他需要好好收拾行装。他有一个很好的背包用来装东西,但他知道,他最多只能装4公斤,而且要用一整天。他列了一张单子,上面写着他想带什么去旅行,但所有东西的总重量太大了。然后,他决定在初始列表中添加列,详细说明它们的权重,并添加一个数字值,表示该项对旅行的重要性。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 各种排序 附带源码 不过是以记事本的格式的 要自己建
    各种排序算法 附带源码 不过是以记事本的格式的 要自己建- Each kind of sort algorithm supplementary source code only is wants own by the memorandum form to construct
    2022-08-20 02:06:44下载
    积分:1
  • 链表的基本操作
    #include #include #define LEN sizeof(struct student) /*----------------数据定义----------------------*/ //定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针 struct student {     long num;                //学号     char name[128];            //姓名     struct student *next;    //结构体指针 }; typedef struct student * stuNode; int n=0;                    //全局变量,记录链表的长度   /*---------------函数声明---------------------*/   stuNode Create();            //创建一个新的链表       &nbs
    2022-03-11 02:44:17下载
    积分:1
  • 正态分布 normal VBA 代码
    应用背景用于计算正态分布的累积分布函数和逆函数,可转化为其他语言。用于可靠性分析和数理统计关键技术正态分布是应用统计中最为广泛使用的一个分布,此算法可给数据分析相关人员开发工具时参考。
    2022-01-31 07:07:11下载
    积分:1
  • 考虑未来竞争的空间交互选址问题求解
    考虑未来竞争的空间交互选址问题求解-consider the future competitiveness of the space problem solving interactive site
    2022-01-25 23:50:58下载
    积分:1
  • Mr. foolish to write him five friends, he wrote five letters, but when his frien...
    糊涂先生给他的五个朋友写信,他写了五封信,但是当他的朋友收到信后,都告诉他:“你的信寄错了”。那么请你计算一下:出现这种情况的概率有多少?(假设糊涂先生是随机地往信封里装信的),你能不能把所有的情况都列出来呢-Mr. foolish to write him five friends, he wrote five letters, but when his friend received a letter, told him:
    2022-01-25 16:38:13下载
    积分:1
  • Steepest descent method is based on the negative gradient direction as a decline...
    最速下降法是以负梯度方向作为下降方向的极小化算法,本程序用该方法求解n元正定二次函数的极小值-Steepest descent method is based on the negative gradient direction as a decline in the direction of the minimization algorithm, this procedure using this method for solving n-positive definite quadratic function of the minimum
    2022-03-12 23:23:09下载
    积分:1
  • ROMBERG
    以我的近似 = INTEGRAL((F(X) DX)) 从 A 到 B: 输入: 终结点 A、 B ;整数 N。 输出: 阵列 R.(R(2,N) 是对我的近似)。 R 是由行 ; 计算只有 2 的行保存在存储中
    2022-04-24 00:26:24下载
    积分:1
  • c语言实例程序代码
    本程序均来自《c语言编程实例》,所上传的代码已得到调试成功,若有需要请留言。所有实例均为C语言初学者所经常遇到。
    2022-02-02 16:34:36下载
    积分:1
  • SPH method used to prepare the shock tube procedures, the development of the lan...
    用SPH方法编写的激波管程序,开发语言C-SPH method used to prepare the shock tube procedures, the development of the language C
    2023-07-18 05:15:03下载
    积分:1
  • 编译与设计代码
    LexAndYaccTutorial 使用源代码及其详解,编译通过
    2022-03-14 19:11:16下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载