-
lock_hungry
给出进程需求矩阵C、资源向量R以及一个进程的申请序列。使用进程启动拒绝和资源分配拒绝(银行家算法)模拟该进程组的执行情况。要求:
初始状态没有进程启动
计算每次进程申请是否分配?如:计算出预分配后的状态情况(安全状态、不安全状态),如果是安全状态,输出安全序列。
每次进程申请被允许后,输出资源分配矩阵A和可用资源向量V。
每次申请情况应可单步查看,如:输入一个空格,继续下个申请
(The gives processes demand matrix C resource vector R as well as the application of a process sequence. Using the process starts refused to reject and resource allocation (the bankers algorithm) analog implementation of the process group. Requirements: initial state process starts calculated each time the process is whether the application is assigned? : Calculate a state after the pre-allocated (safe state, unsafe state), if it is a safe state, the output safety sequence. Each process the application is allowed, the the output resource allocation matrix A and the resources available vector V. Each application should be able to single-step view, such as: type a space, continue to the next application)
- 2021-01-17 00:38:45下载
- 积分:1
-
局域网内文件接收和发送,可以同时向发送多个文件或者文件夹,程序中多处采用多线程技术...
局域网内文件接收和发送,可以同时向发送多个文件或者文件夹,程序中多处采用多线程技术-LAN to send and receive documents can be sent simultaneously to multiple files or folders, multiple procedures multi-threading technology
- 2023-06-17 21:30:05下载
- 积分:1
-
3.3.3用户登录实例
说明: 3.3.3用户登录实例,VB6.0 源码..学习中!!!!!(Documents are printed into PDF files)
- 2020-06-23 16:20:02下载
- 积分:1
-
LOCK
This file defines the flags for the locking() function.
- 2016-04-02 18:27:01下载
- 积分:1
-
oscilloscope_src
Source code for Oscilloscope on Windows.
- 2020-06-24 10:40:02下载
- 积分:1
-
bpnnet_156
在实际应用中,原始的BP算法很难胜任,因此出现了很多的改进算法。BP算法的改进主要有两种途径,一种是采用启发式学习方法,另一种则是采用更有效的优化算法。本例采用动量BP算法,来实现对网络的训练过程,动量法降低了网络对于误差曲面局部细节的敏感性,有效地抑制网络陷于局部极小。
(In practical applications, the original BP algorithm very difficult to do, so there were a lot of the improved algorithm. BP Algorithm There are two main channels, a heuristic learning method is adopted, another is the introduction of more efficient optimization algorithm. In this case the use of momentum BP algorithm to realize the network training process, momentum method to reduce the network error surface for the local details of the sensitivity of the network effectively inhibited in a local minimum.)
- 2008-06-16 20:29:09下载
- 积分:1
-
traffic
[基本要求]
(1)提供对城市信息进行编辑(如:添加功删除)的功能
(2)城市之间有两面种交通工具:火车和飞机。提供对列车时间表和飞机航班进行编辑(增设或删除)的功能。
(3)提供两面种最优决策:最快到达或最省钱到达。全程只考虑一种交通工具。
(4)旅途中耗费的总时间应该包括中转站的等候时间。
(5)咨询以用户和计算机的对话方式进行。由用户输入起始站、终点站、最优决策原则和交通工具,输出信息:最快需要多长时间才能到达或者最少需要多少旅费才能到达,并详细说明依次于何时坐哪一趟列车哪一次班机到何地。
[实现提示]
(1)对全国城市交通图和列车时刻表及飞机航班表的编辑,应该提供文件形式输入和键盘输入两种方式。飞机航班表的信息包括:起始站台票出发时间、终点站的到达时间和票价;列车时刻表则根据交通图给出各个路段的详细信息。
(2)以邻接表作交通图的存储结构,表示边的结点内除了含有邻接点的信息外,还应包括交通工具、路程中消耗的时间和花费以及出发和到达的时间等多项属性。
()
- 2008-07-07 00:17:13下载
- 积分:1
-
biaodashiqiuzhi
本程序的主要功能在对起泡排序,直接插入排序,简单选择排序,快速排序,希尔排序,堆排序六种内部排序算法的时间复杂度进行比较.主要工作是设法在已知算法中的适当位置插入对关键字的比较次数和移动次数的操作.记录比较次数,移动次数,实现对六种算法复杂度的比较(The primary function of this process in the bubble sort, insertion sort of direct, simple options to sort, quick sort, Hill sort HEAPSORT six internal sorting algorithm time complexity comparison. The main work is to try known algorithm the appropriate place to insert keywords compared to the number and mobile number of the operation. Comparison of the number of records, mobile number, the realization of the complexity of the six comparison algorithm)
- 2009-05-06 23:01:53下载
- 积分:1
-
zhangzhengyoucalibrate
张正友的摄像机标定源代码,基于vc++和opencv的结合(Zhang Zhengyou camera calibration source code, based on a combination of vc++ and opencv)
- 2014-04-16 12:05:19下载
- 积分:1
-
scheme_plai
说明: 此程序使用LISP 变形语言scheme写的,分属于scheme的PLAI。 包括了parse方法,interp方法,有助于理解compiler的最基本思想。(This scheme uses the language written in LISP deformation, belonging scheme of the PLAI. Including the parse method, interp method to help understand the compiler' s basic ideas.)
- 2011-04-17 10:06:17下载
- 积分:1