crc任意位生成多項式 任意位運算 自適應算法 循環冗余校驗碼(CRC,Cyclic Redundancy Code)是采用多項式的 編碼方式,這種方法把要發送的數據看成是一個多項式的系數 ,數據為bn-1bn-2…b1b0 (其中為0或1),則其對應的多項式為: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:數據“10010101”可以寫為多項式 X7+X4+X2+1。 循環冗余校驗CRC 循環冗余校驗方法的原理如下: (1) 設要發送的數據對應的多項式為P(x)。 (2) 發送方和接收方約定一個生成多項式G(x),設該生成多項式 的最高次冪為r。 (3) 在數據塊的末尾添加r個0,則其相對應的多項式為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)所對應的數據是在原數 據塊的末尾加上余式所對應的數據得到的。 (6) 發送T(x)所對應的數據。 (7) 設接收端接收到的數據對應的多項式為T’(x),將T’(x)除以G(x) ,若余式為0,則認為沒有錯誤,否則認為有錯
上傳時間: 2014-01-16
上傳用戶:hphh
displaytag的使用方法 首先當然是要下載它的jar包了,這里可以下載到最新的版本。將jar包放到WEB-INF的lib文件夾下。另外還需要兩個輔助包:apache的commons-lang和standard包
標簽: displaytag jar
上傳時間: 2014-01-22
上傳用戶:cc1
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.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
歡迎使用eWebSoft在線文本編輯器飛魚修改版 。 JSP+XML+BEAN 部署方式: 直接把壓縮目錄中的文件拷貝到您的網站發布目錄下即可。 修改: 一般來說,您只要修改/WEB-INF目錄下面的style.xml和button.xml就可以了。 應用:請參考index.jsp和submit.jsp。
上傳時間: 2013-12-26
上傳用戶:windwolf2000
一個學習MVC的很好的實例 此項目以JSP、servlet、JavaBean實現MVC三層架構,*僅供參考* 環境:eclipse_3.2、myeclipse_5.1、jdk_6.0、tomcat_5.5、數據庫sql server 2005 為方便調試,未設置默認首頁,請從bookworm.jsp登陸 數據庫端口、帳戶、密碼等可能有所不同,請到BookStore\WebRoot\WEB-INF下的 connection.xml文件中更改配置
上傳時間: 2014-11-26
上傳用戶:gonuiln
用游標的方法實現對稱差的計算,即 (A-B)+(B-A)
上傳時間: 2016-05-23
上傳用戶:遠遠ssad
詞法分析器 對輸入一個函數,并對其分析main() { int a,b a = 10 b = a + 20 }
上傳時間: 2013-12-20
上傳用戶:hfmm633
基因算法,用VC++或MATLAB,java等工具設計一程序計算任一個隨機產生的DNA基因表達式的有效長度和值 設隨機產生的基因表達式為: + Q - / b * b a Q b a a b a a b b a a a b
上傳時間: 2014-01-09
上傳用戶:aa54
函數再現機構設計 試設計一曲柄搖桿機構,再現函數 要求: 輸入構件的轉角范圍180°,輸出構件擺角范圍30°,即: 當輸入構件從a轉至a+90時,輸出構件從b轉至b+30 當輸入構件從a+90轉至a+180時,輸出構件從b+30轉至b
上傳時間: 2013-12-17
上傳用戶:英雄
用Itext生成Pdf格式文件。 1、新建一個Java工程 2、在工程下新建一個包smart.app.pdf 3、將Source下的所有類拷貝到新建的包smart.app.pdf里面 4、將Enviroument里面的ExportPDF.jar放到工程的WebRoot\WEB-INF\lib下 5、將JSP文件夾下的JSP頁面拷貝到工程的WebRoot下 6、運行工程就可以調用類CreatPdf.java就可生成pdf;
上傳時間: 2016-10-07
上傳用戶:R50974