課程設計: 1.求出在一個n×n的棋盤上,放置n個不能互相捕捉的國際象棋“皇后”的所有布局。 2.設計一個利用哈夫曼算法的編碼和譯碼系統,重復地顯示并處理以下項目,直到選擇退出為止。 【基本要求】 1) 將權值數據存放在數據文件(文件名為data.txt,位于執行程序的當前目錄中) 2) 分別采用動態和靜態存儲結構 3) 初始化:鍵盤輸入字符集大小n、n個字符和n個權值,建立哈夫曼樹; 4) 編碼:利用建好的哈夫曼樹生成哈夫曼編碼; 5) 輸出編碼; 6) 設字符集及頻度如下表: 字符 空格 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
標簽:
上傳時間: 2017-04-24
上傳用戶:zhyiroy
This is a Flex UIComponent that can be used 謀n a FLEX 3 mxml application as component written in action script 3.0, provides you to create items that cab be filled from an XML or Query ResultSet or etc. and is viewed in a container that can preview images and additional info like a store item and can be added to shopp謀ng chart , and also can be deleted from that shopp謀ng chart
標簽: UIComponent application component written
上傳時間: 2013-12-09
上傳用戶:dapangxie
LINUX 全系列從安裝到架站管理教學文件 共197個教學文件,包含: linux 208招 Linux Kemel 核心 Linux X Window應用問答 Linux 使用小技巧 Linux 指令大全 LINUX 文件系統介紹 Linux 系統設定 Linux 系統命令 Linux的安裝 Linux的快技法 Linux是什么 Linux常用軟體說明 Red Hat Linux SuSE Linux安裝 硬體Q&A 程式教學....
上傳時間: 2017-04-27
上傳用戶:小碼農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.
標簽: exercises exploration interactive mixture
上傳時間: 2017-05-14
上傳用戶:whenfly
手機網絡紙牌游戲,用戶名:mr 密碼:mrsoft。牌的大小按下列順序排列:A、K、Q、J、10、9、8、7、6、5、4、3、2。 1.出牌 (1)每輪只允許出一張牌。 (2)第一局游戲由得到梅花2的一方首先出牌,并且必須出梅花2。 (3)必須先出與首家相同花色的牌,無相同花色時方可用其它花色代替。 (4)最大方得到該輪的所有分牌,并獲得本輪先出牌的資格。 2.分值計算 紅桃:紅桃為分牌。
標簽: 手機網絡
上傳時間: 2014-01-19
上傳用戶:笨小孩
Linux下編寫的一個表達式解析器可以計算= - * / 與或非運算 經過測試并帶有測試用例!供大家參考,Q Q 二八一七一五七九三
上傳時間: 2017-05-21
上傳用戶:亞亞娟娟123
matlab仿真程序,產生QPSK調制的信號,嚴格按照QPSK的調制步驟分I路Q路產生信號,最后兩路相加,產生已調信號,調制信號隨機產生,載波信號是余弦信號。
上傳時間: 2014-01-27
上傳用戶:hfmm633
二元搜尋樹簡單易懂,不過有一個問題:它並非平衡樹。本章將介紹平衡的 AVL 搜尋樹,討論它的資料結構、函式,並設計程式使用它。
標簽: 二元
上傳時間: 2017-05-30
上傳用戶:yzy6007
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設置模式 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)
標簽: EXIT_FAILURE initcurs initscr perror
上傳時間: 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.
標簽: iterations performs Bailey number
上傳時間: 2014-01-05
上傳用戶:libenshu01