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
分而治之方法還可以用于實(shí)現(xiàn)另一種完全不同的排序方法,這種排序法稱為快速排序(quick sort)。在這種方法中, n 個(gè)元素被分成三段(組):左段l e f t,右段r i g h t和中段m i d d l e。中段僅包含一個(gè)元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以獨(dú)立排序,并且不必對(duì)l e f t和r i g h t的排序結(jié)果進(jìn)行合并。m i d d l e中的元素被稱為支點(diǎn)( p i v o t )。圖1 4 - 9中給出了快速排序的偽代碼
上傳時(shí)間: 2015-04-27
上傳用戶:kristycreasy
用匯編語(yǔ)言編寫(xiě)的一個(gè)簡(jiǎn)單的學(xué)生成績(jī)管理系統(tǒng),用戶有6種選擇: (1) 按’m’,則顯示功能菜單。 (2) 按’L’,則顯示學(xué)生姓名和各學(xué)科成績(jī)(數(shù)學(xué),英語(yǔ),語(yǔ)文)。每次顯示10條記錄并暫停,按’g’繼續(xù)顯示余下記錄。 (3) 按’I’,則可按格式插入記錄到規(guī)定文件中。 (4) 按’M’,則可按格式修改記錄。 (5) 按’D’,輸入行數(shù),清空該行指定的記錄。 (6) 按’Q’,按格式輸入學(xué)生姓名進(jìn)行查詢,列出該生的成績(jī)記錄。 (7) 按’E’,則退出程序。
標(biāo)簽: 匯編語(yǔ)言 編寫(xiě) 管理系統(tǒng)
上傳時(shí)間: 2013-12-24
上傳用戶:gououo
DELPHI basicCtrl+NUM 直接將光標(biāo)跳到NUM處,NUM是用Ctrl+Shift+NUM設(shè)置的標(biāo)號(hào)。 NUM不能用小鍵盤(pán)。 Ctrl+Home 將光標(biāo)移至文件頭。 Ctrl+End 將光標(biāo)移至文件尾。 Ctrl+B Buffer List窗口。 Ctrl+I 同Tab鍵。 Ctrl+M 同Enter鍵。 Ctrl+N 同Enter鍵,但光標(biāo)位置保持不變。 Ctrl+T 刪除光標(biāo)右邊的一個(gè)單詞。 Ctrl+Y 刪除光標(biāo)所在行。 Ctrl+Shift+↑ 光標(biāo)在函數(shù)體內(nèi)時(shí),將光標(biāo)快速移至當(dāng)前函數(shù)聲明處。 Ctrl+Shift+↓ 光標(biāo)在函數(shù)聲明行時(shí),將光標(biāo)快速移至函數(shù)定義處。 Ctrl+Shift+C 聲明一個(gè)過(guò)程或函數(shù)后,直接生成過(guò)程或函數(shù)的名稱、begin、end Ctrl+Shift+E 光標(biāo)在Edit窗口和Explorer窗口間切換。 Ctrl+Shift+G 插入GUID。 Ctrl+Shift+J 彈出Delphi語(yǔ)句提示窗口,選擇所需語(yǔ)句將自動(dòng)完成一條語(yǔ)句。 Ctrl+Shift+T 在光標(biāo)行加入To-Do注釋。 Ctrl+Shift+Y 刪除光標(biāo)之后至本行末尾之間的文本。 Ctrl+F3 Call Stack窗口。 Ctrl+F4 等于File菜單中的Close項(xiàng)。
標(biāo)簽: basicCtrl NUM DELPHI 光標(biāo)
上傳時(shí)間: 2014-11-26
上傳用戶:kr770906
This is an example how one could hide a process on Windows based operation systems from task viewers like ProcDump (G-RoM, Lorian & Stone) or ProcessExplorer (SysInternals). It could e.g. be used as some kind of dump protection. The way to get this done is very different on NT and 9x machines.
標(biāo)簽: operation Windows example process
上傳時(shí)間: 2013-12-17
上傳用戶:wang0123456789
從空格(ASCII碼32)到~(ASCII碼126)。表內(nèi)的第一行與表頭相同,下面的每一行都與上一行的內(nèi)容相同,只是字符相左移動(dòng)了一個(gè)位置。這樣,下一行的最后一個(gè)字符與上一行的第一個(gè)字符相同。 為了進(jìn)行文本編碼,可以任意選擇一個(gè)字符串,稱之為編碼字符串,也就是常說(shuō)的密鑰。為解釋編碼方法,我們假設(shè)密鑰是Walrus,待編碼的文本(即常說(shuō)的明文)是: Meet me in St. Louis 我們?cè)诖幋a的文本之上重復(fù)書(shū)寫(xiě)上述密鑰,使得其長(zhǎng)度與待編碼文本相同: WalrusWalrusWalrusWa Meet me in St. Louis 從上述兩行文本中按列對(duì)應(yīng)方式依次提取一個(gè)字符,可得到多個(gè)字符對(duì):WM、ae、le等,這些字符對(duì)可用作上表的索引。這樣,依次以這些字符對(duì)作為索引可從上表查到一系列字符,這些字符就構(gòu)成了文本編碼,即常說(shuō)的密文。例如,第W行第M列隊(duì)?wèi)?yīng)得字符是%,因此編碼的第一個(gè)字符就是%;第a行第e列對(duì)應(yīng)的字符是G;第l行第e列對(duì)應(yīng)的是R。依次進(jìn)行上述查找操作,可以得到完整的密文 %Grgua=aVauGLol?eiAU 進(jìn)行相反的操作就可對(duì)該文本解碼。 編寫(xiě)編碼/解碼程序,可以對(duì)文本文件或鍵盤(pán)輸入的字符串進(jìn)行編碼/解碼,在選擇編碼解碼后,需要提示用戶輸入密鑰。
上傳時(shí)間: 2014-01-16
上傳用戶:Ants
ICTCLAS的JNI調(diào)用接口文件: Title:ICTCLAS Caller * <p>Description:do chinese word segmentation.don t change the pakage and CLASS name, orelse you can t use it. * 請(qǐng)不要改變包名、類名以及native的方法名,否則調(diào)用將失效。 * 由于ICTCLAS本身存在很多魯棒性問(wèn)題,調(diào)用segSentence時(shí),string參數(shù)請(qǐng)保證不要過(guò)長(zhǎng)或帶有亂碼。調(diào)用次數(shù)過(guò)多(如處理幾十G的數(shù)據(jù))會(huì)有可能造成內(nèi)存溢出。 * 故基本只能用于較小規(guī)模數(shù)據(jù)(相對(duì)幾十G來(lái)說(shuō))。 * 請(qǐng)運(yùn)行時(shí)設(shè)置jvm足夠的堆棧空間。
標(biāo)簽: ICTCLAS segmentation Description chinese
上傳時(shí)間: 2014-01-25
上傳用戶:it男一枚
自制51編程器 I have build my own programmer. This device can program the AT89C51 and works with it. So it can easily be adapted to programming other devices by itself. The Atmel Flash devices are ideal for developing, since they can be reprogrammed easy, often and fast. You need only 1 or 2 devices in low cost plastic case for developing. In contrast you need 10 or more high cost windowed devices if you must develop with EPROM devices (e.g. Phillips 87C751).
標(biāo)簽: programmer program device build
上傳時(shí)間: 2015-05-11
上傳用戶:sdq_123
he LPC932 can be used to create a Pulse Width Modulated PWM signal. That s an analog signal, with only 2 discrete levels, for example 0V and 5V and a constant period. The current value of this signal at a certain poiTnt of time is proportional to its Duty Cycle. That s the High Time during one period divided by the period. It can also be calculated as the average value during a particular period. That means after low pass filtering, (e.g. RC circuit) the signal becomes analog, with an actual value controlled by the microcontroller. The PWM functionality enables the LPC932 to control for example the speed of DC motors or the brightness of electric lighting.
標(biāo)簽: signal Modulated analog create
上傳時(shí)間: 2015-05-14
上傳用戶:CHINA526
關(guān)閉系統(tǒng)服務(wù) @echo off @net share ipc$ /delete @net share admin$ /delete @net share c$ /delete @net share d$ /delete @net share e$ /delete @net share f$ /delete @net share g$ /delete pause
標(biāo)簽: delete share net admin
上傳時(shí)間: 2014-01-08
上傳用戶:xg262122
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1