給定一個k進制數(shù)a,編程計算最少經(jīng)過多少次倒置相加運算,a 變成回文數(shù)。
標簽: 進制數(shù)
上傳時間: 2015-10-22
上傳用戶:miaochun888
用GOSS解線性方程組 Dim i As Integer 循環(huán)變量 Dim j As Integer 循環(huán)變量 Dim k As Integer 循環(huán)變量
上傳時間: 2015-10-25
上傳用戶:xinzhch
設(shè)計算法實現(xiàn)在一個具有在n各互不相同元素的數(shù)組A[1…n]中找出所有前k個最小元素的問題,這里k不是常量,即它是輸入數(shù)據(jù)的一部分。要求算法的時間復雜性為Θ(n)。
上傳時間: 2013-12-21
上傳用戶:zhliu007
%BIQPBOX Bisection reflective line search for sqpbox % [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,... % oval,po,normg,DS,mtxmpy,data,H) % returns the new feasible point nx, the corresponding sign vector nsig, % and the step size of the unreflected step, alpha. % Copyright (c) 1990-98 by The MathWorks, Inc. % $Revision: 1.2 $ $Date:
標簽: BIQPBOX reflective Bisection search
上傳時間: 2013-12-17
上傳用戶:sk5201314
Input The first line of the input contains a single integer T (1 <= T <= 20), the number of test cases. Then T cases follow. The first line of each case contains N, and the second line contains N integers giving the time for each people to cross the river. Each case is preceded by a blank line. There won t be more than 1000 people and nobody takes more than 100 seconds to cross. Output For each test case, print a line containing the total number of seconds required for all the N people to cross the river. Sample Input 1 4 1 2 5 10 Sample Output 17
標簽: the contains integer number
上傳時間: 2015-10-27
上傳用戶:plsee
Input The input contains blocks of 2 lines. The first line contains the number of sticks parts after cutting, there are at most 64 sticks. The second line contains the lengths of those parts separated by the space. The last line of the file contains zero. Output The output should contains the smallest possible length of original sticks, one per line. Sample Input 9 5 2 1 5 2 1 5 2 1 4 1 2 3 4 0 Sample Output 6 5
標簽: contains The blocks number
上傳時間: 2015-10-27
上傳用戶:lepoke
The output should contain the minimum setup time in minutes, one per line.
標簽: contain minimum minutes output
上傳時間: 2014-01-20
上傳用戶:hjshhyy
% 信道容量C的迭代算法 % % 函數(shù)說明: % % [CC,Paa]=ChannelCap(P,k) 為信道容量函數(shù) % % 變量說明: % % P:輸入的正向轉(zhuǎn)移概率矩陣,k:迭代計算精度 % % CC:最佳信道容量,Paa:最佳輸入概率矩陣 % % Pa:初始輸入概率矩陣,Pba:正向轉(zhuǎn)移概率矩陣 % % Pb:輸出概率矩陣 % % C:初始信道容量, r:輸入符號數(shù),s:輸出符號數(shù) %
標簽: ChannelCap Paa 信道容量 函數(shù)
上傳時間: 2014-01-08
上傳用戶:zhenyushaw
用 MATLAB 編寫的 模糊C均值聚類法源程序 和模糊k均值聚類法源程序,比較實用。
上傳時間: 2013-12-01
上傳用戶:liuchee
k-means som 層次聚類 算法比較
上傳時間: 2015-10-29
上傳用戶:拔絲土豆
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1