crc任意位生成多項(xiàng)式 任意位運(yùn)算 自適應(yīng)算法 循環(huán)冗余校驗(yàn)碼(CRC,Cyclic Redundancy Code)是采用多項(xiàng)式的 編碼方式,這種方法把要發(fā)送的數(shù)據(jù)看成是一個(gè)多項(xiàng)式的系數(shù) ,數(shù)據(jù)為bn-1bn-2…b1b0 (其中為0或1),則其對(duì)應(yīng)的多項(xiàng)式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數(shù)據(jù)“10010101”可以寫(xiě)為多項(xiàng)式 X7+X4+X2+1。 循環(huán)冗余校驗(yàn)CRC 循環(huán)冗余校驗(yàn)方法的原理如下: (1) 設(shè)要發(fā)送的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為P(x)。 (2) 發(fā)送方和接收方約定一個(gè)生成多項(xiàng)式G(x),設(shè)該生成多項(xiàng)式 的最高次冪為r。 (3) 在數(shù)據(jù)塊的末尾添加r個(gè)0,則其相對(duì)應(yīng)的多項(xiàng)式為M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),獲得商Q(x)和余式R(x),則 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2運(yùn)算,T(x)所對(duì)應(yīng)的數(shù)據(jù)是在原數(shù) 據(jù)塊的末尾加上余式所對(duì)應(yīng)的數(shù)據(jù)得到的。 (6) 發(fā)送T(x)所對(duì)應(yīng)的數(shù)據(jù)。 (7) 設(shè)接收端接收到的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為T(mén)’(x),將T’(x)除以G(x) ,若余式為0,則認(rèn)為沒(méi)有錯(cuò)誤,否則認(rèn)為有錯(cuò)。
標(biāo)簽: crc CRC 多項(xiàng)式 位運(yùn)算
上傳時(shí)間: 2014-11-28
上傳用戶(hù):宋桃子
云臺(tái)鏡頭控制系統(tǒng),闡述了利用vb 通信功能控制和監(jiān)測(cè)系統(tǒng)。
標(biāo)簽: 鏡頭 控制系統(tǒng)
上傳時(shí)間: 2014-11-21
上傳用戶(hù):himbly
crc任意位生成多項(xiàng)式 任意位運(yùn)算 自適應(yīng)算法 循環(huán)冗余校驗(yàn)碼(CRC,Cyclic Redundancy Code)是采用多項(xiàng)式的 編碼方式,這種方法把要發(fā)送的數(shù)據(jù)看成是一個(gè)多項(xiàng)式的系數(shù) ,數(shù)據(jù)為bn-1bn-2…b1b0 (其中為0或1),則其對(duì)應(yīng)的多項(xiàng)式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數(shù)據(jù)“10010101”可以寫(xiě)為多項(xiàng)式 X7+X4+X2+1。 循環(huán)冗余校驗(yàn)CRC 循環(huán)冗余校驗(yàn)方法的原理如下: (1) 設(shè)要發(fā)送的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為P(x)。 (2) 發(fā)送方和接收方約定一個(gè)生成多項(xiàng)式G(x),設(shè)該生成多項(xiàng)式 的最高次冪為r。 (3) 在數(shù)據(jù)塊的末尾添加r個(gè)0,則其相對(duì)應(yīng)的多項(xiàng)式為M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),獲得商Q(x)和余式R(x),則 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2運(yùn)算,T(x)所對(duì)應(yīng)的數(shù)據(jù)是在原數(shù) 據(jù)塊的末尾加上余式所對(duì)應(yīng)的數(shù)據(jù)得到的。 (6) 發(fā)送T(x)所對(duì)應(yīng)的數(shù)據(jù)。 (7) 設(shè)接收端接收到的數(shù)據(jù)對(duì)應(yīng)的多項(xiàng)式為T(mén)’(x),將T’(x)除以G(x) ,若余式為0,則認(rèn)為沒(méi)有錯(cuò)誤,否則認(rèn)為有錯(cuò)
標(biāo)簽: crc CRC 多項(xiàng)式 位運(yùn)算
上傳時(shí)間: 2014-01-16
上傳用戶(hù):hphh
在PDA上應(yīng)用的EVC環(huán)境中藍(lán)牙設(shè)備處理應(yīng)用程序,實(shí)現(xiàn)藍(lán)牙通信功能。
標(biāo)簽: PDA EVC 環(huán)境 處理應(yīng)用
上傳時(shí)間: 2014-10-31
上傳用戶(hù):Breathe0125
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時(shí)間: 2016-01-17
上傳用戶(hù):jeffery
單片機(jī)下的TCP/IP協(xié)議棧,使單片機(jī)具有網(wǎng)絡(luò)通信功能
標(biāo)簽: TCP IP 單片機(jī) 協(xié)議棧
上傳時(shí)間: 2016-02-07
上傳用戶(hù):鳳臨西北
UART 串口程序,verilog語(yǔ)句,很好的實(shí)現(xiàn)了UART的通信功能!
上傳時(shí)間: 2013-12-26
上傳用戶(hù):qunquan
用游標(biāo)的方法實(shí)現(xiàn)對(duì)稱(chēng)差的計(jì)算,即 (A-B)+(B-A)
標(biāo)簽: 對(duì)稱(chēng) 計(jì)算
上傳時(shí)間: 2016-05-23
上傳用戶(hù):遠(yuǎn)遠(yuǎn)ssad
詞法分析器 對(duì)輸入一個(gè)函數(shù),并對(duì)其分析main() { int a,b a = 10 b = a + 20 }
上傳時(shí)間: 2013-12-20
上傳用戶(hù):hfmm633
基因算法,用VC++或MATLAB,java等工具設(shè)計(jì)一程序計(jì)算任一個(gè)隨機(jī)產(chǎn)生的DNA基因表達(dá)式的有效長(zhǎng)度和值 設(shè)隨機(jī)產(chǎn)生的基因表達(dá)式為: + Q - / b * b a Q b a a b a a b b a a a b
上傳時(shí)間: 2014-01-09
上傳用戶(hù):aa54
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1