*--- --- --- --聲明--- --- --- -----*/ /* VC6.0下運(yùn)行通過 此程序?yàn)楸救丝嘈乃觯?qǐng)您在閱讀的時(shí)候,尊重本人的 勞動(dòng)。可以修改,但當(dāng)做的每一處矯正或改進(jìn)時(shí),請(qǐng)將改進(jìn) 方案,及修改部分發(fā)給本人 (修改部分請(qǐng)注名明:修改字樣) Email: jink2005@sina.com QQ: 272576320 ——初稿完成:06-5-27 jink2005 補(bǔ)充: 程序存在問題: (1) follow集不能處理:U->xVyVz的情況 (2) 因本人偷懶,本程序?yàn)榧尤胛姆ㄅ袛啵? 輸入的文法必須為L(zhǎng)L(1)文法 (3) 您可以幫忙擴(kuò)充:消除左遞歸,提取公因子等函數(shù) (4) …… */ /*-----------------------------------------------*/ /*參考書《計(jì)算機(jī)編譯原理——編譯程序構(gòu)造實(shí)踐》 LL(1)語法分析,例1: ERTWF# +*()i# 文法G[E]:(按此格式輸入) 1 E -> TR 2 R -> +TR 3 R -> 4 T -> FW 5 W -> * FW 6 W -> 7 F -> (E) 8 F -> i 分析例句:i*(i)# , i+i# 例2: 編譯書5.6例題1 SHMA# adbe# S->aH H->aMd H->d M->Ab M-> A->aM A->e 分析例句:aaabd# */
上傳時(shí)間: 2016-02-08
上傳用戶:ayfeixiao
一個(gè)基于數(shù)據(jù)挖掘的圖書智能銷售系統(tǒng),具有預(yù)測(cè)功能,同時(shí)能對(duì)客戶進(jìn)行數(shù)據(jù)挖掘分析。 .net平臺(tái),sql2005環(huán)境,必須安裝sql205 BI
標(biāo)簽: 數(shù)據(jù)挖掘 圖書 銷售
上傳時(shí)間: 2016-03-15
上傳用戶:Thuan
人工智能的一個(gè)工具軟件,較為經(jīng)典,BI常用的推薦工具
上傳時(shí)間: 2016-03-30
上傳用戶:四只眼
On-Line MCMC Bayesian Model Selection This demo demonstrates how to use the sequential Monte Carlo algorithm with reversible jump MCMC steps to perform model selection in neural networks. We treat both the model dimension (number of neurons) and model parameters as unknowns. The derivation and details are presented in: Christophe Andrieu, Nando de Freitas and Arnaud Doucet. Sequential Bayesian Estimation and Model Selection Applied to Neural Networks . Technical report CUED/F-INFENG/TR 341, Cambridge University Department of Engineering, June 1999. After downloading the file, type "tar -xf version2.tar" to uncompress it. This creates the directory version2 containing the required m files. Go to this directory, load matlab5 and type "smcdemo1". In the header of the demo file, one can select to monitor the simulation progress (with par.doPlot=1) and modify the simulation parameters.
標(biāo)簽: demonstrates sequential Selection Bayesian
上傳時(shí)間: 2016-04-07
上傳用戶:lindor
This demo nstrates how to use the sequential Monte Carlo algorithm with reversible jump MCMC steps to perform model selection in neural networks. We treat both the model dimension (number of neurons) and model parameters as unknowns. The derivation and details are presented in: Christophe Andrieu, Nando de Freitas and Arnaud Doucet. Sequential Bayesian Estimation and Model Selection Applied to Neural Networks . Technical report CUED/F-INFENG/TR 341, Cambridge University Department of Engineering, June 1999. After downloading the file, type "tar -xf version2.tar" to uncompress it. This creates the directory version2 containing the required m files. Go to this directory, load matlab5 and type "smcdemo1". In the header of the demo file, one can select to monitor the simulation progress (with par.doPlot=1) and modify the simulation parameters.
標(biāo)簽: sequential reversible algorithm nstrates
上傳時(shí)間: 2014-01-18
上傳用戶:康郎
This demo nstrates the use of the reversible jump MCMC algorithm for neural networks. It uses a hierarchical full Bayesian model for neural networks. This model treats the model dimension (number of neurons), model parameters, regularisation parameters and noise parameters as random variables that need to be estimated. The derivations and proof of geometric convergence are presented, in detail, in: Christophe Andrieu, Nando de Freitas and Arnaud Doucet. Robust Full Bayesian Learning for Neural Networks. Technical report CUED/F-INFENG/TR 343, Cambridge University Department of Engineering, May 1999. After downloading the file, type "tar -xf rjMCMC.tar" to uncompress it. This creates the directory rjMCMC containing the required m files. Go to this directory, load matlab5 and type "rjdemo1". In the header of the demo file, one can select to monitor the simulation progress (with par.doPlot=1) and modify the simulation parameters.
標(biāo)簽: reversible algorithm the nstrates
上傳時(shí)間: 2014-01-08
上傳用戶:cuibaigao
The algorithms are coded in a way that makes it trivial to apply them to other problems. Several generic routines for resampling are provided. The derivation and details are presented in: Rudolph van der Merwe, Arnaud Doucet, Nando de Freitas and Eric Wan. The Unscented Particle Filter. Technical report CUED/F-INFENG/TR 380, Cambridge University Department of Engineering, May 2000. After downloading the file, type "tar -xf upf_demos.tar" to uncompress it. This creates the directory webalgorithm containing the required m files. Go to this directory, load matlab5 and type "demo_MC" for the demo.
標(biāo)簽: algorithms problems Several trivial
上傳時(shí)間: 2014-01-20
上傳用戶:royzhangsz
復(fù)數(shù)計(jì)算器:1、設(shè)計(jì)的任務(wù)要求 (1) 所設(shè)計(jì)的復(fù)數(shù)計(jì)算器可以進(jìn)行+、-、*、+=、-=、*=、++、--、>=、<=、==、!=運(yùn)算符,其中,>=、<=是針對(duì)復(fù)數(shù)的模進(jìn)行計(jì)算。 (2) 設(shè)計(jì)輸入重載函數(shù),要求能接收從鍵盤輸入a+bi形式的復(fù)數(shù),在程序中可以識(shí)別出實(shí)部虛部并正確賦值。 (3) 設(shè)計(jì)計(jì)算器測(cè)試程序,對(duì)加減法進(jìn)行測(cè)試,要求在兩位數(shù)以內(nèi)進(jìn)行,對(duì)乘法進(jìn)行測(cè)試,乘法要求為一位數(shù)的計(jì)算。
標(biāo)簽: 計(jì)算器 gt lt 運(yùn)算符
上傳時(shí)間: 2016-04-28
上傳用戶:chenjjer
本實(shí)訓(xùn)是有關(guān)線性表的順序存儲(chǔ)結(jié)構(gòu)的應(yīng)用,在本實(shí)訓(xùn)的實(shí)例程序中,通過C語言中提供的數(shù)組來存儲(chǔ)兩個(gè)已知的線性表,然后利用數(shù)組元素的下標(biāo)來對(duì)線性表進(jìn)行比較。通過對(duì)本實(shí)訓(xùn)的學(xué)習(xí),可以理解線性表在順序存儲(chǔ)結(jié)構(gòu)下的操作方法。 在實(shí)訓(xùn)中,我們?cè)O(shè)A=(a1,a2,…,an)和B=(b1,b2,…,bm)是兩個(gè)線性表,其數(shù)據(jù)元素的類型是整型。若n=m,且ai=bi,則稱A=B 若ai=bi,而aj<bj,則稱A<B;除此以外,均稱A>B。設(shè)計(jì)一比較大小的程序。
上傳時(shí)間: 2014-01-14
上傳用戶:www240697738
看n2實(shí)例 #Create a simulator object set ns [new Simulator] #Define different colors for data flows #$ns color 1 Blue #$ns color 2 Red #Open the nam trace file set nf [open out-1.nam w] $ns namtrace-all $nf set f0 [open out0.tr w] set f1 [open out1.tr w] #Define a finish procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms
標(biāo)簽: simulator Simulator different Create
上傳時(shí)間: 2016-07-02
上傳用戶:wfl_yy
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1