Description: 排队论中的一个仿真程序,主要是用于仿真M/M/1、M/D/1模型。输入排队模型相关参量,返回计算结果。-It s a simulation in queueing, mainly using in simulating M/M/1 and M/D/1 module. Input the parameter about the module and return the result. Platform: |
Size: 231424 |
Author:肖煜 |
Hits:
Description: 描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,抱m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。
.算法思想:
Jeseph函数是实现问题要求的主要函数,其算法思想是:从1至m对带头结点的单循环链表循环计数,到m时,输出该结点的编号值,,再从该结点的下一个结点起重新自1起循环计数;如此下去,直到单循环链表空时循环过程结束。
-Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individuals sitting around a circle, each holding a positive integer code. At the beginning of a given arbitrary reported few limits on m, started from the first clockwise direction from the starting sequence reported a few, when they report back m reported few, hold out the m out from the clockwise direction in the next personal re-order starting from a newspaper; This situation continues until all people so far shown up. Asked to design a simulation of this process, and give out the number of people out sequence. . Algorithm thinking : Jeseph function is to seek to achieve the main function of the algorithm is thinking : m from a right to take the lead in the 19th nodes Listless cycle count, m, the output node number Platform: |
Size: 168960 |
Author:王俊 |
Hits:
Description: This the sample application that accompanies the May 99
Game Developer magazine. It is meant as a demonstration of
a method for 3D cloth simulation in OpenGL.
Cloth simulation is a very complex process. This column and
demo just scratches the surface. It is simply a way of building
a form of cloth using the mass and spring system from last
month. It is sort of a macro function (CreateClothPatch in OGLView.cpp)
that builds all the various springs and attaches them.
There are many places it can be improved and modified.
Please read the article and check the references in the
"For Further Info" section if you are really interested
in cloth simulation.-This the sample application that accomp anies the May 99 Game Developer magazine. It is m eant as a demonstration of a method for 3D cloth's imulation in OpenGL. Cloth simulation is a very complex process. This column and demo just scra tches the surface. It is simply a way of building a form of cloth using the mass and spring system f rom last month. It is sort of a macro function (Cr eateClothPatch in OGLView.cpp) that builds al l the various springs and attaches them. There a 're many places it can be improved and modified. P lease read the article and check the references in the "For Further Info" section if you are real ly interested in cloth simulation. Platform: |
Size: 6789120 |
Author:yxg |
Hits:
Description: 操作系统课程设计
1、模拟UNIX(linux)文件系统
[问题描述]
在任一OS下,建立一个大文件,把它假象成一张盘,在其中实现一个简单的 模拟UNIX文件系统 。
[基本要求]
1.在现有机器硬盘上开辟20M的硬盘空间,作为设定的硬盘空间。
2.编写一管理程序对此空间进行管理,以模拟UNIX(linux)文件系统,具体要求如下:
(1) 要求盘块大小1k
正规文件
(2) i 结点文件类型 目录文件
(共1byte) 块设备
管道文件
。物理地址(索引表)
共有13个表项,每表项2byte
。文件长度 4byte
。联结计数 1byte
(3)0号块 超级块 栈长度50
空闲盘块的管理:成组链接 ( UNIX)
位示图法 (Linux)
(4)每建一个目录,分配4个物理块
文件名 14byte
-curriculum design an operating system, Simulation of UNIX (Linux) file system [Description of the issue] as an OS and built a large file, its facade into a disk, in which the realization of a simple simulation of the UNIX file system. [Basic requirements] 1. Hard existing machines opened 20 M disk space, as a set of hard drive space. 2. Prepared a management procedures this space management, to simulate the UNIX (Linux) file system, specific requirements are as follows : (1) require a disk block size k formal document (2) i node directory file type (a total of 1byte) block device Pipeline documents. Physical Address (Index) on a total of 13 tables, every item in Table 2 byte. 4byte document length. 1byte link count (3) 0, super-block length of 50 block Stack spare disk block management : G Platform: |
Size: 875520 |
Author:wangwei |
Hits:
Description: 实验模拟-TCP聊天客户端
模型使用有停止等待协议进行客服间的通信-Experimental simulation-TCP chat client to use the model agreement has to stop to wait for customer communication Platform: |
Size: 1587200 |
Author:xiao fei |
Hits:
Description: vc6.0下开发的vega框架,可用于继续实时仿真-vega under vc6.0 development framework, can be used to continue real-time simulation Platform: |
Size: 90112 |
Author: |
Hits:
Description: 约瑟夫问题
编号为1,2,……,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数。
方法1.报数为m的人出列(将其删除),从他在顺时针方向上的下一个人开始重新从一报数,……,如此下去,直到所有人全部出列为止。试设计一个程序求出出列顺序。要求利用单向循环链表存储结构模拟此过程,按照出列的顺序打印出各人的编号和此人密码。
-Joseph problems numbered 1,2, ... ..., n of n individuals according to a clockwise direction around a circle, one person holding a password (positive integer). One began to choose a positive integer as the number of reported upper limit of m, from the first individual to embark on the clockwise direction since the beginning of the order of one off. Method 1. Reported that the number of people out of m column (to remove), from him in a clockwise direction on the next person started to count off from 1, ... ..., it goes on like this until all the column until all. Try to design a procedure to derive the column order. Require the use of one-way linked list storage structure simulation cycle of this process, in accordance with a print out the order of their number and this person password. Platform: |
Size: 36864 |
Author:candy930 |
Hits:
Description: 一个模拟沃尔玛柜台结账的排队论仿真,相当于一个M/M/C系统,用event driven思路写成。-Wal-Mart checkout counter in a simulated the queuing theory simulation, which is equivalent to an M/M/C system, written by event driven ideas. Platform: |
Size: 3407872 |
Author:zhu |
Hits:
Description: C/C++中调用MATLAB引擎的数值仿真的实现,
微分方程文件“fun.m”放在matlab的work目录下-C/C++ in the MATLAB engine called the realization of the numerical simulation, differential equations documents " fun.m" on the work directory matlab Platform: |
Size: 175104 |
Author:jj |
Hits:
Description: Dennis M.sullivan的用fdtd方法的数值仿真。是学习fdtd编程的入门好教材。其书上有不少错误,通过本人的整理,各个错误已经改正,并且用matlab画出所有图。-Electronmagnetic simulation using the method fdtd. Dennis M.Sullivan. Platform: |
Size: 2453504 |
Author:xidian2008 |
Hits:
Description: Electronmagnetic simulation using the fdtd method.继昨日上传了第一章,今天把第二章源代码献上。-Electronmagnetic simulation using the fdtd method. Dennis M.Sullivan Platform: |
Size: 928768 |
Author:xidian2008 |
Hits:
Description: Electronmagnetic simulation using the fdtd method.继昨日上传了第一章,今天把第3章献上。
-Electronmagnetic simulation using the fdtd method. Dennis M.Sullivan Platform: |
Size: 1271808 |
Author:xidian2008 |
Hits:
Description: 设计一个M/M/S/k排队系统模型,用C++进行仿真,计算一个新的服务请求在各个状态k下的阻塞率,绘制出到达率-阻塞率曲线(matlab),并将理论值与仿真值进行比较。
M/M/S/k模型为服务请求到达间隔时间服从泊松分布、服务时间服从指数分布、系统有S个服务器、系统容量为k(有限个)的排队系统。如果一个服务请求到达排队系统时,系统内已有k个服务请求,那么这个服务请求就会被拒绝(即不为该服务请求安排服务器,也不会将其排入系统队列)。由于系统容量为k,有S个服务器,所以系统队列的长度为k-S。-The design of a M/M/S/k queuing system model, with C++ for simulation, calculation of a new service request in every state under the blocking rate k, the arrival rate of drawing- blocking probability curve (matlab), and the theoretical value and simulation values.
M/M/S/k model for the service request arrival time to obey Poisson distribution, exponential distribution of service time, the system has S servers, the system capacity of k (finite) of the queuing system. If a service request arrival queuing system, the system has k service request, then the service request will be rejected (that is, do not arrange for the service request server, nor will its queue into the system). Since the system capacity for the k, there are S servers, so the length of the queue system kS. Platform: |
Size: 112640 |
Author:张三 |
Hits:
Description: 系统辨识与MATLAB仿真程序与剖析夹介绍了MATLAB应用入门方法,本程序是关于m序列的MATLAB程序。并提供具体程序予以分析-System identification and analysis of MATLAB simulation program with MATLAB Applications folder entry describes the method, the program is on the m sequence of MATLAB. And to provide specific procedures to analyze Platform: |
Size: 3773440 |
Author:花十五 |
Hits:
Description:
2.wps :为作业最终的仿真结果与分析
正态分布:.cpp为由C++编写的主程序以获取仿真数据,.txt为存储仿真数据的文档,.m为由matlab根据获取的仿真数据画图的结果,其中1、2、3分别为N(0,1)、N(0,4.26)、N(-2.5,1)的情况
瑞利分布:.cpp为由C++编写的主程序以获取仿真数据,.txt为存储仿真数据的文档,.m为由matlab根据获取的仿真数据画图的结果,其中1、2、3分别为Ray(1)、Ray(0.36)、Ray(3.4)的情况
泊松分布:.cpp为由C++编写的主程序以获取仿真数据,.txt为存储仿真数据的文档,.m为由matlab根据获取的仿真数据画图的结果,其中1、2、3、4分别为Lamda(0.2)、Lamda(1)、Lamda(6)、Lamda(10)的情况
0.m为将三或四种情况画到一副图中并进行仿真结果对比的图像
-(2.wps:) for the job the final simulation results and analysis of the normal distribution:. Cpp written by C++ main program to obtain the simulation data. Txt document for storing simulation data, m grounds matlab drawing according to the simulation data obtained the results, wherein 1, 2, 3 respectively, for the N (0,1), N (0,4.26), N (-2.5,1), of Rayleigh distribution: CPP grounds C++ prepared by the main program to obtain its simulation data, txt for storage simulation data documents, the. m grounds MatLab drawing the results according to the simulation data obtained, wherein 1,2,3 respectively ray (1), ray (0.36), the case of the ray (3.4) poise the loose distribution: cpp grounds written main program C++ to get the simulation data txt simulation data is stored documents, m grounds matlab based on the results of the simulation data obtained drawing, in which 1, 2, 3, 4, respectively 0.m case of Lamda (0.2), Lamda (1), Lamda (6), Lamda (10) of the three or four painting to a graph, Platform: |
Size: 360448 |
Author:李娜 |
Hits:
Description: 用循环队列模拟舞伴配对问题:
在舞会上,男、女各自排成一队。舞会开始时。依次从男队和女队的队头各出一人配成舞伴。如果两队初始人数不等,则较长的那一队中未配对者等待下一轮舞曲。
假设初始男、女人数及性别已经固定,舞会的轮数从键盘输入。试模拟解决上述舞伴配对问题。-Paired with a partner circular queue simulation problem: at the ball, male and female each lined up. Dance starts. Followed by men' s and women' s team from the first one from each team dubbed partner. If the initial number of teams ranging from the team which is a long wait for the next one unpaired who dance. Assume that the initial M, the number of women and gender have been fixed, the ball rounds from the keyboard. Try pairing partner simulation to solve the above problems. Platform: |
Size: 184320 |
Author:屠海斌 |
Hits:
Description: 用OpenGL实现画出洛伦兹奇异吸引体,并可以实现图像的放大缩小,翻转,停止等功能键控制的操作-Lorenz Strange Attractor by opengl in VC++6.0.Commands:
* Arrow keys: Rotate the view
* PgUp, PgDn: Zoom in and out
* Mouse click: Center on the nearest point on a particle trajectory
*
* r / R : Reset the simulation
* m / M : Modify the Lorenz parameters (in the text window)
* s / S : Stop (the advancement in time)
* g / G : Go Platform: |
Size: 638976 |
Author:wangyi |
Hits: