網(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
多對(duì)象的旋轉(zhuǎn),實(shí)現(xiàn)用戶自定義輸入各個(gè)點(diǎn)的位置,并可以自己修改運(yùn)動(dòng)速度,軌跡A,B,C的徑長(zhǎng)。
上傳時(shí)間: 2015-05-14
上傳用戶:Pzj
數(shù)字運(yùn)算,判斷一個(gè)數(shù)是否接近素?cái)?shù) A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上傳時(shí)間: 2015-05-21
上傳用戶:daguda
程序用JAVA語(yǔ)言編寫(xiě), 綜合利用圖結(jié)構(gòu)和堆棧結(jié)構(gòu)進(jìn)行數(shù)據(jù)組織和處理. 可以進(jìn)行正則表達(dá)式到NFA的轉(zhuǎ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
上傳用戶:金宜
LCS(最長(zhǎng)公共子序列)問(wèn)題可以簡(jiǎn)單地描述如下: 一個(gè)給定序列的子序列是在該序列中刪去若干元素后得到的序列。給定兩個(gè)序列X和Y,當(dāng)另一序列Z既是X的子序列又是Y的子序列時(shí),稱Z是序列X和Y的公共子序列。例如,若X={A,B,C,B,D,B,A},Y={B,D,C,A,B,A},則序列{B,C,A}是X和Y的一個(gè)公共子序列,但它不是X和Y的一個(gè)最長(zhǎng)公共子序列。序列{B,C,B,A}也是X和Y的一個(gè)公共子序列,它的長(zhǎng)度為4,而且它是X和Y的一個(gè)最長(zhǎng)公共子序列,因?yàn)閄和Y沒(méi)有長(zhǎng)度大于4的公共子序列。 最長(zhǎng)公共子序列問(wèn)題就是給定兩個(gè)序列X={x1,x2,...xm}和Y={y1,y2,...yn},找出X和Y的一個(gè)最長(zhǎng)公共子序列。對(duì)于這個(gè)問(wèn)題比較容易想到的算法是窮舉,對(duì)X的所有子序列,檢查它是否也是Y的子序列,從而確定它是否為X和Y的公共子序列,并且在檢查過(guò)程中記錄最長(zhǎng)的公共子序列。X的所有子序列都檢查過(guò)后即可求出X和Y的最長(zhǎng)公共子序列。X的每個(gè)子序列相應(yīng)于下標(biāo)集{1,2,...,m}的一個(gè)子集。因此,共有2^m個(gè)不同子序列,從而窮舉搜索法需要指數(shù)時(shí)間。
上傳時(shí)間: 2015-06-09
上傳用戶:氣溫達(dá)上千萬(wàn)的
本書(shū)第二部分講述的是在Wi n 3 2平臺(tái)上的Wi n s o c k編程。對(duì)于眾多的基層網(wǎng)絡(luò)協(xié)議, Wi n s o c k是訪問(wèn)它們的首選接口。而且在每個(gè)Wi n 3 2平臺(tái)上,Wi n s o c k都以不同的形式存在著。 Wi n s o c k是網(wǎng)絡(luò)編程接口,而不是協(xié)議。它從U n i x平臺(tái)的B e r k e l e y(B S D)套接字方案借鑒了 許多東西,后者能訪問(wèn)多種網(wǎng)絡(luò)協(xié)議。在Wi n 3 2環(huán)境中,Wi n s o c k接口最終成為一個(gè)真正的 “與協(xié)議無(wú)關(guān)”接口,尤其是在Winsock 2發(fā)布之后。
標(biāo)簽: 分 編程 網(wǎng)絡(luò)協(xié)議
上傳時(shí)間: 2015-07-08
上傳用戶:thinode
光學(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問(wèn)題描述: 設(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的長(zhǎng)度k1,k2; ③i賦為b中的最低位; ④從b中取出第i位與a相乘,累加到另一數(shù)組c中;(注意:累加時(shí)錯(cuò)開(kāi)的位數(shù)應(yīng)是多少位 ?) ⑤i:=i-1;檢測(cè)i值:小于k2則轉(zhuǎn)⑥,否則轉(zhuǎn)④ ⑥打印結(jié)果
上傳時(shí)間: 2015-08-16
上傳用戶:源弋弋
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1