n皇后問題求解(8<=n<=1000) a) 皇后個數的設定 在指定文本框內輸入皇后個數即可,注意: 皇后個數在8和1000 之間(包括8和1000) b) 求解 點擊<Solve>按鈕即可進行求解. c) 求解過程顯示 在標有Total Collision的靜態文本框中將輸出當前棋盤上的皇后總沖突數. 當沖突數降到0時,求解完畢. d) 求解結果顯示 程序可以圖形化顯示8<=n<=50的皇后求解結果. e) 退出程序,點擊<Exit>即可退出程序.
上傳時間: 2016-01-28
上傳用戶:ztj182002
文件名 :test3.c * 文件描述:預測分析法實現的語法分析器。分析如下文法: * E->E+T | E-T | T * T->T*F | T/F |F * F->(E) | i * 輸入:每行含一個表達式的文本文件(#號結束)。 * 輸出:分析成功或不成功信息。 * 創建人:余洪周 <nick19842000.cublog.cn> 2006-12-16 * 版本號:1.0 * 說明 :為了表示的方便采用了如下的所示表示方法: * A=E B=T * 非終結符:0=E 1=E 2=T 3=T 4=F * 終結符 :0=i 1=+ 2=- 3=* 4=/ 5=( 6=) 7=#
上傳時間: 2013-12-21
上傳用戶:cylnpy
Floyd-Warshall算法描述 1)適用范圍: a)APSP(All Pairs Shortest Paths) b)稠密圖效果最佳 c)邊權可正可負 2)算法描述: a)初始化:dis[u,v]=w[u,v] b)For k:=1 to n For i:=1 to n For j:=1 to n If dis[i,j]>dis[i,k]+dis[k,j] Then Dis[I,j]:=dis[I,k]+dis[k,j] c)算法結束:dis即為所有點對的最短路徑矩陣 3)算法小結:此算法簡單有效,由于三重循環結構緊湊,對于稠密圖,效率要高于執行|V|次Dijkstra算法。時間復雜度O(n^3)。 考慮下列變形:如(I,j)∈E則dis[I,j]初始為1,else初始為0,這樣的Floyd算法最后的最短路徑矩陣即成為一個判斷I,j是否有通路的矩陣。更簡單的,我們可以把dis設成boolean類型,則每次可以用“dis[I,j]:=dis[I,j]or(dis[I,k]and dis[k,j])”來代替算法描述中的藍色部分,可以更直觀地得到I,j的連通情況。
標簽: Floyd-Warshall Shortest Pairs Paths
上傳時間: 2013-12-01
上傳用戶:dyctj
//構造具有指定的標簽的菜單 files = new Menu("文件(F)") compile = new Menu("編輯(E)") see = new Menu("查看(V)") format = new Menu("格式(O)") font = new Menu("字體和顏色(F)...") //在格式菜單下再添加一個字體及顏色的菜單 help = new Menu("幫助(H)") //構造具有指定的標簽的菜單項 news = new MenuItem("新建(N)" + " " + "Ctrl+N") open = new MenuItem("打開(O)..." + " " + "Ctrl+O") save = new MenuItem("保存(S)" + " " + "Ctrl+S") other = new MenuItem("另存為(A)...") page = new MenuItem("頁面設置(U)...") mim = new MenuItem("打印(P)..." + " " + "Ctrl+P") quit = new MenuItem("退出(X)")
上傳時間: 2016-02-27
上傳用戶:小儒尼尼奧
Generate 100 samples of a zero-mean white noise sequence with variance , by using a uniform random number generator. a Compute the autocorrelation of for . b Compute the periodogram estimate and plot it. c Generate 10 different realizations of , and compute the corresponding sample autocorrelation sequences , and . Compute the average autocorrelation sequence as and the corresponding periodogram for . d Compute and plot the average periodogram using the Bartlett method. e Comment on the results in parts (a) through (d).
標簽: zero-mean Generate sequence variance
上傳時間: 2016-03-04
上傳用戶:朗朗乾坤
A Guide To Digital Design And Synthesis - 2Nd Ed 2003A Guide To Digital Design And Synthesis - 2Nd Ed 2003
標簽: Synthesis Digital Design Guide
上傳時間: 2016-03-04
上傳用戶:洛木卓
基于OFDM的無線寬帶系統仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator. Link-level simulator focus on a single-cell single-user scenario, where signal is transmitted from tx, and estimated at rx. Comparing the difference in tx/rx signal, the error rate can be found out. The output of the link-level simulator is the BLER/BER vs. SNR mapping table, that can be used for the system-level simulation. System-level simulator focus on a multi-cell multi-user scenario. For the sake of simplicity, it takes the mapping table aquired in the link-level simulation, measure the actural SNR, and finds the corresponding error rate.
標簽: simulator i.e. system-level link-level
上傳時間: 2016-03-15
上傳用戶:xsnjzljj
PHILIPS 7130 TV/FM capture card use PHILIPS 7130 chip , is a newly built-in TV card integrating FM radio and TV receiver. You can watch/record TV programs (up to 136 channels) and FM radio on PC. The powerful attached software enables you to & rename favorite channels as per your taste. Moreover, the remote controller makes watching TV through PC more convenient. Through PHILIPS 7130 TV/FM capture card, you can transfer & save the full screen/full motion video captured VCR, camcorder, PC camera or other video sources into hard disk, or you can burn the video to VCD/SVCD/DVD via professional rewrite software. PHILIPS 7130 TV/FM capture card supports snapshot, you can record wonderful clips to create your personal e-album, then share your works with your friends & family via Internet.
標簽: PHILIPS 7130 card integrating
上傳時間: 2013-12-26
上傳用戶:han_zh
This document is intended to serve as an introduction to Wavelet processing through a set of Matlab experiments. These experiments will gives an overview of three fundamental tasks in signal and image processing : signal, denoising and compression. These scripts are selfs contents (needed additional Matlab functions can be downloaded while reading the lectures). Each one of these five lectures should take between 1h and 2h in order to tests the various features of the scripts. One should copy/paste the provided code into a file names e.g. tp1.m, and launch the script directly from Matlab comand line > tp1 . Some of the scripts contains "holes" that you should try to fill on your own. I also provide the complete correction of these lectures as a set of Matlab scripts, but you should try as much as possible to avoid using them.
標簽: introduction processing document intended
上傳時間: 2016-03-22
上傳用戶:qlpqlq
This demonstration shows how a ZigBee coordinator can be set up. This demo allows the Demonstration Board (PICDEM Z or Explorer 16) to act as either a "Switching Load Controller" (e.g. a light) or a "Switching Remote Control" (e.g. a switch) as defined by the Home Controls, Lighting profile. It is designed to interact with a second Demonstration board programmed with the Demo RFD project
標簽: This demonstration Demonstratio coordinator
上傳時間: 2014-01-18
上傳用戶:dianxin61