登录
首页 » c++ » 0-1背包问题

0-1背包问题

于 2023-02-02 发布 文件大小:160.46 kB
0 99
下载积分: 2 下载次数: 1

代码说明:

问题描述为:给定一组物品,每种物品都有自己的重量和价格,在限定的总重量内,我们如何选择,才能使得物品的总价格最高。

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

发表评论

0 个回复

  • POJ1635.tar
    POJ 1635,树的同构,哈希方法实现(POJ 1635, tree isomorphism, hash method)
    2012-11-07 19:30:26下载
    积分:1
  • tcp 半开连接扫描
    tcp半开连接扫描,扫描速度快
    2013-05-17下载
    积分:1
  • tcpClient
    说明:  本程序用QT编写,可视化界面,简洁明了,可以实现客户端与主机的文本发送和接收。(It can realize text sending and receiving between client and host.)
    2020-06-21 07:40:01下载
    积分:1
  • 1
    说明:  遗传算法,编写遗传算法程序,求解10城市的旅行商问题。(Genetic algorithm, genetic algorithm coded, 10-city traveling salesman problem to solve.)
    2011-05-16 17:49:30下载
    积分:1
  • 212
    基于快速傅里叶变换的MATLAB实现,内附有源程序(MATLAB based on fast Fourier transform implementation, enclosing a source)
    2011-05-22 14:06:36下载
    积分:1
  • DDA2Line
    这是放大10倍后的用数值微分法生成直线的程序(This is the enlarged 10 times the numerical differential method to create line procedures)
    2005-06-17 10:13:48下载
    积分:1
  • DNS_Redirect
    驱动级域名劫持 就是访问A.com转到b.com,当然如果改成访问A就丢包,那就变成拦截指定网站了。首先用抓包工具发现,访问某网站时,(如果本地没有该网站的DNS缓存)首先会发DNS查询包(UDP),然后会与该网站建立连接,然后,发http请求包。 观察包内容,需要把发出的包的目标改成我们的目标,然后把响应的包中我们改过的东西改回来,就是欺上瞒下。代码不多,重点是演示了如何获取TCP与UDP的接收到包的内容。仅适用于XP: bin会将www.baidu.com劫持到ip138.com(Drive level domain hijacking is to visit A.com to b.com, of course, if A is dropping into access, it becomes blocked designated site. First discovered by capturing tool, visit a website, (if there is no local DNS cache of the site) will first send a DNS query packets (UDP), then establish a connection with the site, and then send http request packet. Observe the contents of the package, we need to change the target packet sent our goal, then put the package in response to the things we turn to come back, that is, superiors and subordinates. Code much focus is to demonstrate how to get the contents of TCP and UDP packets received. Only applies to XP: bin will www.baidu.com hijacked to ip138.com)
    2014-02-13 13:30:04下载
    积分:1
  • STM32 PWM舵机控制
    用STM32实现PWM控制舵机任意角度(0-180度)转动。(Using STM32 to achieve PWM control steering gear at any angle (0-180 degrees) rotation.)
    2017-08-10 17:42:23下载
    积分:1
  • ZStack-CC2530-多点控制例程
    一个简单的温度传感器、io开关量传感器多端点监控例程,单播,广播。(A simple temperature sensor, IO switch sensor multi terminal monitoring routine, unicast, broadcast.)
    2020-12-04 10:59:26下载
    积分:1
  • 基于winpcap的抓包程序,用MFC实现
    说明:  一个基于winpcap的抓包程序,用MFC实现的课程设计,里面有具体的WORD介绍。(A package grabbing program based on WinPcap, the course design realized by MFC, which contains the specific word introduction.)
    2020-11-27 10:29:30下载
    积分:1
  • 696518资源总数
  • 105908会员总数
  • 30今日下载