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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 误差分析的方法有多种,这是一种先验估计误差的方法,较以往的“向前误差分析”在矩阵运算的舍入误差估计上有较好的结果,以而使矩阵的误差分析获得了突破性的进展,使不少...
    误差分析的方法有多种,这是一种先验估计误差的方法,较以往的“向前误差分析”在矩阵运算的舍入误差估计上有较好的结果,以而使矩阵的误差分析获得了突破性的进展,使不少用向前误差分析难于判定可靠性的数值方法获得新的进展。特别值得一提的是,在工程技术界,经常使用几种不同的计算方法,甚至使用实验方法进行比较,从而确定计算结果的可靠性,这也是一种有效而实用的方法。-error analysis by a number of means, which is a priori estimation error method, compared to the previous "Forward Error Analysis" in the matrix calculation error into the homes a better estimate on the results of a matrix so the error analysis of a breakthrough in the progress, many with forward error analysis can be difficult to determine on the numerical method to achieve new progress. Particularly worth mentioning is that in the engineering technology sector, often use several different methods of calculation, or even the use of experimental methods, in order to determine the reliability of results, which is also an effective and practical method.
    2022-04-27 04:17:28下载
    积分:1
  • 数据结构-算法-C语言-Demo
    #ifndef _BINARY_TREE_H_INCLUDED#define _BINARY_TREE_H_INCLUDED#include #include templatestruct Bintree_node {T element;Bintree_node* lchild;Bintree_node* rchild;explicit Bintree_node(const T& elem=T(), Bintree_node* lchd=0, Bintree_node* rchd=0): element(elem), lchild(lchd), rchild(rchd) {}};templateclass Binary_tree {public:typedef Bintree_node* PBtn;Binary_tree();virtual ~Binary_tree();void clear();int depth() const;int size() const;virtual PBtn find(const T& elem) const=0;virtual void insert(const T& elem)=0;virtual void erase(const T& elem)=0;virtual void print(std::ostream& output) const=0;void print_tree(std::ostream& output) const;protected:
    2022-01-29 04:39:50下载
    积分:1
  • Matlab下实现的CFD算法
    Matlab下实现的CFD算法-Matlab under the CFD algorithms
    2022-12-12 01:35:03下载
    积分:1
  • 科学与工程数值算法(可视化版本),清华大学…
    科学与工程数值算法(Visual C++版),清华大学出的,这是源代码,有需要的朋友可以看看呀!-science and engineering numerical algorithm (Visual C version), the Tsinghua University, which is the source code, we need friends can see!
    2022-09-23 12:10:03下载
    积分:1
  • Kmeans算法的VB代码和测试数据
    kmeans algorthms code vb and test data
    2022-03-25 17:35:53下载
    积分:1
  • 基于matlab的kalman滤波源程序,实现基本的卡尔曼滤波。
    基于matlab的kalman滤波源程序,实现基本的卡尔曼滤波。-The kalman filter matlab-based source to achieve the basic Kalman filtering.
    2022-01-25 22:40:42下载
    积分:1
  • Binary Search tree
    二元搜索樹 goodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgood 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-25 08:08:29下载
    积分:1
  • 用于计算G-P关联维;和一些相关参数。并能确定最佳的嵌入维数;不是很成熟;希望各位指正;...
    用于计算G-P关联维;和一些相关参数。并能确定最佳的嵌入维数;不是很成熟;希望各位指正;-G-P used to calculate the correlation dimension and a number of relevant parameters. And to determine the optimal embedding dimension not very mature hope that correction
    2022-03-25 07:55:18下载
    积分:1
  • Matrix operations class library, after debugging, completely available, the need...
    矩阵运算的类库,经调试,完全可用,需要的同志可以免费下载-Matrix operations class library, after debugging, completely available, the need for comrades can be downloaded for free
    2022-10-19 15:05:03下载
    积分:1
  • design an O (n2) time algorithm to identify by the number n of the longest seque...
    设计一个O(n*n)时间的算法,找出由n个数组成的序列的最长单调递增子序列--design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
    2022-03-01 13:31:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载