課程設(shè)計(jì): 1.求出在一個(gè)n×n的棋盤上,放置n個(gè)不能互相捕捉的國際象棋“皇后”的所有布局。 2.設(shè)計(jì)一個(gè)利用哈夫曼算法的編碼和譯碼系統(tǒng),重復(fù)地顯示并處理以下項(xiàng)目,直到選擇退出為止。 【基本要求】 1) 將權(quán)值數(shù)據(jù)存放在數(shù)據(jù)文件(文件名為data.txt,位于執(zhí)行程序的當(dāng)前目錄中) 2) 分別采用動(dòng)態(tài)和靜態(tài)存儲(chǔ)結(jié)構(gòu) 3) 初始化:鍵盤輸入字符集大小n、n個(gè)字符和n個(gè)權(quán)值,建立哈夫曼樹; 4) 編碼:利用建好的哈夫曼樹生成哈夫曼編碼; 5) 輸出編碼; 6) 設(shè)字符集及頻度如下表: 字符 空格 A B C D E F G H I J K L M 頻度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 字符 N O P Q R S T U V W X Y Z 頻度 57 63 15 1 48 51 80 23 8 18 1 16 1
標(biāo)簽:
上傳時(shí)間: 2017-04-24
上傳用戶:zhyiroy
LINUX 全系列從安裝到架站管理教學(xué)文件 共197個(gè)教學(xué)文件,包含: linux 208招 Linux Kemel 核心 Linux X Window應(yīng)用問答 Linux 使用小技巧 Linux 指令大全 LINUX 文件系統(tǒng)介紹 Linux 系統(tǒng)設(shè)定 Linux 系統(tǒng)命令 Linux的安裝 Linux的快技法 Linux是什么 Linux常用軟體說明 Red Hat Linux SuSE Linux安裝 硬體Q&A 程式教學(xué)....
標(biāo)簽: Linux Window LINUX Kemel
上傳時(shí)間: 2017-04-27
上傳用戶:小碼農(nóng)lz
Each exploration in this book is a mixture of text and interactive exercises. The exercises are unlike anything you鈥檝e seen in other books. Instead of multiple choice, fill-in-the-blank, or simple Q&A exercises, lessons are interactive explorations of key C++ features.
標(biāo)簽: exercises exploration interactive mixture
上傳時(shí)間: 2017-05-14
上傳用戶:whenfly
手機(jī)網(wǎng)絡(luò)紙牌游戲,用戶名:mr 密碼:mrsoft。牌的大小按下列順序排列:A、K、Q、J、10、9、8、7、6、5、4、3、2。 1.出牌 (1)每輪只允許出一張牌。 (2)第一局游戲由得到梅花2的一方首先出牌,并且必須出梅花2。 (3)必須先出與首家相同花色的牌,無相同花色時(shí)方可用其它花色代替。 (4)最大方得到該輪的所有分牌,并獲得本輪先出牌的資格。 2.分值計(jì)算 紅桃:紅桃為分牌。
標(biāo)簽: 手機(jī)網(wǎng)絡(luò)
上傳時(shí)間: 2014-01-19
上傳用戶:笨小孩
Linux下編寫的一個(gè)表達(dá)式解析器可以計(jì)算= - * / 與或非運(yùn)算 經(jīng)過測(cè)試并帶有測(cè)試用例!供大家參考,Q Q 二八一七一五七九三
上傳時(shí)間: 2017-05-21
上傳用戶:亞亞娟娟123
matlab仿真程序,產(chǎn)生QPSK調(diào)制的信號(hào),嚴(yán)格按照QPSK的調(diào)制步驟分I路Q路產(chǎn)生信號(hào),最后兩路相加,產(chǎn)生已調(diào)信號(hào),調(diào)制信號(hào)隨機(jī)產(chǎn)生,載波信號(hào)是余弦信號(hào)。
上傳時(shí)間: 2014-01-27
上傳用戶:hfmm633
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設(shè)置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.\n") mvaddstr(17, 1, "Press q to quit.\n") refresh() wrefresh(win)
標(biāo)簽: EXIT_FAILURE initcurs initscr perror
上傳時(shí)間: 2013-12-20
上傳用戶:FreeSky
The code performs a number (ITERS) of iterations of the Bailey s 6-step FFT algorithm (following the ideas in the CMU Task parallel suite). 1.- Generates an input signal vector (dgen) with size n=n1xn2 stored in row major order In this code the size of the input signal is NN=NxN (n=NN, n1=n2=N) 2.- Transpose (tpose) A to have it stored in column major order 3.- Perform independent FFTs on the rows (cffts) 4.- Scale each element of the resulting array by a factor of w[n]**(p*q) 5.- Transpose (tpose) to prepair it for the next step 6.- Perform independent FFTs on the rows (cffts) 7.- Transpose the resulting matrix The code requires nested Parallelism.
標(biāo)簽: iterations performs Bailey number
上傳時(shí)間: 2014-01-05
上傳用戶:libenshu01
走馬燈(燈光變幻)程序 內(nèi)容:用DIP的8位開關(guān)控制走馬燈的花樣,用SW3控制走馬燈的起/停 運(yùn)行步驟:1.按下一次開關(guān)SW3,開始燈光變幻,再按下一次則停止 可重復(fù)進(jìn)行 * 2.按下SW3后,撥動(dòng)不同的數(shù)碼開關(guān)DIP,就會(huì)出現(xiàn)不同的燈光變幻 * 3.按下"q"或者"Q",退出
上傳時(shí)間: 2017-06-21
上傳用戶:yepeng139
蟻群算法的MATLAB程序,提供變量初始化 C=[1304 2312 3639 1315 4177 2244 3712 1399 3488 1535 3326 1556 3238 1229 4196 1004 4312 790 4386 570 3007 1970 2562 1756 2788 1491 2381 1676 1332 695 3715 1678 3918 2179 4061 2370 3780 2212 3676 2578 4029 2838 4263 2931 3429 1908 3507 2367 3394 2643 3439 3201 2935 3240 3140 3550 2545 2357 2778 2826 2370 2975] m=31 Alpha=1 Beta=5 Rho=0.9 Q=100 NC_max=200
上傳時(shí)間: 2017-07-08
上傳用戶:wangyi39
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1