有n個選手 P 1 ,P 2 ,P 3 ,… ,P n 參加了的單循環賽,每對選手之間非勝即負。現要求求出一個選手序列 P 1 ,P 2 ,P 3 ,… ,P n , 使其滿足 P i 勝 P i+ 1 (i=1,… ,n-1) 。
標簽: 循環
上傳時間: 2014-11-07
上傳用戶:caozhizhi
有限元素求和 給定具有n個不同元素的整數集合A和另一個整數值M,問,可否從A中取最多k次元素(所取元素可以相同),使得所取的元素和為M。 例如,從n=3個元素的集合A={1, 4, 6}中取最多 k=3次,使 M=13 。可以取 1+6+6=13,若m=6,則可以直接取6 或者 1+1+4。 若可以,則輸出 yes,否則,輸出no.
上傳時間: 2017-02-28
上傳用戶:3到15
【問題描述】 設計一個利用哈夫曼算法的編碼和譯碼系統,重復地顯示并處理以下項目,直到選擇退出為止。 【基本要求】 (1)初始化:鍵盤輸入字符集大小n、n個字符和n個權值,建立哈夫曼樹; (2)編碼:利用建好的哈夫曼樹生成哈夫曼編碼; (3)輸出編碼; (4)設字符集及頻度如下表: 字符:A B C D E F 頻度:4 9 23 2 17 15 字符:G H I J K 頻度:1 2 3 3 4
上傳時間: 2017-03-07
上傳用戶:qwe1234
單片機I@C程序庫,很容易移槙,我已用過N多次,很好用
上傳時間: 2013-12-18
上傳用戶:xiaoxiang
用Java/C#開發手機程序及移動應用光盤代碼。J2ME核心類及MIDlet類;基于Java開發MIDlet程序;圖形處理及低級事件處理;多線程編程;即時消息傳送;I/O及網絡編程;數據庫編程;多媒體編程及游戲編程;基于C#開發ASP.NET移動控件以及適應不同設備的WAP應用;WebService及移動應用,包括:日程、天氣、股票、地圖、短信、IP等;其他高級編程技術應用等。
上傳時間: 2017-03-15
上傳用戶:dengzb84
Measuring Frequency Content in Signals I this section we will study some non parametric methods for spectrum estimation of a stochastic process. These methods are described in the literature. All methods are based on the Periodogram which is defined for a sequence x[n] with length N according to
標簽: parametric Measuring Frequency Content
上傳時間: 2017-03-20
上傳用戶:秦莞爾w
UART library for x51, can be used with any c cross compiler and can be used for X51 uC. I had used keil.
上傳時間: 2014-01-23
上傳用戶:yiwen213
進程間通信14 說明了進程控制原語并且觀察了如何調用多個進程。但是這些進程之間交換信息的 唯一方法是經由f o r k或e x e c傳送打開文件,或通過文件系統。本章將說明進程之間相互通信的 其他技術—I P C(InterProcess Communication)。
上傳時間: 2013-12-03
上傳用戶:zhenyushaw
procedure senddata var i:integer commflg : Boolean begin commflg:=true for i:=1 to 8 do begin if not fcomm comml writecommdata(sendbutter,i) then begin Commflg=false break end end end (4) 接收數據 在編寫基于串口的計算機工業測控時,通常需要由下位機向PC機發送數據以使PC機了解系統的測試數據或下位機的運行狀態,并進而控制下位機的行為。利用Spcomm串口控件接收下位機發送的數據信息的示例代碼如下: //事件驅動方式接收數據程序 procedure TForm1.CommlReceiveData(Sender:Tobject Buffer:Pointer bufferLength:Word) var receivedata:array of byte begin sleep(100) //等待100ms,保證接收到所有數據 move(buffef ,receivedata,bufferlength) //將接收緩存區中的數據轉移到數組中 …… end (5) 關閉串口 在系統開發中,應注意在不使用串口時應及時關閉串口,釋放系統資源,否則可能會影響系統的其它應用。關閉串口的代碼如下: procedure TForm1.FormClose ( Sender TObj ect:var Action:TCIoseAction ) begin comml.StopComm end
標簽: commflg procedure senddata integer
上傳時間: 2014-01-26
上傳用戶:懶龍1988
I was trying to develope a programme to make a slide show of all the pictures of a folder using vb.net. I have spent lot of time in net for searching this but all in vain, I didn t get a simple programme to solve the same and lastly I gave myself a try for the same and developed the code, I have used there a folderbrowserdialogue and a timer with a picture box control and in coding I have used IO name spaces to get the pathe and folder info here is the code. Enjoy Subhankar
標簽: programme develope pictures trying
上傳時間: 2017-04-24
上傳用戶:a3318966