#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
標簽: include define malloc string
上傳時間: 2014-06-01
上傳用戶:yepeng139
%realize overlapped-save method %y:output sequence %x:input seqence %h:filter impulse response sequence %N:length of each segment %重疊保留法實現分段卷積
標簽: overlapped-save sequence response realize
上傳時間: 2015-07-22
上傳用戶:chenbhdt
利用函數MadHG生成規則LDPC碼的校驗矩陣H,其行重為6,列重為3,行數為列數一半(行數越大越好),H中任意兩列沒有圍長為4的圈,并得到H對應的生成矩陣G,可以保證mod(G*H ,2)=0。使用方法為:[H,G] = MadHG(m,n,x),x= 1(得到的G左半部分為單位陣) or 2(G右半部分為單位陣),
上傳時間: 2013-12-06
上傳用戶:xiaohuanhuan
利用函數MadHG生成規則LDPC碼的校驗矩陣H,其行重為6,列重為3,行數為列數一半(行數越大越好),H中任意兩列沒有圍長為4的圈,并得到H對應的生成矩陣G,可以保證mod(G*H ,2)=0。使用方法為:[H,G] = MadHG(m,n,x),x= 1(得到的G左半部分為單位陣) or 2(G右半部分為單位陣),
上傳時間: 2015-10-12
上傳用戶:hustfanenze
生成一個規則LDPC碼的教研矩陣H,其行數(越大越好)為列數的一半,行重為6,列重為3,任意兩行沒有圍長為4的圈 使用方法:H=HGrandom2(m,n)。m表示行數,n表示列數
上傳時間: 2013-12-28
上傳用戶:Yukiseop
[輸入] 圖的頂點個數N,圖中頂點之間的關系及起點A和終點B [輸出] 若A到B無路徑,則輸出“There is no path” 否則輸出A到B路徑上個頂點 [存儲結構] 圖采用鄰接矩陣的方式存儲。 [算法的基本思想] 采用廣度優先搜索的方法,從頂點A開始,依次訪問與A鄰接的頂點VA1,VA2,...,VAK, 訪問遍之后,若沒有訪問B,則繼續訪問與VA1鄰接的頂點VA11,VA12,...,VA1M,再訪問與VA2鄰接頂點...,如此下去,直至找到B,最先到達B點的路徑,一定是邊數最少的路徑。實現時采用隊列記錄被訪問過的頂點。每次訪問與隊頭頂點相鄰接的頂點,然后將隊頭頂點從隊列中刪去。若隊空,則說明到不存在通路。在訪問頂點過程中,每次把當前頂點的序號作為與其鄰接的未訪問的頂點的前驅頂點記錄下來,以便輸出時回溯。 #include<stdio.h> int number //隊列類型 typedef struct{ int q[20]
標簽: 輸入
上傳時間: 2015-11-16
上傳用戶:ma1301115706
#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 /*各種結點數*/ char le[m],l[m],r[m],ro[m] /*用與存放各種結點*/ typedef struct BiTNode/*定義二叉樹*/
上傳時間: 2013-12-15
上傳用戶:liansi
希爾排序算法: 基本思想:將整個無序序列分割成若干小的子序列分別進行插入排序。 序列分割方法:將相隔某個增量h的元素構成一個子序列。在排序過程中,逐次減小這個增量,最后當h減到1時,進行一次插入排序,排序就完成。增量序列一般采用:ht=2t-1,1≤t≤[log2n],其中n為待排序序列的長度。
上傳時間: 2013-12-19
上傳用戶:kikye
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上傳時間: 2014-11-10
上傳用戶:wpwpwlxwlx
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上傳時間: 2013-12-12
上傳用戶:亞亞娟娟123