搜索资源列表
旅行商问题
- 这是一个旅行商问题的算法源程序,代码较为简短,说明详细,可读性好。压缩包里面只包含源程序文件,要在vc上面运行。-This is a traveling salesman problem algorithm source code, code brief that detailed and readable. Compressed they contain only source files to run above the vc.
用c实现的约瑟夫环问题
- 约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的人再处决———直到剩下的最后一个可赦免。 发展的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,但这N个人每人持有一个密码,他有一条荒唐的法律,将犯人站成一个圆圈,法官先给出一个密码M,从第S个人开始数起,每数到第M个犯人,就
货郎担问题源代码
- 货郎担问题源代码 货郎担问题源代码-traveling salesman problem source code traveling salesman problem
模拟过河问题
- 小时候,我看到过这样的一道智力题: 一个农夫带着一只狼,一只羊和一些菜过河。河边只有一条船,由于船太小,只能装下农夫和他的一样东西。在无人看管的情况下,狼要吃羊,羊要吃菜,请问农夫如何才能使三样东西平安过河。经过不难的推理,相信读者都能轻而易举的解出这道题。但是,我们是否能用计算机解这一道题呢?答案是肯定的。本文就让读者去领略一下计算机快速解决问题。-was a kid, I saw the intelligence that one
生产者消费者问题
- 进程管理中的生产者消费者问题 只要是是描述进程管理中生产者与消费者在共享文件时是否同步与互斥问题-management process, the producer consumer issues as long as it is described process management producers and consumers when sharing files synchronized with the Mutual Excl
用信号量解决生产者-消费者问题
- 这是操作系统课,期中考试的题目,用互斥信号量解决进程同步的问题-This is the OS class, the subject of the examination period, with the volume contradict signal synchronization process to resolve the problem
农夫过河问题
- 上传一个程序大家互相交流啊! 主要是农夫过河问题的解法,大家可以相互交流。-upload a procedure they exchange ah! Farmers across the river is the main problem solution, we can exchange.
经典同步问题:5哲学家进餐
- 经典同步问题中的哲学家进餐问题(材料:哲学家5个,筷子5只。要求:每个哲学家必须取得2只筷子时才能进餐,进餐完放下筷子,不能有哲学家饿死。ps:各哲学家每个状态时间有随机性)-Classic synchronous problem :five philosophers have dinner(material:5 philosophers ,five chopsticks.Demand: Each philosophers must h
0-1背问题
- 0-1背包问题 可以提供在背包方面遇到问题的学生或者有需要的人.-0-1 knapsack problem can provide a backpack problems encountered students or those who are in need.
c++迷宫问题
- 这是我个人做的在vc环境下的迷宫问题的实现。各位可以参考或指教!-This is my personal vc done in the context of the realization of the maze. You can reference or enlighten!
多线称关于哲学家就餐问题
- 这是个操作系统中,多线称关于哲学家就餐问题的演示程序!-This is the demo program for the multithread about philosophers having dinner problem in the operating system!
读者-写者问题
- 在windows 98/2000下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制实现读者优先的读者——写入者问题-the windows 98/2000, the process of creating a console, this process contain n threads. Use of these n threads to expre
另一个读者写者问题
- 创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制实现读者优先的读者——写入者问题。-the process of creating a console, this process contain n threads. Use of these n threads to express n readers who write. Each thread ac
题目:多线程同步方法解决生产者-消费者问题
- 题目:多线程同步方法解决生产者-消费者问题 (Bounded - Buffer Problem) 内容:有界缓冲区内设有10个存储单元,放入/取出的数据项 设定为1~10这10个整形数。要求每个生产者和消费者对有界 缓冲区进行操作后,即时显示有界缓冲区的全部内容、当前指针位 置和生产者/消费者标识符。-topics : multithreaded synchronization solution to producer-consumer
8数码问题的源代码
- 我的文件是用VC设计的一个求解人工智能中8数码问题的程序。-my VC document is designed to solve a digital AI 8 issue procedures.
背包问题的动态规划法算法(c++)
- 数据结构 算法设计与分析背包问题的动态规划法算法-data structure design and analysis of algorithms knapsack problem of dynamic programming algorithm
队列解决农夫过河问题
- 数据结构 数值算法与实现-队列解决农夫过河问题-numerical algorithm data structure and implementation-Queue solve farmers problems river
“八皇后”问题递归法求解
- “八皇后”问题递归法求解 * 八皇后问题是一个古老而著名的问题,是回溯算法的典型例题。该问题是十九世纪著名的数学家高斯1850年提出:在8X8格的国际象棋上摆放八个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。 高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法解出92种结果。-"8 Queen's" recur
哲学家进餐问题仿真
- vc++演示操作系统哲学家进餐问题,非常好用-vc operating system demonstration dining philosopher, a very handy
生产者和消费者问题
- 操作系统经典的问题-生产者和消费者问题.C++编写.-OS classic problem-producer and consumer issues. C preparation.