源代碼\用動態規劃算法計算序列關系個數 用關系"<"和"="將3個數a,b,c依次序排列時,有13種不同的序列關系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要將n個數依序列,設計一個動態規劃算法,計算出有多少種不同的序列關系, 要求算法只占用O(n),只耗時O(n*n).
上傳時間: 2013-12-26
上傳用戶:siguazgb
c語言版的多項式曲線擬合。 用最小二乘法進行曲線擬合. 用p-1 次多項式進行擬合,p<= 10 x,y 的第0個域x[0],y[0],沒有用,有效數據從x[1],y[1] 開始 nNodeNum,有效數據節點的個數。 b,為輸出的多項式系數,b[i] 為b[i-1]次項。b[0],沒有用。 b,有10個元素ok。
上傳時間: 2014-01-12
上傳用戶:變形金剛
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-11-28
上傳用戶:宋桃子
我上傳的文件開發環境都是ADS 1.2 ARM網絡開發程序包,內有pdf說明文件。 ZLG/IP提供實現 Internet 網絡上 IP接點的功能,是個高性能的嵌入式 TCP/IP 協議棧軟件。它使用μC/OS-II 實時操作系統的信號機制來實現一個多任務并行并可重入的協議棧,完全使用 ANSI C 進行編寫,可以象μC/OS-II 那樣支持多種 CPU。ZLG/IP還具有層次清晰,易于升級和修改等特點
上傳時間: 2014-11-18
上傳用戶:refent
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
Note that only the PORT is provided and it is assumed that you have the rest of the source for µ C/OS-II from the book or the upgrade.
上傳時間: 2013-11-25
上傳用戶:er1219
This book is intended for embedded system programmers, consultants and students interested in real-time operating systems. μC/OS-II is a high performance, deterministic real-time kernel and can be embedded in commercial products (see Appendix F, Licensing). Instead of writing your own kernel, you should consider μC/OS-II. You will find, as I did, that writing a kernel is not as easy as it first looks.
標簽: consultants programmers interested intended
上傳時間: 2015-11-06
上傳用戶:l254587896
本課題的目的就是研制適用于工業現場控制的嵌入式工業控制器,這對于提 高工業現場控制的實時性具有重要意義。本課題以嵌入式系統設計原理和工業控 制實際應用為核心,從理論上和技術方法上開展了一系列研究。主要工作有: 1全面系統地概述了嵌入式系統的發展過程和分類,及其在各個領域 內的應用,以及嵌入式系統的發展方向 2基于嵌入式系統設計原理的嵌入式工業控制器的設計的總體方案, 從硬件和軟件兩個方面講述了嵌入式工業控制器的設計思想和方 法,及其可行性的論證 3嵌入式工業控制器硬件平臺的設計與調試,著重敘述了硬件平臺的 整體設計方案,包括各個設計模塊的選型與接口電路的設計 4嵌入式工業控制器所采用的操作系統的移植與調試,詳細講敘了 u C/OS-II實時操作系統在基于AT9I M40800的嵌入式工業控制器 硬件平臺上的移植過程及注意事項 5在后繼的工作中,我們還要在實時嵌入式操作系統的基礎上完成對 操作系統的擴展以及對各個模塊的驅動。
上傳時間: 2015-12-05
上傳用戶:kikye
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
『embedded systems building blocks, complete and ready-to-use modules in C, second edition』 - This second edition features revisions that support the latest version of the author s popular operating system and book, MicroC/OS-II - Complete and ready-to-use modules in C Get a clear explanation of functional code modules and microcontroller theory
標簽: ready-to-use embedded building complete
上傳時間: 2014-12-04
上傳用戶:阿四AIR