登录
首页 » 终端 » 一个0

一个0

于 2022-05-28 发布 文件大小:8.40 kB
0 56
下载积分: 2 下载次数: 1

代码说明:

一个0-1背包问题的C++实现,背包的容量为t,各物品的重量分别为w1,w2。。。wn,找一个能装下最大重量的物品组合,用递归形式的贪心法实现-a 0-1 knapsack problem of C achieved, the capacity for backpack t, the weight of the items were w1, w2. . . Wn, one can find the largest installed under the weight of goods portfolio, using recursive form greedy Method

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

发表评论

0 个回复

  • A small program using threads, you can definitely do it
    一个使用 线程的小程序,可以作到抛砖引玉吧-A small program using threads, you can definitely do it
    2022-08-19 04:22:29下载
    积分:1
  • 反射
    用于获取类型信息在运行时使用反射对象。授予的正在运行元数据的访问权限的类是程序的 System.Reflection 命名空间中。System.Reflection 命名空间包含允许您获取有关应用程序的信息,动态地添加到应用程序的类型、 值和对象的类。ReflectionReflection 的应用程序具有以下应用程序: 它允许查看属性信息在运行时。它允许检查各种类型的程序集,并实例化这些类。它允许后期绑定到方法和 propertiesIt 允许在运行时创建新的类型,然后执行一些任务,使用这些类型。查看 MetadataWe 有提及在前一章使用反射,您可以查看的属性信息。System.Reflection 类的检索对象,需要将其初始化为发现与类关联的属性。若要执行此操作,您定义目标类的 as:System.Reflection.MemberInfo 信息对象 = typeof(MyClass) ;下面的程序演示了这一点: 使用系统 ;[AttributeUsage(AttributeTargets.All)] 公共类 HelpAttribute: 用于 {公共只读字符串 Url ; 公共字符串主题 / 主题是一个命名的参数 {{返回主题 ;} 得到设置 {主题 = 值;}} 公共 HelpAttribute(string url) / / url 是一个定位的参数 {这。Url = url ;} 专用的字符串的主题 ;} {} [HelpAttribute (MyClass 类"信息")] 类 MyClass 命名空间 AttributeAppl {类程序 {静态 void 主要 (字符串 [] args) {System.Reflection.MemberInfo 信息 = typeof(MyClass) ; 对象 [] 属性 = info。GetCustomAttributes(true) ;为 (int 我 = 0 ; 我 < 属性。长度 ;i + +) {System.Console.WriteLine(attributes[i]) ;}Console.ReadKey() ;}}} 编译和运行,它将显示附加到 MyClass:HelpAttribute 示例本示例类的自定义属性的名称时,我们使用前面的章节中使用反射创建的 DeBug
    2022-09-18 10:30:09下载
    积分:1
  • this program will set icon in system tray and it will list the programs on top
    this program will set icon in system tray and it will list the programs on top
    2022-11-05 11:10:03下载
    积分:1
  • 核电健康管理系统使用 CPP 和文件的概念
    "工作人员管理系统"projectentitled 被专为小到中期-sizedbusiness/company 的需要跟踪在他们之下的工人。管理支付在本组织的成败的重要作用。员工管理软件便于雇主要跟踪的所有记录。衍允许您添加工作人员记录删除 modifyworker 记录工人清单工人细节和退出选项也可用于衍
    2022-01-31 09:44:51下载
    积分:1
  • 简单的用于获取网卡信息的源代码,有点乱IP+MAC
    简单的用于获取网卡信息的源代码,有点乱IP+MAC-Simple card information for access to the source code, somewhat arbitrary IP+ MAC
    2023-07-24 01:40:03下载
    积分:1
  • 用VC++编写的EZW编码与解码,其编码与解码的结果都用文件详细的表示,我自己写的,希望大家给点意见...
    用VC++编写的EZW编码与解码,其编码与解码的结果都用文件详细的表示,我自己写的,希望大家给点意见-VC EZW prepared by the encoding and decoding, encoding and decoding with the results of a detailed document that I wrote it myself, we hope to the point
    2023-01-25 15:40:06下载
    积分:1
  • 客户机/服务器系统比文件服务器系统能提供更高的性能,因为客户和服务器将应用的处理要求分开,同时又共同实现其处理要求,对客户程序的请求实现“分布式应用处理”...
    客户机/服务器系统比文件服务器系统能提供更高的性能,因为客户端和服务器端将应用的处理要求分开,同时又共同实现其处理要求,对客户端程序的请求实现“分布式应用处理”。服务器为多个客户端应用程序管理数据,而客户端程序发送、请求和分析从服务器接收的数据,这是一种“胖客户机 (Fat Client)”,“瘦服务器 (Thin Server)”的网络计算模式。服务器处理服务要求的过程实际是,先获取传送来的头信息,然后根据头信息新建文件,然后继续接受数据写入文件,当接受完数据后关闭文件。-client/server systems over file server systems can provide higher performance, because the client and server-side applications will be processed separately, but also to achieve their common processing requirements, the client"s request to achieve "distributed application processing." Server for a number of client applications data management, and client send request from the server and analysis of the data received, it is a "fat client (Fat Client)", "thin servers (Thin Server)," the network computing model. Server service requirements of the actual process, first to obtain the first delivery of information, according to new information first, and then continue to receive data into the document when they were closed
    2023-06-10 06:20:03下载
    积分:1
  • 是一个不错的tc函数集
    是一个不错的tc函数集-function set of tc
    2022-01-25 16:37:20下载
    积分:1
  • 在过程控制计算机的权利,计算机强制关闭的体育..
    对局域网内的计算机进行进程监控,可以强制关闭该计算机的进程。-right for the process control computer, the computer forced the closure of the process.
    2022-01-26 01:56:26下载
    积分:1
  • 旅行商问题的动态规划方法已加入票据。
    用动态规划法求解旅行商问题 已经加入注释 欢迎批评指正-dynamic programming method for the traveling salesman problem has joined Notes welcome criticism correction
    2022-01-27 20:41:09下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载