系統(tǒng)資源(r1…rm),共有m類,每類數(shù)目為r1…rm。隨機產(chǎn)生進程Pi(id,s(j,k),t),0
上傳時間: 2014-01-27
上傳用戶:天誠24
R+樹的c實現(xiàn)源碼,對應文章T. K. Sellis, N. Roussopoulos, C. Faloutsos: The R+-Tree: A Dynamic Index for Multi-Dimensional Objects.
上傳時間: 2014-05-25
上傳用戶:sunjet
#include<malloc.h> #include<limits.h> #include<stdio.h> #include<graphics.h> #include<io.h> #include<math.h> #include<process.h> #include<conio.h> #define m 100 #define OK 1 typedef int Status typedef char TElemType /*樹元素的類型*/ int t=35 int n=20 int h=14 int u=2 int leaf=0,non_l_leaf=0,non_r_leaf=0,root=0 /*各種結(jié)點數(shù)*/ char le[m],l[m],r[m],ro[m] /*用與存放各種結(jié)點*/ typedef struct BiTNode/*定義二叉樹*/
上傳時間: 2013-12-15
上傳用戶:liansi
提 出了一種 網(wǎng)絡(luò) 化嵌 入 式 數(shù) 控 系統(tǒng) , 系統(tǒng) 采 用 A RM 4 - D S P結(jié) 構(gòu) , 實現(xiàn) 了數(shù) 控 系統(tǒng) 的 小型 化 、 網(wǎng)絡(luò) 化 、 智能化 和 集成 化 。詳 細介 紹 了嵌入 式數(shù) 控 系統(tǒng) 內(nèi) CNC主控 單元 與 伺 服 驅(qū)動 及 I /0邏輯 控 制 等各 單 元 間的通信 、 車 間級 工 業(yè) 以太 網(wǎng)絡(luò) 的通信 和 i n t r a n e t / I n t e r n e t網(wǎng)絡(luò) 通信 , 并給 出 了關(guān)鍵 實現(xiàn)技 術(shù)。
標簽: 網(wǎng)絡(luò)
上傳時間: 2013-11-25
上傳用戶:as275944189
提 出了一種 網(wǎng)絡(luò) 化嵌 入 式 數(shù) 控 系統(tǒng) , 系統(tǒng) 采 用 A RM 4 - D S P結(jié) 構(gòu) , 實現(xiàn) 了數(shù) 控 系統(tǒng) 的 小型 化 、 網(wǎng)絡(luò) 化 、 智能化 和 集成 化 。詳 細介 紹 了嵌入 式數(shù) 控 系統(tǒng) 內(nèi) CNC主控 單元 與 伺 服 驅(qū)動 及 I /0邏輯 控 制 等各 單 元 間的通信 、 車 間級 工 業(yè) 以太 網(wǎng)絡(luò) 的通信 和 i n t r a n e t / I n t e r n e t網(wǎng)絡(luò) 通信 , 并給 出 了關(guān)鍵 實現(xiàn)技 術(shù)。
標簽: 網(wǎng)絡(luò)
上傳時間: 2013-12-27
上傳用戶:huannan88
c++二、通過將其元素插入到雙向鏈表中的方法對數(shù)組A進行排序。算法對鏈表的當前操作位置進行維護,當需要插入表項時,若新元素比當前位置值要大,則往前移動;若小則往后移動。編寫函數(shù)DoubleSort實現(xiàn)上述排序算法。 template <class T> void DoubliSort( T a[], int n)
上傳時間: 2013-12-03
上傳用戶:gundamwzc
二、通過將其元素插入到雙向鏈表中的方法對數(shù)組A進行排序。算法對鏈表的當前操作位置進行維護,當需要插入表項時,若新元素比當前位置值要大,則往前移動;若小則往后移動。編寫函數(shù)DoubleSort實現(xiàn)上述排序算法。 template <class T> void DoubliSort( T a[], int n)
上傳時間: 2016-07-15
上傳用戶:遠遠ssad
無線應用協(xié)議(Wireless Application Protocol,WA P)是WAP論壇經(jīng)過不斷努力得到的成果,它提供了一個業(yè)界技術(shù)規(guī)范,以便開發(fā)出適用于各種無線通信網(wǎng)絡(luò)的應用程序和業(yè)務。 WAP規(guī)定了適用于多種無線設(shè)備的網(wǎng)絡(luò)協(xié)議和應用程序框架,這些設(shè)備包括移動電話、尋呼機、個人數(shù)字助理( P D A)等。這個規(guī)范不但擴充了移動組網(wǎng)技術(shù)(如數(shù)字數(shù)據(jù)組網(wǎng)標準)和I n t e r n e t技術(shù)(如X M L,U R L,腳本和各種各樣的內(nèi)容格式) ,而且還將推動他們的發(fā)展。
標簽: Application Wireless Protocol 無線應用
上傳時間: 2017-03-13
上傳用戶:wcl168881111111
#include <iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ long long n; cin>>n; if(n%2==1) cout<<(n*n-1)/4<<endl; else if (n%4==0) cout <<(n*n)/4-1<<endl; else{ if(n==2) cout<<1<<endl; else{ long long k=n/2-1; cout <<k*k+2*k-3<<endl; } } } return 0; }
標簽: 天津大學acm4022 代碼
上傳時間: 2015-04-20
上傳用戶:nr607
#include<stdio.h> #define TREEMAX 100 typedef struct BT { char data; BT *lchild; BT *rchild; }BT; BT *CreateTree(); void Preorder(BT *T); void Postorder(BT *T); void Inorder(BT *T); void Leafnum(BT *T); void Nodenum(BT *T); int TreeDepth(BT *T); int count=0; void main() { BT *T=NULL; char ch1,ch2,a; ch1='y'; while(ch1=='y'||ch1=='y') { printf("\n"); printf("\n\t\t 二叉樹子系統(tǒng)"); printf("\n\t\t*****************************************"); printf("\n\t\t 1---------建二叉樹 "); printf("\n\t\t 2---------先序遍歷 "); printf("\n\t\t 3---------中序遍歷 "); printf("\n\t\t 4---------后序遍歷 "); printf("\n\t\t 5---------求葉子數(shù) "); printf("\n\t\t 6---------求結(jié)點數(shù) "); printf("\n\t\t 7---------求樹深度 "); printf("\n\t\t 0---------返 回 "); printf("\n\t\t*****************************************"); printf("\n\t\t 請選擇菜單號 (0--7)"); scanf("%c",&ch2); getchar(); printf("\n"); switch(ch2) { case'1': printf("\n\t\t請按先序序列輸入二叉樹的結(jié)點:\n"); printf("\n\t\t說明:輸入結(jié)點(‘0’代表后繼結(jié)點為空)后按回車。\n"); printf("\n\t\t請輸入根結(jié)點:"); T=CreateTree(); printf("\n\t\t二叉樹成功建立!\n");break; case'2': printf("\n\t\t該二叉樹的先序遍歷序列為:"); Preorder(T);break; case'3': printf("\n\t\t該二叉樹的中序遍歷序列為:"); Inorder(T);break; case'4': printf("\n\t\t該二叉樹的后序遍歷序列為:"); Postorder(T);break; case'5': count=0;Leafnum(T); printf("\n\t\t該二叉樹有%d個葉子。\n",count);break; case'6': count=0;Nodenum(T); printf("\n\t\t該二叉樹總共有%d個結(jié)點。\n",count);break; case'7': printf("\n\t\t該樹的深度為:%d",TreeDepth(T)); break; case'0': ch1='n';break; default: printf("\n\t\t***請注意:輸入有誤!***"); } if(ch2!='0') { printf("\n\n\t\t按【Enter】鍵繼續(xù),按任意鍵返回主菜單!\n"); a=getchar(); if(a!='\xA') { getchar(); ch1='n'; } } } } BT *CreateTree() { BT *t; char x; scanf("%c",&x); getchar(); if(x=='0') t=NULL; else { t=new BT; t->data=x; printf("\n\t\t請輸入%c結(jié)點的左子結(jié)點:",t->data); t->lchild=CreateTree(); printf("\n\t\t請輸入%c結(jié)點的右子結(jié)點:",t->data); t->rchild=CreateTree(); } return t; } void Preorder(BT *T) { if(T) { printf("%3c",T->data); Preorder(T->lchild); Preorder(T->rchild); } } void Inorder(BT *T) { if(T) { Inorder(T->lchild); printf("%3c",T->data); Inorder(T->rchild); } } void Postorder(BT *T) { if(T) { Postorder(T->lchild); Postorder(T->rchild); printf("%3c",T->data); } } void Leafnum(BT *T) { if(T) { if(T->lchild==NULL&&T->rchild==NULL) count++; Leafnum(T->lchild); Leafnum(T->rchild); } } void Nodenum(BT *T) { if(T) { count++; Nodenum(T->lchild); Nodenum(T->rchild); } } int TreeDepth(BT *T) { int ldep,rdep; if(T==NULL) return 0; else { ldep=TreeDepth(T->lchild); rdep=TreeDepth(T->rchild); if(ldep>rdep) return ldep+1; else return rdep+1; } }
上傳時間: 2020-06-11
上傳用戶:ccccy
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1