在一個按照東西和南北方向劃分成規(guī)整街區(qū)的城市里,n個居民點散亂地分布在不同的街區(qū)中。用x 坐標(biāo)表示東西向,用y坐標(biāo)表示南北向。各居民點的位置可以由坐標(biāo)(x,y)表示。街區(qū)中任意2 點(x1,y1)和(x2,y2)之間的距離可以用數(shù)值|x1-x2|+|y1-y2|度量。 居民們希望在城市中選擇建立郵局的最佳位置,使n個居民點到郵局的距離總和最小。 編程任務(wù): 給定n 個居民點的位置,編程計算n 個居民點到郵局的距離總和的最小值。
上傳時間: 2016-01-21
上傳用戶:mikesering
由循環(huán)程序給出機(jī)器人關(guān)節(jié)變量(o1,02),通過正解運算求出相應(yīng)的末端位姿(x,y)
標(biāo)簽: 02 循環(huán)程序 變量 機(jī)器人
上傳時間: 2016-01-23
上傳用戶:李夢晗
KeePass for J2ME is a J2ME port of KeePass Password Safe, a free, open source, light-weight and easy-to-use password manager. You can store passwords in a highly-encrypted database on a mobile phone, and view them on the go.
標(biāo)簽: KeePass J2ME light-weight Password
上傳時間: 2016-01-25
上傳用戶:er1219
This the third edition of the Writing Device Drivers articles. The first article helped to simply get you acquainted with device drivers and a simple framework for developing a device driver for NT. The second tutorial attempted to show to use IOCTLs and display what the memory layout of Windows NT is. In this edition, we will go into the idea of contexts and pools. The driver we write today will also be a little more interesting as it will allow two user mode applications to communicate with each other in a simple manner. We will call this the “poor man’s pipes” implementation.
標(biāo)簽: the articles Drivers edition
上傳時間: 2014-01-16
上傳用戶:ommshaggar
三星S42SD電漿電視的故障判斷及維修 三星 V2 . V3 .V4 LG V6 .V7 面板電源版 我們皆可處理 一. 面板上各模組的功能: 如下圖所示,pdp面板一共分為電源板、X驅(qū)動板、Y驅(qū)動板、邏輯板、邏輯BUFFER板(E、F、G)、Y BUFFER板(上、下)、 OF等部分: *電源板: 給面板上其他功能模組及整機(jī)廠家做的主板,視頻處理板提供電源。 *X驅(qū)動板:按照邏輯板上送來的時序信號,產(chǎn)生并為X電極提供驅(qū)動信號。 *Y驅(qū)動板:按照邏輯板上送來的時序信號,產(chǎn)生并為Y電極提供驅(qū)動信號。
上傳時間: 2016-01-29
上傳用戶:AbuGe
Boosting is a meta-learning approach that aims at combining an ensemble of weak classifiers to form a strong classifier. Adaptive Boosting (Adaboost) implements this idea as a greedy search for a linear combination of classifiers by overweighting the examples that are misclassified by each classifier. icsiboost implements Adaboost over stumps (one-level decision trees) on discrete and continuous attributes (words and real values). See http://en.wikipedia.org/wiki/AdaBoost and the papers by Y. Freund and R. Schapire for more details [1]. This approach is one of most efficient and simple to combine continuous and nominal values. Our implementation is aimed at allowing training from millions of examples by hundreds of features in a reasonable time/memory.
標(biāo)簽: meta-learning classifiers combining Boosting
上傳時間: 2016-01-30
上傳用戶:songnanhua
拉格朗日插值算法,輸入[x0 x1 x2]和對應(yīng)的[y0 y1 y2],按拉格朗日插值發(fā)計算出[x0 x2]之間任何一個X所對應(yīng)的Y值
上傳時間: 2013-12-29
上傳用戶:miaochun888
編程珠璣,程序員的警世恒言,讓您Good reading、Happy coding
上傳時間: 2013-12-18
上傳用戶:firstbyte
古典密碼中,主要的思想為移位算法及置換算法。 1.移位密碼 密鑰K為整數(shù),且取值空間為0到25;加密函數(shù):x = x + k (mod 26);解密函數(shù):x = x - k (mod 26)。當(dāng)K=3時,為凱撒密碼。 2.仿射密碼 密鑰對由a、b組成,整數(shù)a滿足 gcd(a, 26) = 1,整數(shù)b的取值空間為0到25;加密函數(shù):x = ax + b(mod 26);解密函數(shù):x = a*y - a*b (mod 26)。當(dāng)a=1,b=3時,為凱撒密碼。 3.維吉尼亞密碼 首先確定密鑰長度(本例中密鑰只采取個位數(shù)字,所以取決于輸入密鑰的長度),然后輸入滿足這個長度的向量;加密:取明文第一個字母并將之移k1位,這里k1=1,第二個字母移k2位,k2=2,一旦到了密鑰末尾,又從頭開始。 4.換位密碼 首先確定密鑰長度,輸入長度為5的0到4的整數(shù)序列,將明文分成每5個字母一組,每組字母按照密鑰進(jìn)行換位。
標(biāo)簽: 密碼
上傳時間: 2016-02-09
上傳用戶:jqy_china
前段時間一直忙著學(xué)習(xí),最近有空就用c言編的FFT算法,請大家指教。
標(biāo)簽:
上傳時間: 2014-01-02
上傳用戶:maizezhen
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1