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

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

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

代码说明:

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

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

发表评论

0 个回复

  • CKNN 用于多示例学习
    CKNN  Using the Citation KNN algorithm[1] to get the labels for bags in testBags, where minmum Hausdorff distance is used to measure the distances between bags %     CKNN takes, %        PBags     - an Mx1 cell array where the jth instance of ith positive bag is stored in PBags{i}(j,:) %        NBags     - an Nx1 cell array where the jth instance of ith negative bag is stored in NBags{i}(j,:) %        testBags  - a Kx1 cell array where the jth instance of ith test bag is stored in testBags{i}(j,:) %         Refs     - the number of referecnes for each test bag %        Citers    - the number of citers for each test bag %      &n
    2022-03-01 19:43:00下载
    积分:1
  • 骑士漫游问题C语言示例.详见ReadMe.
    骑士漫游问题C语言示例.详见ReadMe.-Cleveland roaming C-language examples. See ReadMe.
    2023-02-01 10:35:04下载
    积分:1
  • matlab 多普勒雷达信号仿真处理
    应用背景应用背景为 脉冲多普勒雷达信号产生/处理基本过程,包括信号仿真(高斯白噪声),信号处理(MTI 处理,恒虚警)等。关键技术    s3.m文件是脉冲多普勒雷达信号处理的主要过程;中间主要涉及到的oppler radar 相位相参仿真,MTI处理等过程。     OS-CFAR.m文件是完成有序恒虚警处理过程的调用函数;     Pf.m文件完成了有序恒虚警中已知2L(总的数据长度),m(选取的检测单元),T(品质因数)得到Pf(虚静概率)的运算,论文中以此来选取品质因数。
    2022-03-15 17:51:28下载
    积分:1
  • use c code function in matlab
    use c code function in matlab
    2022-07-25 21:45:42下载
    积分:1
  • 关于最短路径的,c语言写的
    关于最短路径的算法,c语言写的-on the shortest path algorithms, written in C language
    2022-01-24 10:12:35下载
    积分:1
  • 用CORDIC实现的2参数反正切。结果的精度与CORDIC的迭代次数有关,迭代次数越多,精度越高。本例子中精确到小数点后4位。要提高迭代次数,还得把增加1Q...
    用CORDIC算法实现的2参数反正切。结果的精度与CORDIC的迭代次数有关,迭代次数越多,精度越高。本例子中精确到小数点后4位。要提高迭代次数,还得把增加1QN格式的位数,比如32位long,程序多处需要修改,有需要的话自己改吧。 -CORDIC algorithm with the two parameters arc tangent. And the accuracy of the CORDIC iteration number, the more the number of iteration, the higher the accuracy. This case accurate to four decimal places. To raise the number of iterations, it has to the increase in a 2:30 format of the median, such as 32 long, multiple procedures need to change, the need to reform it themselves.
    2022-03-16 10:55:29下载
    积分:1
  • 通过编制迷宫程序来熟练掌握A*。充分理解A*和启发函数的关系...
    通过编制迷宫程序来熟练掌握A*算法。充分理解A*算法和启发函数的关系-through the preparation of the maze procedure to skillfully master A* algorithm.* A full understanding of algorithms and heuristic function of
    2022-03-31 01:37:11下载
    积分:1
  • 膜计启发遗传
    膜计算是一种新的计算机科学领域的自然计算了在十年前gh.about保恩。P系统,因为它有时被称为,有一些固有的所包括的沟通能力和并行性的优势。膜计算使用一定的规则来操作。在这项工作中,简单介绍了amembrane启发更好绩效是遗传算法。工作探讨膜计算的并行性优势。通信
    2023-02-23 13:40:03下载
    积分:1
  • 在COMSOL Multiphysics模拟悬臂
    Cantilever simulations in COMSOL Multiphysics
    2022-10-31 19:50:03下载
    积分:1
  • MATLAB图像处理函数
    MATLAB图像处理函数 提供了多个对图像操作的函数指令以及说明,并带有简单例子。内容涵盖滤波, 傅立叶变换,等常用操作。
    2022-01-22 11:52:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载