您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 操作系统课程设计 银行家算法

  2. 七.银行家算法程序代码 #include #include #include using namespace std; typedef struct Max1 // 资源的最大需求量 { int m_a; int m_b; int m_c; }Max; typedef struct Allocation1 //已分配的资源数 { int a_a; int a_b ; int a_c; }Allocation; typedef struct Need1 //还需要的资源数 { int n_a;
  3. 所属分类:C

    • 发布日期:2009-05-28
    • 文件大小:81kb
    • 提供者:great_xj
  1. 处理机调度算法基于优先数调度算法实现

  2. 3、详细设计(各个模块的算法实现,即各个用户自己的头文件) */首先定义头结点headnode来标志队首*/ #include #include #include 4、代码清单(包含头文件和主函数) #include #include using namespace std; #define MAX 10 struct task_struct { char name[10]; /*进程名称*/ int number; /*进程编号*/ float come_time; /*到达时间*/ flo
  3. 所属分类:网络攻防

    • 发布日期:2009-05-28
    • 文件大小:258kb
    • 提供者:great_xj
  1. 用C++运行的时间片轮算法

  2. 时间片轮算法源代码 #include //要调用的头文件 #include //要调用的头文件 #include //要调用的头文件 #include //要调用的头文件 typedef struct node //用结构体定义 { char name[10]; int prio; int round;
  3. 所属分类:其它

    • 发布日期:2009-06-10
    • 文件大小:3kb
    • 提供者:dyh3477
  1. pid 控制算法的程序设计

  2. 1. #include "config.h" 2. 3. struct _PID 4. { 5. float PVn; //反馈信号变量 6. float SPn; //设定值 7. float Mn; //PID运算结果 8. float Kc; //比例系数 9. float Ts; //采样时间(ms) 10. float Ti; //积分时间(ms
  3. 所属分类:其它

    • 发布日期:2009-07-31
    • 文件大小:118kb
    • 提供者:liujie3948
  1. 图论 弗洛依德算法 最短路径 程序

  2. //* * * * * * * * * * * * * * * * * * * * * * * * //*CHAPTER :5 (5_6) * //*PROGRAM :最短路径 * //*CONTENT :弗洛依德算法 * //* * * * * * * * * * * * * * * * * * * * * * * * #include #include #include #include #include #define INFINITY 10000 //定义权值的最大值 #de
  3. 所属分类:其它

    • 发布日期:2009-09-16
    • 文件大小:2kb
    • 提供者:scyg1988
  1. 非抢占按优先数调度算法源代码

  2. 非抢占按优先数调度算法源代码 #include #include #define MAX 5 //进程数 /*非抢占式优先数算法*/ struct pro1 { int num; //进程名 int arriveTime; //到达时间 int burst; //运行时间; int weight; //优先数 struct pro1 *next; }; //函数声明 struct pro1* creatList(); void insert(struct pro1 *head,struct
  3. 所属分类:网络攻防

  1. 最短距离问题 数据结构与算法

  2. #include #include #define OK 1; #define ERROR -1; typedef int Status; typedef long VRType; typedef int VertexType; typedef long ShortPathTable; #define FALSE 0 #define TRUE 1 typedef int SElemtype; //定义栈的数据类型 enum{A,B,C,D,E,F}; //===========栈的相关定义==
  3. 所属分类:其它

    • 发布日期:2009-12-06
    • 文件大小:150kb
    • 提供者:net_david
  1. 数据结构与算法 通讯录

  2. { int j,i; long k; fp=fopen("people.txt","r+t"); if(fp!=NULL) {for(i=1;iname,persons[i].name); strcpy(s->school,persons[i].school); strcpy(s->city,persons[i].city); strcpy(s->phnum,persons[i].phnum); strcpy(s->eip,persons[i].eip); if(hea
  3. 所属分类:其它

    • 发布日期:2009-12-06
    • 文件大小:223kb
    • 提供者:net_david
  1. 高响应比调度算法(c语言程序实现)

  2. 操作系统的//高响应比调度算法 //按到达时间排序 void sort(struct zgxyb *p,int N) { int i,j; for(i=0;i<=N-1;i++) for(j=0;j<=i;j++) if(p[i].arrivetime<p[j].arrivetime) { struct zgxyb temp; temp=p[i]; p[i]=p[j]; p[j]=temp; } }
  3. 所属分类:其它

    • 发布日期:2010-02-01
    • 文件大小:25kb
    • 提供者:diaoyulangjun
  1. K-均值中心算法C++源代码有详细的程序说明

  2. K-均值中心算法C++char *f2a(double x, int width){ char cbuf[255]; char *cp; int i,k; int d,s; cp=fcvt(x,width,&d,&s); if (s) { strcpy(cbuf,"-"); } else { strcpy(cbuf," "); } /* endif */ if (d>0) { for (i=0; i<d; i++) { cbuf[i+1]=cp[i]; } /* endfor */
  3. 所属分类:其它

  1. 动态分区存储管理方式的算法模拟

  2. c语言写的程序 #include #include #include /*库函数*/ #define MAXSIZE 1000 /*最大内存容量*/ #define MINSIZE 1 /*允许最小的碎片*/ #define LEN sizeof(struct Mem_list) void display(); void menu_choice(); void mem_allocation(); int check_num(int n); void error_message(int n);
  3. 所属分类:C

    • 发布日期:2010-05-17
    • 文件大小:12kb
    • 提供者:xiaoran797
  1. 算法 algorithm-12 week.doc

  2. 看看吧 自己的 typedef int datatype;//......................................................... 。。整形数据类型 typedef struct//......................................................................//结构体 { datatype data[maxsize]; int last; }sequencelist;//.......
  3. 所属分类:其它

    • 发布日期:2010-05-29
    • 文件大小:54kb
    • 提供者:yqjxp
  1. 计算机操作系统fcfs算法

  2. #include "string" #include "iostream" #define N 3 using namespace std; struct Gzuo{ char Id; int Arrtime; //到达时间 int Sevtime; //运行时间 int Fintime; //完成时间 int Runtime; //周转时间 float Wtime; //带权周转时间 }; Gzuo jobline[N]; void Menu() { cout<<"a.输入"&l
  3. 所属分类:其它

    • 发布日期:2010-06-09
    • 文件大小:2kb
    • 提供者:endstyle
  1. 计算机图形学 种子填充算法 MFC、VC

  2. 种子填充算法,自己写的,希望对大家有用 // 种子法View.cpp : implementation of the CMyView class // #include "stdafx.h" #include "种子法.h" #include "种子法Doc.h" #include "种子法View.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif
  3. 所属分类:其它

    • 发布日期:2010-06-14
    • 文件大小:3mb
    • 提供者:yp445163091
  1. 二叉树三种遍历的非递归算法C语言

  2. 本资源给出二叉树先序、中序、后序三种遍历的非递归算法,此三个算法可视为标准算法,直接用于考研答题。 1.先序遍历非递归算法 #define maxsize 100 typedef struct { Bitree Elem[maxsize]; int top; }SqStack; void PreOrderUnrec(Bitree t) { SqStack s; StackInit(s); p=t; while (p!=null || !StackEmpty(s)) { while (p!=nu
  3. 所属分类:其它

    • 发布日期:2010-07-25
    • 文件大小:23kb
    • 提供者:iqizheng
  1. 差分进化算法c#源代码

  2. 参数设置在public struct S_Infun里面,那个文件读写类可以用也可以无视,相应将 fwrite1 = new FileWrite(fileLoc);注掉。其它自己研究吧。
  3. 所属分类:其它

    • 发布日期:2010-10-06
    • 文件大小:6kb
    • 提供者:conmie
  1. 短作业优先算法 操作系统C语言

  2. #include //定义一个结构体 struct sjf{ char name[10]; //进程名 float arrivetime; //到达时间 float servicetime;//服务时间 float starttime; //开始时间 float finishtime;//完成时间 float zztime;//周转时间 float dqzztime;//带权周转 }; //定义一个结构体数组 sjf a[100]; //定义一个输入函数 void input(sjf *p,
  3. 所属分类:C

    • 发布日期:2010-11-19
    • 文件大小:4kb
    • 提供者:Chenjie0301
  1. 精选微软数据结构算法面试100题

  2. 1.把二元查找树转变成排序的双向链表 题目: 输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。 要求不能创建任何新的结点,只调整指针的指向。 10 / \ 6 14 / \ / \ 4 8 12 16 转换成双向链表 4=6=8=10=12=14=16。 首先我们定义的二元查找树节点的数据结构如下: struct BSTreeNode { int m_nValue; // value of node BSTreeNode *m_pLeft; // left child of nod
  3. 所属分类:其它

    • 发布日期:2011-03-08
    • 文件大小:498kb
    • 提供者:youmu543
  1. C# 水波纹算法实例

  2. C# 水波纹实现的具体的算法类和实例 public struct PixelData { public byte blue; public byte green; public byte red; public byte alpha; } Bitmap Subject; int SubjectWidth; BitmapData bitmapData = null; Byte* pBase = null; bool isLocked = false; int _bits = 0; public
  3. 所属分类:C#

    • 发布日期:2011-04-09
    • 文件大小:56kb
    • 提供者:cmg010
  1. struct跟踪源码

  2. 结合多特征的目标跟踪算法,2011年的iccv文章,在线学习式的跟踪目标物体,用到了SVM算法和HAAR特征提取算法等特征提取算法
  3. 所属分类:C++

    • 发布日期:2014-07-26
    • 文件大小:432kb
    • 提供者:sunboyiris
« 12 3 4 5 6 7 8 9 10 ... 20 »