分而治之方法還可以用于實現另一種完全不同的排序方法,這種排序法稱為快速排序(quick sort)。在這種方法中, n 個元素被分成三段(組):左段l e f t,右段r i g h t和中段m i d d l e。中段僅包含一個元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以獨立排序,并且不必對l e f t和r i g h t的排序結果進行合并。m i d d l e中的元素被稱為支點( p i v o t )。圖1 4 - 9中給出了快速排序的偽代碼
上傳時間: 2015-04-27
上傳用戶:kristycreasy
用匯編語言編寫的一個簡單的學生成績管理系統,用戶有6種選擇: (1) 按’m’,則顯示功能菜單。 (2) 按’L’,則顯示學生姓名和各學科成績(數學,英語,語文)。每次顯示10條記錄并暫停,按’g’繼續顯示余下記錄。 (3) 按’I’,則可按格式插入記錄到規定文件中。 (4) 按’M’,則可按格式修改記錄。 (5) 按’D’,輸入行數,清空該行指定的記錄。 (6) 按’Q’,按格式輸入學生姓名進行查詢,列出該生的成績記錄。 (7) 按’E’,則退出程序。
上傳時間: 2013-12-24
上傳用戶:gououo
DELPHI basicCtrl+NUM 直接將光標跳到NUM處,NUM是用Ctrl+Shift+NUM設置的標號。 NUM不能用小鍵盤。 Ctrl+Home 將光標移至文件頭。 Ctrl+End 將光標移至文件尾。 Ctrl+B Buffer List窗口。 Ctrl+I 同Tab鍵。 Ctrl+M 同Enter鍵。 Ctrl+N 同Enter鍵,但光標位置保持不變。 Ctrl+T 刪除光標右邊的一個單詞。 Ctrl+Y 刪除光標所在行。 Ctrl+Shift+↑ 光標在函數體內時,將光標快速移至當前函數聲明處。 Ctrl+Shift+↓ 光標在函數聲明行時,將光標快速移至函數定義處。 Ctrl+Shift+C 聲明一個過程或函數后,直接生成過程或函數的名稱、begin、end Ctrl+Shift+E 光標在Edit窗口和Explorer窗口間切換。 Ctrl+Shift+G 插入GUID。 Ctrl+Shift+J 彈出Delphi語句提示窗口,選擇所需語句將自動完成一條語句。 Ctrl+Shift+T 在光標行加入To-Do注釋。 Ctrl+Shift+Y 刪除光標之后至本行末尾之間的文本。 Ctrl+F3 Call Stack窗口。 Ctrl+F4 等于File菜單中的Close項。
上傳時間: 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.
標簽: operation Windows example process
上傳時間: 2013-12-17
上傳用戶:wang0123456789
從空格(ASCII碼32)到~(ASCII碼126)。表內的第一行與表頭相同,下面的每一行都與上一行的內容相同,只是字符相左移動了一個位置。這樣,下一行的最后一個字符與上一行的第一個字符相同。 為了進行文本編碼,可以任意選擇一個字符串,稱之為編碼字符串,也就是常說的密鑰。為解釋編碼方法,我們假設密鑰是Walrus,待編碼的文本(即常說的明文)是: Meet me in St. Louis 我們在待編碼的文本之上重復書寫上述密鑰,使得其長度與待編碼文本相同: WalrusWalrusWalrusWa Meet me in St. Louis 從上述兩行文本中按列對應方式依次提取一個字符,可得到多個字符對:WM、ae、le等,這些字符對可用作上表的索引。這樣,依次以這些字符對作為索引可從上表查到一系列字符,這些字符就構成了文本編碼,即常說的密文。例如,第W行第M列隊應得字符是%,因此編碼的第一個字符就是%;第a行第e列對應的字符是G;第l行第e列對應的是R。依次進行上述查找操作,可以得到完整的密文 %Grgua=aVauGLol?eiAU 進行相反的操作就可對該文本解碼。 編寫編碼/解碼程序,可以對文本文件或鍵盤輸入的字符串進行編碼/解碼,在選擇編碼解碼后,需要提示用戶輸入密鑰。
上傳時間: 2014-01-16
上傳用戶:Ants
ICTCLAS的JNI調用接口文件: Title:ICTCLAS Caller * <p>Description:do chinese word segmentation.don t change the pakage and CLASS name, orelse you can t use it. * 請不要改變包名、類名以及native的方法名,否則調用將失效。 * 由于ICTCLAS本身存在很多魯棒性問題,調用segSentence時,string參數請保證不要過長或帶有亂碼。調用次數過多(如處理幾十G的數據)會有可能造成內存溢出。 * 故基本只能用于較小規模數據(相對幾十G來說)。 * 請運行時設置jvm足夠的堆棧空間。
標簽: ICTCLAS segmentation Description chinese
上傳時間: 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).
標簽: programmer program device build
上傳時間: 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.
標簽: signal Modulated analog create
上傳時間: 2015-05-14
上傳用戶:CHINA526
關閉系統服務 @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
上傳時間: 2014-01-08
上傳用戶:xg262122
參考了JAVA方面MIS系統開發的書籍做的一個 電力收費的系統,包里面是可以直接運行的JAR文件了...SRC是源文件可一些需要的包...數據庫是用的MSQLserver2000,"java程序數據源.BAK"如果安裝不到SQLserver就按照在SSQL2000里面的提示做,或者在G盤下安裝(我原來的數據庫是安裝在G盤的)一個數據庫,再在里面安裝(恢復)這個備份
標簽: MSQLserver JAVA 2000 java
上傳時間: 2015-05-16
上傳用戶:zhouli