-
银行家算法
通过图形界面上数据的输入,将进程的所需的最大资源数、已分配资源数、完成进程所需的剩余资源数数据存入数组中,再根据银行家算法要求,进行进程间的运行分配,而后显示在左侧的面板上。
- 2022-12-10 11:55:03下载
- 积分:1
-
是一个算法的小小汇总,使用vb语言编写,适合初学者学习。...
是一个算法的小小汇总,使用vb语言编写,适合初学者学习。-algorithm is a little summary, the use of vb language, suitable for beginners to learn.
- 2022-02-05 21:35:58下载
- 积分:1
-
蓝桥杯-六角幻方-代码
应用背景
这是蓝桥杯往年的一个题目,类似的题目有六角填数、4*4魔方阵等。题目如下图:
将1,2,3,...19填进去,图中已经填了两个数15和13,填完后要求每条直线上的数字之和相等,图中共有十五条直线。
关键技术代码在VS2010上运行。 设和为a, 则a*15/3=(1+19)/2*19 所以 a=38 前两个数已经填好,开始填第三个数,将满足vis=0的数依次填进去。填完第三个数,第一行已经形成了直线,判断第一行的和是不是38. 填完第七个数,新增加了一条直线(第二行),判断它的和。填完第八个数,增加了一条线(45°方向),判断其和。以此类推。程序关键是:每填完一个数,看有没有新增加的直线,并判断数字和,不能全部填完19个数再判断,因为计算量太大,程序运行不出来。
- 2022-02-07 04:51:19下载
- 积分:1
-
C++实现基于用户的协同过滤
算法过程:1).读入数据,将数据用user_brands存起来,同时建立userid_id,再建立id_brands 2).遍历id_brands得到物品-用户倒排表brand_ids,根据倒排表得到用户的相似矩阵sim_mat 3).为每个用户推荐产品: 3.1).求用户u买过的brand和所有brand的差集得到用户u没有买过的物品集合brand_unused; 3.2).用户u对每一个没用过的物品i的兴趣p(u,i): 3.2.1).找到与用户u最近的k个用户 对于每一个没用过的物品i: 3.2.2).找出这k个用户中对物品i有过行为的用户v[]√ 3.2.3).将用户u和v[j]的兴趣相似度累加 3.3).取前m个最感兴趣的brand推荐给用户; 代码:UCF.cc(用户协同过滤核心代码):#include #include #include #include #include #include #include #include #include #include
- 2023-03-01 07:45:04下载
- 积分:1
-
MOEA framework
应用背景The MOEA Framework is a free and open source Java library for developing and
experimenting with multiobjective evolutionary algorithms (MOEAs) and other
general-purpose multiobjective optimization algorithms. The MOEA Framework
supports genetic algorithms, differential evolution, particle swarm
optimization, genetic programming, grammatical evolution, and more. A number of
algorithms are provided out-of-the-box, including NSGA-II, NSGA-III, ε-MOEA,
GDE3 and MOEA/D. In addition, the MOEA Framework provides the tools necessary
to rapidly design, develop, execute and statistically test optimization
algorithms.关键技术Its key features includes:
* Fast, reliable implementations of many state-of-the-art algorithms
* Extensible with custom algorithms, problems and operators
* Supports master-slave, island-model, and hybrid parallelization
&n
- 2022-02-28 22:09:39下载
- 积分:1
-
简单的五子棋
很简单的五子棋。一个小小的匈牙利语,但不 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-24 09:41:09下载
- 积分:1
-
CPU computer systems is a very important resource, this chapter introduces proce...
CPU是计算机系统中一个十分重要的资源,本章主要介绍处理机的调度目标、策略以及评价方法等。因为处理机调度程序不可能选择全部驻留在外存的进程,因此,在调度一个进程占有处理机之前,系统必须按某种策略把外存中处于后备状态的作业选择出来,并创建进程和分配内存,为进程执行准备必需的资源。这一步称为作业调度或高级调度。作业调度的目标是尽量做到公平合理,能执行尽可能多的作业、尽快地响应时间以及高的设备利用率等。任一调度算法要同时满足这些调度目标是不可能的。大多数操作系统都是根据用户需要而采用兼顾某些目标的方法。比较常用的作业调度算法有:FCFS(先来先服务)、方法、SJP(最短作业优先)法、HRN(最高响应比)法等。这-CPU computer systems is a very important resource, this chapter introduces processor scheduling objectives, strategies and evaluation methods. Because the processor scheduling procedures could not choose Disk presence in all the process, and therefore, in the process of scheduling a possession before the processor, the system must be some kind of strategy to Disk backup were at the operational state of choice out and the process of creation and distribution of memory, the process of preparing the implementation of the necessary resources. This step as job scheduling or senior scheduling. Job Scheduling goal is to try to make it fair and reasonable to carry out the operation as much as
- 2023-01-15 07:45:04下载
- 积分:1
-
under Windows using Fast Fourier changes, the screen
用Windows 下实现快速傅立叶变化,显示在屏幕-under Windows using Fast Fourier changes, the screen
- 2022-04-20 03:54:26下载
- 积分:1
-
MS-PS算法实现
MS-PS是data mining 的实用算法之一。其有多个minimum support, 对数据进行更有利的提取。得到想要的association rule 和sequential pattern.
- 2022-11-26 22:30:04下载
- 积分:1
-
捷联惯性导航C语言实现
捷联惯性导航C语言实现,捷联惯性导航学习使用,参考网上例程编写~
- 2022-07-17 23:28:41下载
- 积分:1