搜索资源列表
强盗分金算法
- 10名海盗抢得了窖藏的100块金子,并打算瓜分 这些战利品。这是一些讲*的海盗(当然是他们自己特有的*),他们的习惯 是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包 括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方 案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名 最厉害的海盗又重复上述过程-10 pirates seize a cache of 100 gold, and plan t
Simulate_Allocate_Memory_Implement_by_C
- 模拟内存分配的c语言实现 六、 实验目的 了解用户程序分配内存以及回收所用内存的过程,加深对操作系统存储管理机制的理解。 七、 实验内容 采用首次适应法、最佳适应法或最差适应法,编写一内存分配和回收模拟程序。 (提示:“内存空闲区”数组的设置原理类似于实验一。动态地随机产生新的“内存分配”或“内存回收”请求,再按照你选定的分配算法修改这个数组。由于这个实验的重点在于内存分配,所以不考虑与某内存区相关的进程情况。) -simulation memory allocation
key_sort_system
- 多关键字的排序是有一定的实用范围。例如:在进行高考分数处理时,除了对总分进行排序外,不同的专业对单科分数的要求不同,因此尚需在总分相同的情况下,按用户提出的单科分数的次序要求排出考生录取的次序。(1)假如代排序的记录数不超10000,表中记录的关键字数不超过5,各个关键字的范围均为0至100。按用户给定的排序的关键字的优先关系,输出排序的结果。(2)约定按LSD方法进行多关键字的排序。在对各个关键字进行排序时采用两种策略:其一是利用稳定的内部排序方法,其二是利用“分配”和“收集”的方法。并综合比
FIFOandLRUarithmetic
- 最佳页面置换算法,FIFO,LRU的仿真。页面调用和置换过程有动态显示。内存分配页面数目和页面引用串的长度可以进行人工交互输入。 -best pages replacement algorithm, FIFO, the LRU simulation. Page calls and replacement process is dynamic display. Memory allocation of the number of pages and pages cited the lengt
mmc(skyw)
- 用VC写的模拟内存分配管理的代码,经测试运行完全正确-VC write memory allocation management simulation code, the test run entirely correct
CLaugYM
- 案例一 贪吃蛇游戏 案例二 计算器 案例三 黑白棋游戏 案例四 迷宫问题 案例五 扫地雷游戏 案例六 速算24 案例七 数据结构CAI系统 案例八 进程调度 案例九 存储管理分区分配算法 案例十 通讯录 案例十一 学生成绩管理 案例十二 工资管理 案例十三 图书借阅管理 案例十四 教师工作量计算 -case a huge memory game two cases calculators Case 3 Case 4 game reversi
Memory2(new)
- 模拟64M的内存的动态管理,包括分配.回收.操作系统实验课程设计题目-64M simulation of the dynamic memory management, including the allocation. Recovery. OS experimental curriculum design topics
xianxingfangcheng
- 编程序,按如下要求来求解n元一次线性方程组(假设方程组具有唯一解)。 (1)方程个数n之值由用户通过键盘输入; (2)方程组存放在“增广矩阵”A之中,而n行n+1列的A存储空间通过new来动态分配,且A的各元素值也由用户通过键盘输入; (3)方程组的解存放于“向量”B之中,而具有n个元素的B存储空间也通过new来动态分配。 -programmed by the following demands to solve an n-linear equation (equatio
CMatrixClass
- 1.内存管理一律根据实际需要的大小在堆中动态分配内存。 2.边界检查。如果数组下标超越了数组大小界限,会给出警告信息,可以防止非法内存访问以及方便程序的调试。 3.重载了+,-,*,+=,-=,数乘等常见运算符; 4.可以保存数组为二进制数据文件和文本文件两种形式,也可以从二进制数据文件和文本文件读取数据到数组。 5.实现了和矩阵相关的线性代数方程组求解算法。一是高斯选主元消去法二是针对三对角矩阵的追赶法。 6.静态函数Bspline3():3次
CCodeExample
- c代码用例。内容包括案例一 贪吃蛇游戏(学习基于while(!keyhit())的即时原理) 案例二 计算器 案例三 黑白棋游戏 案例四 迷宫问题 案例五 扫地雷游戏 案例六 速算24 案例七 数据结构CAI系统 案例八 进程调度 案例九 存储管理分区分配算法 案例十 通讯录 案例十一 学生成绩管理 案例十二 工资管理 案例十三 图书借阅管理 案例十四 教师工作量计算-c code with cases. Case including a hu
hash
- /* * The internal form of a hash table. * * The table is an array indexed by the hash of the key collisions * are resolved by hanging a linked list of hash entries off each * element of the array. Although this is a really simple desig
1193 内存分配
- 这是有关内存分配的一些讨论 以及 一些算法的实现-This the memory allocation of some discussion and some algorithm to achieve!
hash_map
- STL哈希表的使用范例:包括哈希表的创建、插入、查找、删除、内存分配和释放内存。-STL use examples include : Hash Table creation, insert, search, delete, memory allocation and release memory.
数据结构任务分配
- 用数据结构实现基本算法 用C++实现任务分配功能-data structure used to achieve basic algorithm C Task allocation functions
bit_power_allocation
- :该文研究OFDM 系统在总功率和误比特率限定下最大化传输速率的问题,并且考虑实际系统中整数比特的限制, 提出基于灌水法则的两种比特分配算法——改进贪婪算法和对分灌水线搜索法-The maximization of data rate under the constraint of total transmit power and bit error rate is a considerable issue in OFDM system. Recognizing that the num
dynamic-allocation
- 该程序可用于了解动态分区分配中使用的数据结构和分配算法,并进一步加深对动态分区存储管理方式及其实现过程的理解。-The program is used to understand the data structures used in the dynamic partition and the allocation algorithm, and further deepen the understanding of the dynamic partition memory management
Dynamic-Memory-Allocation
- 这个程序是有关计算机的动态内存分配的数据结构 可以直接加载头文件与源文件即可使用其中的接口-This program is a data structure for dynamic memory allocation of the computer can directly load the header files and source files you can use one of the interfaces
task-allocation
- 数据结构设计程序之任务分配,很适合初学者学习-Data structure design process, task allocation, it is suitable for beginners to learn
Memory-allocation-source-code
- 内存分配源代码,我自己写的,虽然很简单,不过挺实用的,且很容易懂。-Memory allocation source code, I wrote it myself, although very simple, but very practical, and easy to understand.
algorithm-about-resource-allocation
- 关于资源分配问题的改进算法,可以根据自己需要修改。-The improved algorithm about resource allocation problem, you can modify according to their own needs.
