ACM試題An Easy Problem Description As we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and its binary form. Given a positive integer I, you task is to find out an integer J, which is the minimum integer greater than I, and the number of 1 s in whose binary form is the same as that in the binary form of I. For example, if "78" is given, we can write out its binary form, "1001110". This binary form has 4 1 s. The minimum integer, which is greater than "1001110" and also contains 4 1 s, is "1010011", i.e. "83", so you should output "83".
標簽: Description computers Problem binary
上傳時間: 2013-12-11
上傳用戶:libenshu01
MySQL中文參考手冊.rar MySQL是一個精巧的SQL數據庫管理系統,雖然它不是開放源代碼的產品,但在某些情況下你可以自由使用。由于它的強大功能、靈活性、豐富的應用編程接口(API)以及精巧的系統結構,受到了廣大自由軟件愛好者甚至是商業軟件用戶的青睞,特別是與Apache和PHP/PERL結合,為建立基于數據庫的動態網站提供了強大動力。 MySQL有瑞典的T.c.X公司負責開發和維護,MySQL的用戶手冊很單純,只有一個集中的<MySQL Reference Manual>,但其內容覆蓋了MySQL的所有信息,因此該手冊是了解和掌握MySQL的絕佳文獻。 雖然對MySQL的開發不能出一份力,但可為它的推廣使用盡一份心,面對500多頁的參考手冊,知道要精確譯出它決非易事,但愿幾個月的心血能為大家提供一絲微薄的幫助。 由于本人水平有限,文中肯定有不準確的地方,敬請在閱讀過程中不吝指出。文中不明之處,請參閱手冊原文。 本文的內容針對MySQL 3.23.7alpla,實際上很多內容是通用的。另外,參考手冊的幾個附錄也是很有價值的,但由于時間有限,未能譯出,可參見原文。
上傳時間: 2014-01-08
上傳用戶:daoxiang126
MULTIDIMENSIONAL SCALING in matlab by Mark Steyvers 1999 %needs optimization toolbox %Modified by Bruce Land %--Data via globals to anaylsis programs %--3D plotting with color coded groups %--Mapping of MDS space to spike train temporal profiles as described in %Aronov, et.al. "Neural coding of spatial phase in V1 of the Macaque" in %press J. Neurophysiology
標簽: MULTIDIMENSIONAL optimization Modified Steyvers
上傳時間: 2015-08-26
上傳用戶:kytqcool
JAVA游戲編程,j n l p文件類型
標簽: 游戲編程
上傳時間: 2014-08-15
上傳用戶:gengxiaochao
DES( Data Encryption Standard)算法,于1977年得到美國政府的正式許可,是一種用56位密鑰來加密64位數據的方法。 IDEA是International Data Encryption Algorithm 的縮寫,是1990年由瑞士聯邦技術學院來學嘉X.J.Lai 和Massey提出的建議標準算法稱作PES( Proposed Encryption Standard) 。Lai 和Massey 在1992 年進行了改進強化了抗差分分析的能力改稱為IDEA 它也是對64bit大小的數據塊加密的分組加密算法密鑰長度為128位它基于“相異代數群上的混合運算”設計思想算法用硬件和軟件實現都很容易且比DES在實現上快的多。IDEA自問世以來,已經經歷了大量的詳細審查,對密碼分析具有很強的抵抗能力,在多種商業產品中被使用。
標簽: Encryption Standard Data DES
上傳時間: 2015-08-27
上傳用戶:Avoid98
英文版,pdf格式。 詳細說明: Title: STL Tutorial and Reference Guide: C++ Programming with the Standard Template Library (2nd Edition) URL: http://www.amazon.com/exec/obidos/tg/detail/-/0201379236/ ISBN: 0201379236 Author: David R. Musser / Gillmer J. Derge / Atul Saini / Gilmer J. Derge Publisher: Addison-Wesley Page: 560 Edition: 2nd edition (March 27, 2001) Catalog: C++ Format: PDF Size: 3.8M Supplier: December Summary: The Standard Template Library was created as the first library of genetic algorithms and data structures, with four ideas in mind: generic programming, abstractness without loss of efficiency, the Von Neumann computation model, and value semantics. This guide provides a tutorial, a description of each element of the library, and sample applications. The expanded second edition includes new code examples and demonstrations of the use of STL in real-world C++ software development it reflects changes made to STL for the final ANSI/ISO C++ language standard.
標簽: Programming Reference Standard Tutorial
上傳時間: 2015-09-02
上傳用戶:Breathe0125
1.24位真彩色->256色灰度圖。 2.預處理:中值濾波。 3.二值化:用一個初始閾值T對圖像A進行二值化得到二值化圖像B。 初始閾值T的確定方法是:選擇閾值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分別是最高、最低灰度值。 該閾值對不同牌照有一定的適應性,能夠保證背景基本被置為0,以突出牌照區域。 4.削弱背景干擾。對圖像B做簡單的相鄰像素灰度值相減,得到新的圖像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左邊緣直接賦值,不會影響整體效果。 5.用自定義模板進行中值濾波 區域灰度基本被賦值為0。考慮到文字是由許多短豎線組成,而背景噪聲有一大部分是孤立噪聲,用模板(1,1,1,1,1)T對G進行中值濾波,能夠得到除掉了大部分干擾的圖像C。 6.牌照搜索:利用水平投影法檢測車牌水平位置,利用垂直投影法檢測車牌垂直位置。 7.區域裁剪,截取車牌圖像。
上傳時間: 2014-01-08
上傳用戶:songrui
《軟件工程思想》講述“軟件開發”和“做程序員”的道理,視野獨特,構思新穎,內容風趣,不落窠臼,令人耳目一新。堪稱難得,以至回味無窮。 作者從事了八年的軟件開發工作,在他的博士學位論文完成之際寫下了這本“心之所感”。雖然它探討的是軟件工程最常見的內容,但他將親身所歷的感悟寫成活潑生動的文字,將軟件工程的很多原則和方法融于笑談之中,讓人看得輕松,時有共鳴。盡管很薄,然其內涵不遜于厚近千頁的有關教科書
上傳時間: 2014-01-02
上傳用戶:teddysha
老鼠走迷宮,隨機創建迷宮或由文件讀入迷宮檔,老鼠會記憶走過的路直到找到迷宮出口。
標簽:
上傳時間: 2013-12-23
上傳用戶:plsee
編制函數prime,用來判斷整數n是否為素數:bool prime(int n); 而后編制主函數,任意輸入一個大于4的偶數n,找出滿足n=i+j的所有數對,其中要求i與j均為素數(通過調用prime來判斷素數)。如偶數18可以分解為11+7以及13+5;而偶數80可以分解為:43+37、61+19、67+13、73+7。
上傳時間: 2015-09-09
上傳用戶:jennyzai