5.22④ 假設(shè)系數(shù)矩陣A和B均以三元組表作為存儲結(jié)構(gòu)。 試寫出滿足以下條件的矩陣相加的算法:假設(shè)三元組表A 的空間足夠大,將矩陣B加到矩陣A上,不增加A、B之外 的附加空間,你的算法能否達到O(m+n)的時間復(fù)雜度?其 中m和n分別為A、B矩陣中非零元的數(shù)目。
上傳時間: 2013-12-13
上傳用戶:coeus
采用3D Bresenham算法在兩點間劃一直線 % This program is ported to MATLAB from: % B.Pendleton. line3d - 3D Bresenham s (a 3D line drawing algorithm) % ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d, 1992 % % Which is referenced by: % Fischer, J., A. del Rio (2004). A Fast Method for Applying Rigid % Transformations to Volume Data, WSCG2004 Conference. % http://wscg.zcu.cz/wscg2004/Papers_2004_Short/M19.pdf
標簽: Bresenham Pendleton program MATLAB
上傳時間: 2013-12-10
上傳用戶:sz_hjbf
計算機網(wǎng)絡(luò)-系統(tǒng)方法 第三版 英文版 作 者: (美)彼德森(Peterson,L.L.) 等著 出 版 社: 機械工業(yè)出版社 出版時間: 2005-3-1 字 數(shù): 版 次: 1 頁 數(shù): 813 印刷時間: 2005/03/01 開 本: 印 次: 紙 張: 膠版紙 I S B N : 9787111160564 包 裝: 平裝 所屬分類: 圖書 >> 計算機/網(wǎng)絡(luò) >> 計算機理論
標簽: Peterson 2005 計算機網(wǎng)絡(luò) 系統(tǒng)方法
上傳時間: 2013-12-27
上傳用戶:weiwolkt
The "GEE! It s Simple" package illustrates Gaussian elimination with partial pivoting, which produces a factorization of P*A into the product L*U where P is a permutation matrix, and L and U are lower and upper triangular, respectively. The functions in this package are accurate, but they are far slower than their MATLAB equivalents (x=A\b, [L,U,p]=lu(A), and so on). They are presented here merely to illustrate and educate. "Real" production code should use backslash and lu, not this package.
標簽: illustrates elimination Gaussian pivoting
上傳時間: 2016-11-09
上傳用戶:wang5829
The "GEE! It s Simple" package illustrates Gaussian elimination with partial pivoting, which produces a factorization of P*A into the product L*U where P is a permutation matrix, and L and U are lower and upper triangular, respectively. The functions in this package are accurate, but they are far slower than their MATLAB equivalents (x=A\b, [L,U,p]=lu(A), and so on). They are presented here merely to illustrate and educate. "Real" production code should use backslash and lu, not this package.
標簽: illustrates elimination Gaussian pivoting
上傳時間: 2014-01-21
上傳用戶:lxm
3.畫橢圓ellipse 4.利用ellipse and rectangle 畫圖 5.一個最優(yōu)美的圖案 6.輸入3個數(shù)a,b,c,按大小順序輸出 :輸入數(shù)組,最大的與第一個元素交換,最小的與最后一個元素交換,輸出數(shù)組。 7.有n個整數(shù),使其前面各數(shù)順序向后移m個位置,最后m個數(shù)變成最前面的m個數(shù)
上傳時間: 2016-11-16
上傳用戶:royzhangsz
Problem B:Longest Ordered Subsequence A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ..., aiK), where 1 <= i1 < i2 < ... < iK <= N. For example, sequence (1, 7, 3, 5, 9, 4, 8) has ordered subsequences, e. g., (1, 7), (3, 4, 8) and many others. All longest ordered subsequences are of length 4, e. g., (1, 3, 5, 8).
標簽: Subsequence sequence Problem Longest
上傳時間: 2016-12-08
上傳用戶:busterman
鼠標鍵盤操作 b畫線, m拖動點, d刪除點
上傳時間: 2016-12-29
上傳用戶:wendy15
一個基于GTK+的單詞數(shù)值計算器,1、 按照規(guī)則計算單詞的值,如果 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 26個字母(全部用大寫)的值分別為 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26,如: WINJACK這個單詞的值就為:W+I+N+J+A+C+K=23+9+14+1+3+11=71% HARDWORK=H+A+R+D+W+O+R+D=8+1+18+4+23+15+18+11=98% LOVE=L+O+V+E=12+15+22+5=54% LUCK=L+U+C+K=12+21+3+11=47% ATTITUDE= A+T+T+I+T+U+D+E=1+20+20+9+20+24+4+5=100% 2、對程序的界面布局參考如下圖所示,在第一個單行文本框輸入一個單詞,點擊“計算”按鈕,按照以上算法計算出該單詞的值。 3、如果在最下面的單行文本框輸入一個文件路徑,此文件每行記錄一個單詞,那么經(jīng)過程序計算出各個單詞的值,并把結(jié)果輸出到當前目錄下result.txt文件中。如果文件不存在,應(yīng)該提示錯誤。
上傳時間: 2014-01-11
上傳用戶:康郎
給定兩個集合A、B,集合內(nèi)的任一元素x滿足1 ≤ x ≤ 109,并且每個集合的元素個數(shù)不大于105。我們希望求出A、B之間的關(guān)系。 任 務(wù) :給定兩個集合的描述,判斷它們滿足下列關(guān)系的哪一種: A是B的一個真子集,輸出“A is a proper subset of B” B是A的一個真子集,輸出“B is a proper subset of A” A和B是同一個集合,輸出“A equals B” A和B的交集為空,輸出“A and B are disjoint” 上述情況都不是,輸出“I m confused!”
標簽:
上傳時間: 2017-03-15
上傳用戶:yulg
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1