prolog 找路例子程序: === === === === === === Part 1-Adding connections Part 2-Simple Path example | ?- path1(a,b,P,T). will produce the response: T = 15 P = [a,b] ? Part 3 - Non-repeating path As an example, the query: ?- path2(a,h,P,T). will succeed and may produce the bindings: P = [a,depot,b,d,e,f,h] T = 155 Part 4 - Generating a path below a cost threshold As an example, the query: ?- path_below_cost(a,[a,b,c,d,e,f,g,h],RS,300). returns: RS = [a,b,depot,c,d,e,g,f,h] ? RS = [a,c,depot,b,d,e,g,f,h] ? no ==================================
標(biāo)簽: Part connections example prolog
上傳時(shí)間: 2015-04-24
上傳用戶:ljt101007
網(wǎng)關(guān)模擬實(shí)驗(yàn),輸入ip,判斷何a.b.c類網(wǎng)關(guān)。并加以修改。
標(biāo)簽: 網(wǎng)關(guān) 模擬實(shí)驗(yàn)
上傳時(shí)間: 2013-12-17
上傳用戶:thuyenvinh
多對象的旋轉(zhuǎn),實(shí)現(xiàn)用戶自定義輸入各個(gè)點(diǎn)的位置,并可以自己修改運(yùn)動(dòng)速度,軌跡A,B,C的徑長。
上傳時(shí)間: 2015-05-14
上傳用戶:Pzj
程序用JAVA語言編寫, 綜合利用圖結(jié)構(gòu)和堆棧結(jié)構(gòu)進(jìn)行數(shù)據(jù)組織和處理. 可以進(jìn)行正則表達(dá)式到NFA的轉(zhuǎn)化, 并能用圖形直觀的表示. 對正則表達(dá)式有一些約定, 就是可以用單個(gè)字符表示輸入, 也可以用 ‘ ‘ 連接起來的一串字符進(jìn)行輸入. 有基本的表達(dá)式以及由基本表達(dá)式構(gòu)成的并置, 選擇和重復(fù)的操作. 例: A|b*c ‘letter’*’digit’ 等都是合法輸入. 還帶有括號功能, 優(yōu)先級
上傳時(shí)間: 2015-05-26
上傳用戶:金宜
光學(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
上傳用戶:yyyyyyyyyy
1問題描述: 設(shè)計(jì)一個(gè)實(shí)現(xiàn)稀疏多項(xiàng)式乘法的程序 2需求分析: 編程實(shí)現(xiàn)兩個(gè)一元多項(xiàng)式相乘,要求: 2.1輸入并建立多項(xiàng)式; 2.2輸出多項(xiàng)式,輸出形式為整數(shù)序列:n,c1,e1,c2,e2``````,cn.,en,其中n是多項(xiàng)式的系數(shù),ci和ei分別是第i項(xiàng)的系數(shù)和指數(shù),序列按指數(shù)降序排列。 2.3多項(xiàng)式a和b相乘,建立結(jié)果多項(xiàng)式a*b
標(biāo)簽: 多項(xiàng)式 稀疏 乘法 分
上傳時(shí)間: 2015-08-15
上傳用戶:zhangliming420
計(jì)算機(jī)圖論基礎(chǔ),求解關(guān)聯(lián)矩陣A B Q 是《網(wǎng)絡(luò)理論》課程作業(yè)
標(biāo)簽: 計(jì)算機(jī) 圖論
上傳時(shí)間: 2014-10-13
上傳用戶:bcjtao
高精度乘法基本思想和加法一樣。其基本流程如下: ①讀入被乘數(shù)s1,乘數(shù)s2 ②把s1、s2分成4位一段,轉(zhuǎn)成數(shù)值存在數(shù)組a,b中;記下a,b的長度k1,k2; ③i賦為b中的最低位; ④從b中取出第i位與a相乘,累加到另一數(shù)組c中;(注意:累加時(shí)錯(cuò)開的位數(shù)應(yīng)是多少位 ?) ⑤i:=i-1;檢測i值:小于k2則轉(zhuǎn)⑥,否則轉(zhuǎn)④ ⑥打印結(jié)果
上傳時(shí)間: 2015-08-16
上傳用戶:源弋弋
/* * EULER S ALGORITHM 5.1 * * TO APPROXIMATE THE SOLUTION OF THE INITIAL VALUE PROBLEM: * Y = F(T,Y), A<=T<=B, Y(A) = ALPHA, * AT N+1 EQUALLY SPACED POINTS IN THE INTERVAL [A,B]. * * INPUT: ENDPOINTS A,B INITIAL CONDITION ALPHA INTEGER N. * * OUTPUT: APPROXIMATION W TO Y AT THE (N+1) VALUES OF T. */
標(biāo)簽: APPROXIMATE ALGORITHM THE SOLUTION
上傳時(shí)間: 2015-08-20
上傳用戶:zhangliming420
逆向工程的秘密,是書后附錄a,b,c1,c2 的翻譯,主要介紹如何從匯編代碼中獲得有用的信息
標(biāo)簽: 逆向工程
上傳時(shí)間: 2013-12-18
上傳用戶:hanli8870
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1