登录
首页 » 算法 » C语言实现的0/1背包问题

C语言实现的0/1背包问题

于 2022-06-15 发布 文件大小:231.22 kB
0 98
下载积分: 2 下载次数: 1

代码说明:

主要用来解决0/1背包问题,实现的计算机语言是C语言,通过随机的产生物品的信息,通过此算法决定哪些物品放入背包中,哪些放弃。

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

发表评论


0 个回复

  • 这是一个猫吃老鼠问题的改进
    这是一个猫吃老鼠问题的改进算法。-This is a problem of cats eat rats improved algorithm.
    2022-02-09 18:09:13下载
    积分:1
  • C#数据计
    资源描述C#涉及的相关数据计算方法,内容很丰富,包括Complex、Integral、Interpolation、LEquations、Matrix、NLEquations等等算法,里面还有很多例子,很不错的基于C#的相关数学计算方法,个人觉得很有用。
    2022-03-13 05:18:21下载
    积分:1
  • 使用 c + + 静态霍夫曼 (包括说明进行操作)
    -第一,该程序将扫描压缩的文件并将输入的字符保存在文件中,(nhapDuLieu 函数),然后按常规字符出现的顺序进行排序。-接下来,用来加密数据,以创建哈夫曼树由 taoCayHuffman 方法 ()。数据将存储在输出文件中。后来当解码使用所存储的数据来生成用于减压的哈夫曼树。-使用 ListNode 是双重链接列表 HuffmanNode 存储。每个 HuffmanNode 7 组件,包括光标,左、 右。 + 符号是字符。 + 频率是相匹配的字符个数。 + 码字是对应的二进制数字的十进制表示形式。例如码字的 A 为 3,它对应于二进制代码 011。 + CodewordLen 存储位码字数量,以避免与 0011 混淆或 11 011 或 00011......+ RunLen 长度的字符的编码 () 操作相同原则: 例如,在原始输入文件中包含的字符串 AAAB,AAA 和码字存储在 110," 包 " 将节省码字它作为 4 个字节 (32 位),万人......为 000110 (32 位)。然后 B 是在存储和处理,B 的码字是 01-> 保存到 " 包 " 通过添加左侧 " 包 " 以前-> 000 个。000 110 01 (也就是 32 位) — — 的运作原则解码 (): 解码 () 操作简单编码 ()。首次创建数组数据 [] 用方法 nhapDoThuongXuyen (),然后由 taoCayHuffman () 构造的哈夫曼树最后在函数中解码的树和原始字符串 () 扫描
    2022-10-30 11:20:02下载
    积分:1
  • Cantor Table : Problem description : put both the numerator and the denominator...
    Cantor 表问题: 问题描述: 把分子和分母均小于108 的分数按下面的办法排成一个数表。 1/1 1/2 1/3 1/4 1/5 ... 2/1 2/2 2/3 2/4 2/5 ... 3/1 3/2 3/3 3/4 3/5 ... 4/1 4/2 4/3 4/4 4/5 ... 5/1 5/2 5/3 5/4 5/5 ... ... ... 我们以Z 方形方法给上表的每项编号。第一项是1/1,第二项是1/2, 然后是2/1,3/1,2/2,1/3,1/4,2/3,3/2,4/1,5/1,4/2,...... 要求:对于给定的输入的编号N(0
    2022-03-21 20:56:33下载
    积分:1
  • 通过输入矩阵的行数,列数,元素来建立稀疏矩阵的源程序
    通过输入矩阵的行数,列数,元素来建立稀疏矩阵的源程序-input matrix by the number of rows, columns, element to establish the source of sparse matrix
    2022-09-12 16:45:03下载
    积分:1
  • 此程序为C语言编写的图形操作
    此程序为C语言编写的图形操作算法-procedure for the C language graphics algorithm
    2022-02-14 04:21:11下载
    积分:1
  • Polynomial fit functions === === === === RegressionObject.cls contains a cl...
    Polynomial fit functions === === RegressionObject.cls contains a class that provides an easy way to add polynomial regression functionality to any application. If you just want linear regression or a very high degree, no matter: this class has good performance and scales seamlessly with the complexity of your problem.-Polynomial fit functions === === === === RegressionObject.cls contains a class that provides an easy way to add polynomial regression functionality to any application. If you just want linear regression or a very high degree, no matter: this class has good performance and scales seamlessly with the complexity of your problem.
    2022-11-25 05:50:02下载
    积分:1
  • 能实现任意两个超大整数的乘。经本人实验,任意大整数都能实现。...
    能实现任意两个超大整数的乘法。经本人实验,任意大整数都能实现。-achieve two super arbitrary integer multiplication. After I experiment arbitrarily large integers can be materialized.
    2022-02-26 23:37:00下载
    积分:1
  • ACM亚洲主题的比赛(在任务调度),和我的程序实现…
    acm亚洲区竞赛的一个题目(关于任务调度的)以及我的程序实现Asia Regional_Taipei Site Dec.10-13.1999Program EBroadcast Scheduling -acm Asia a topic of race (on the task scheduling), and I realize the procedures Asia Regional_Taipei Site GC.6/Dec.10- 13.1999Program EBroadcast Scheduling
    2023-08-13 13:45:02下载
    积分:1
  • 机器人RBF神经网络
    资源描述单关节机器人控制的RBF神经网络的控制跟踪程序。
    2022-06-28 00:14:22下载
    积分:1
  • 696518资源总数
  • 104891会员总数
  • 7今日下载