vc++演示操作系统哲学家进餐问题,非常好用
上传时间: 2013-12-13
上传用户:caozhizhi
0 / 1背包问题是一个N P-复杂问题,为了解决该问题,,将用回溯算法解决该问题。既然想选择一个对象的子集,将它们装入背包,以便获得的收益最大,则解空间应组织成子集树的形状(如图1 6 - 2所示)。该回溯算法与4 . 2节的装载问题很类似。首先形成一个递归算法,去找到可获得的最大收益。然后,对该算法加以改进,形成代码。改进后的代码可找到获得最大收益时包含在背包中的对象的集合。
标签: 背包问题
上传时间: 2013-11-25
上传用户:helmos
由于一个数值问题的精确解往往事先不知道,而用数值方法求出的计算解的误差又是不可避免的。因此,数值解是否失真,如何判断──即误差问题,成为大家所关心的重要而又困难的问题,本章只介绍了误差的基本概念和数值计算的若干原则,这对处理数值计算问题是必需的,但是仅这些还远远不能解决工程和科学计算中更为复杂的误差分析问题,还需专门分门别类地进行研究。
标签: 数值
上传时间: 2014-03-08
上传用户:shizhanincc
试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。
上传时间: 2014-08-10
上传用户:dreamboy36
读者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。
上传时间: 2013-12-17
上传用户:youlongjian0
Java安全问题,看看吧,有益于了解Java安全和符合Java安全的编程
上传时间: 2013-12-19
上传用户:lo25643
写者优先问题。操作限制:1)写-写互斥;2)读-写互斥;3)读-读允许;写者优先的附加限制:如果一个读者申请进行读操作时已有另一写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。
上传时间: 2015-03-30
上传用户:英雄
ZLG7289 键盘矩阵使用示例 使用ZLG7289时容易出现的问题和注意事项
上传时间: 2015-03-30
上传用户:jeffery
数据结构中解决约瑟夫环问题的代码,里面只有源代码,大家用TC2编译一下就可以用了:)。
上传时间: 2015-03-31
上传用户:coeus
汉诺塔是初学数据结构的同学最头疼的问题,这里是一个用递归函数解决汉诺塔问题的经典c语言程序,里面有代码和执行文件。
上传时间: 2015-03-31
上传用户:黑漆漆