crc任意位生成多項式 任意位運算 自適應(yīng)算法 循環(huán)冗余校驗碼(CRC,Cyclic Redundancy Code)是采用多項式的 編碼方式,這種方法把要發(fā)送的數(shù)據(jù)看成是一個多項式的系數(shù) ,數(shù)據(jù)為bn-1bn-2…b1b0 (其中為0或1),則其對應(yīng)的多項式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數(shù)據(jù)“10010101”可以寫為多項式 X7+X4+X2+1。 循環(huán)冗余校驗CRC 循環(huán)冗余校驗方法的原理如下: (1) 設(shè)要發(fā)送的數(shù)據(jù)對應(yīng)的多項式為P(x)。 (2) 發(fā)送方和接收方約定一個生成多項式G(x),設(shè)該生成多項式 的最高次冪為r。 (3) 在數(shù)據(jù)塊的末尾添加r個0,則其相對應(yī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運算,T(x)所對應(yīng)的數(shù)據(jù)是在原數(shù) 據(jù)塊的末尾加上余式所對應(yīng)的數(shù)據(jù)得到的。 (6) 發(fā)送T(x)所對應(yīng)的數(shù)據(jù)。 (7) 設(shè)接收端接收到的數(shù)據(jù)對應(yīng)的多項式為T’(x),將T’(x)除以G(x) ,若余式為0,則認為沒有錯誤,否則認為有錯
上傳時間: 2014-01-16
上傳用戶:hphh
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
上傳時間: 2016-01-17
上傳用戶:jeffery
用游標(biāo)的方法實現(xiàn)對稱差的計算,即 (A-B)+(B-A)
上傳時間: 2016-05-23
上傳用戶:遠遠ssad
詞法分析器 對輸入一個函數(shù),并對其分析main() { int a,b a = 10 b = a + 20 }
上傳時間: 2013-12-20
上傳用戶:hfmm633
基因算法,用VC++或MATLAB,java等工具設(shè)計一程序計算任一個隨機產(chǎn)生的DNA基因表達式的有效長度和值 設(shè)隨機產(chǎn)生的基因表達式為: + Q - / b * b a Q b a a b a a b b a a a b
上傳時間: 2014-01-09
上傳用戶:aa54
函數(shù)再現(xiàn)機構(gòu)設(shè)計 試設(shè)計一曲柄搖桿機構(gòu),再現(xiàn)函數(shù) 要求: 輸入構(gòu)件的轉(zhuǎn)角范圍180°,輸出構(gòu)件擺角范圍30°,即: 當(dāng)輸入構(gòu)件從a轉(zhuǎn)至a+90時,輸出構(gòu)件從b轉(zhuǎn)至b+30 當(dāng)輸入構(gòu)件從a+90轉(zhuǎn)至a+180時,輸出構(gòu)件從b+30轉(zhuǎn)至b
上傳時間: 2013-12-17
上傳用戶:英雄
這個連接池是直接從JIVE中取出來的,進行了一下修改,使得連接參數(shù)直接在程序中設(shè)定而不是從屬性文件中讀取。 [b]用法:[/b] 先設(shè)定自己的連接參數(shù),在DbConnectionDefaultPool.java文件的loadProperties方法中。注意你也需要設(shè)定連接池的log文件的存放位置。
上傳時間: 2016-11-21
上傳用戶:TF2015
漢諾塔?。?! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
標(biāo)簽: the animation Simulate movement
上傳時間: 2017-02-11
上傳用戶:waizhang
PIC16C63單片機UART通信——A機讀取時鐘芯片DS1302獲得當(dāng)前時間,通過UART通信傳給B機,B機使用LCD1602顯示當(dāng)前時間
上傳時間: 2013-11-30
上傳用戶:shanml
?ARINC429總線協(xié)議是美國航空電子工程委員會(Airlines Engineering Committee)于1977年7月提出的,并于同年發(fā)表并獲得批準(zhǔn)使用,它的全稱是數(shù)字式信息傳輸系統(tǒng)(Digital Information Transmission System ) 。協(xié)議標(biāo)準(zhǔn)規(guī)定了航空電子設(shè)備及有關(guān)系統(tǒng)間的數(shù)字信息傳輸要求。ARINC429廣泛應(yīng)用在先進的民航客機中,如B-737、B-757、B-767,俄制軍用飛機也選用了類似的技術(shù)。
標(biāo)簽: ARINC429 總線
上傳時間: 2015-03-25
上傳用戶:423619775
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1