程序用JAVA語(yǔ)言編寫(xiě), 綜合利用圖結(jié)構(gòu)和堆棧結(jié)構(gòu)進(jìn)行數(shù)據(jù)組織和處理. 可以進(jìn)行正則表達(dá)式到NFA的轉(zhuǎn)化, 并能用圖形直觀(guān)的表示. 對(duì)正則表達(dá)式有一些約定, 就是可以用單個(gè)字符表示輸入, 也可以用 ‘ ‘ 連接起來(lái)的一串字符進(jìn)行輸入. 有基本的表達(dá)式以及由基本表達(dá)式構(gòu)成的并置, 選擇和重復(fù)的操作. 例: A|b*c ‘letter’*’digit’ 等都是合法輸入. 還帶有括號(hào)功能, 優(yōu)先級(jí)
上傳時(shí)間: 2015-05-26
上傳用戶(hù):金宜
源代碼\用動(dòng)態(tài)規(guī)劃算法計(jì)算序列關(guān)系個(gè)數(shù) 用關(guān)系"<"和"="將3個(gè)數(shù)a,b,c依次序排列時(shí),有13種不同的序列關(guān)系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要將n個(gè)數(shù)依序列,設(shè)計(jì)一個(gè)動(dòng)態(tài)規(guī)劃算法,計(jì)算出有多少種不同的序列關(guān)系, 要求算法只占用O(n),只耗時(shí)O(n*n).
標(biāo)簽: lt 源代碼 動(dòng)態(tài)規(guī)劃 序列
上傳時(shí)間: 2013-12-26
上傳用戶(hù):siguazgb
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
標(biāo)簽: government streamline important alphabet
上傳時(shí)間: 2015-06-09
上傳用戶(hù):weixiao99
光學(xué)設(shè)計(jì)軟件zemax源碼: This DLL models an nular aspheric surface as described in: "Annular surfaces in annular field systems" By Jose M. Sasian Opt. eng. 36 (12) P 3401-3401 December 1997 This surface is essentially an odd aspheric surface with an offset in the aspheric terms. The sag is given by: Z = (c*r*r) / (1+(1-((1+k)*c*c*r*r))^ 1/2 ) + a*(r-q)^2 + b*(r-q)^3 + c*(r-q)^4 + ... Note the terms a, b, c, ... have units of length to the -1, -2, -3, ... power.
標(biāo)簽: described aspheric surfaces Annular
上傳時(shí)間: 2014-01-08
上傳用戶(hù):yyyyyyyyyy
該源碼是一個(gè)問(wèn)題的解決方法。問(wèn)題是給你個(gè)長(zhǎng)為L(zhǎng)的串,串中可以出現(xiàn)n種字符,還給出m個(gè)子串,求有多少個(gè)長(zhǎng)為n的只由這些字串組成的串。輸入例子:4 5 6 ABB BCA BCD CAB CDD DDA 結(jié)果為2.而5 4 5 E D C B A的結(jié)果為625
標(biāo)簽: 源碼
上傳時(shí)間: 2014-01-12
上傳用戶(hù):水中浮云
/*** *** *** *** *** *** *** *** *** *** *** *** **/ //**此映射表用來(lái)映射LED模塊不譯碼時(shí),顯示的字符和必須輸入的數(shù)據(jù)的關(guān)系 //**每段和對(duì)應(yīng)比特位的關(guān)系見(jiàn)示意圖 // g // --- --- // b | a |f | | <---顯示0時(shí)點(diǎn)亮的段為gfedcb // --- // c | |e | | 那么寫(xiě)入數(shù)據(jù)為0x7e // --- --- // d // bit: 7 6 5 4 3 2 1 0 // 段位: g f e d c b a
上傳時(shí)間: 2013-11-25
上傳用戶(hù):
求解方程式的根的算法,要求輸入a,b,c 3個(gè)數(shù)據(jù)的值,輸出結(jié)果將顯示在方框內(nèi)
上傳時(shí)間: 2015-10-31
上傳用戶(hù):gtf1207
Easy_Buy是一個(gè)在線(xiàn)銷(xiāo)售系統(tǒng),是一個(gè)B-C模式的電子商務(wù)系統(tǒng),由前臺(tái)的B/S模式購(gòu)物系統(tǒng)和后臺(tái)的C/S模式的管理系統(tǒng)兩部分組成。該電子商務(wù)系統(tǒng)可以實(shí)現(xiàn)會(huì)員注冊(cè)、瀏覽商品、查看商品詳細(xì)信息、選購(gòu)商品、取消訂單和查看訂單等功能。-
上傳時(shí)間: 2015-11-01
上傳用戶(hù):windwolf2000
電子商務(wù)系統(tǒng)Easy_Buy是一個(gè)在線(xiàn)銷(xiāo)售系統(tǒng),是一個(gè)B-C模式的電子商務(wù)系統(tǒng),由前臺(tái)的B/S模式購(gòu)物系統(tǒng)和后臺(tái)的C/S模式的管理系統(tǒng)兩部分組成。
標(biāo)簽: Easy_Buy 電子商務(wù)系統(tǒng) 銷(xiāo)售
上傳時(shí)間: 2013-12-28
上傳用戶(hù):181992417
一個(gè)能夠分析三種整數(shù)、標(biāo)識(shí)符、主要運(yùn)算符和主要關(guān)鍵字的詞法分析程序。 ㈠、基本要求: 標(biāo)識(shí)符 <字母>(<字母>|<數(shù)字字符>)* 十進(jìn)制整數(shù) 0 | (1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)* 八進(jìn)制整數(shù) 0(1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)* 十六進(jìn)制整數(shù) 0x(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)* 運(yùn)算符和分隔符 + - * / > < = ( ) ; 關(guān)鍵字 if then else while do ㈡、附加要求: 標(biāo)識(shí)符 <字母>(<字母>|<數(shù)字字符>)*(ε|_|.)(<字母>|<數(shù)字字符>)* 十進(jìn)制整數(shù) (0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*(ε|.)(0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)* 八進(jìn)制整數(shù) 0(1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)* (ε|.)(0|1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)* 十六進(jìn)制整數(shù) 0x(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)* (ε|.) (0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)*
上傳時(shí)間: 2016-03-03
上傳用戶(hù):zhengjian
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1