資料結構-n維陣列問題 - 考試
By Andrew
at 2016-04-03T01:51
at 2016-04-03T01:51
Table of Contents
題目來源:資料結構_1(韋傑)
題目:
陣列A(-1:3, 2:4, 1:4, -2:1) , α=200,每一元素所占空間=5
以列為主 , A(3,4,4,1) 位址 ?
答案:1395
---------------------
可是用課本上的 n維陣列 公式都不對
Loc A (i1,i2,i3 .... in) = α + (i1-L)*u2*u3 .... *un*d .... (in-1)*d
以下附上我的計算式
Ans: 200 + [3-(-1)]*4*4*1*5 + (4-2)*4*1*5 + (4-1)*1*5 + [1-(-2)]*5
= 200 + 320 + 40 + 15 + 15 = 690
請問到底是哪裡錯了呢 ?
我上網查過答案,發現是從 *u1 (3) 開始乘積
為什麼 ?
是公式錯了嗎 ?
謝謝您的觀看與協助。
--
題目:
陣列A(-1:3, 2:4, 1:4, -2:1) , α=200,每一元素所占空間=5
以列為主 , A(3,4,4,1) 位址 ?
答案:1395
---------------------
可是用課本上的 n維陣列 公式都不對
Loc A (i1,i2,i3 .... in) = α + (i1-L)*u2*u3 .... *un*d .... (in-1)*d
以下附上我的計算式
Ans: 200 + [3-(-1)]*4*4*1*5 + (4-2)*4*1*5 + (4-1)*1*5 + [1-(-2)]*5
= 200 + 320 + 40 + 15 + 15 = 690
請問到底是哪裡錯了呢 ?
我上網查過答案,發現是從 *u1 (3) 開始乘積
為什麼 ?
是公式錯了嗎 ?
謝謝您的觀看與協助。
--
Tags:
考試
All Comments
By Tristan Cohan
at 2016-04-06T19:49
at 2016-04-06T19:49
By Hedda
at 2016-04-09T01:58
at 2016-04-09T01:58
By Caitlin
at 2016-04-11T12:00
at 2016-04-11T12:00
By Suhail Hany
at 2016-04-13T07:24
at 2016-04-13T07:24
By Yuri
at 2016-04-15T04:53
at 2016-04-15T04:53
By Queena
at 2016-04-16T04:22
at 2016-04-16T04:22
By Tracy
at 2016-04-20T21:51
at 2016-04-20T21:51
By Hedy
at 2016-04-22T09:53
at 2016-04-22T09:53
By Rae
at 2016-04-22T18:54
at 2016-04-22T18:54
By Eartha
at 2016-04-25T01:50
at 2016-04-25T01:50
By Iris
at 2016-04-29T19:54
at 2016-04-29T19:54
By Sandy
at 2016-05-01T16:25
at 2016-05-01T16:25
By Heather
at 2016-05-02T05:38
at 2016-05-02T05:38
Related Posts
104年地方特考三等戶政上榜心得(代PO)
By Edward Lewis
at 2016-04-02T22:29
at 2016-04-02T22:29
四月四日圖書館沒有開、哪裡唸書?
By Todd Johnson
at 2016-04-02T22:08
at 2016-04-02T22:08
104年地方特考三等人事行政上榜心得
By Tracy
at 2016-04-02T21:53
at 2016-04-02T21:53
100鐵路員級-電子學
By James
at 2016-04-02T19:55
at 2016-04-02T19:55
綜所稅
By Carol
at 2016-04-02T18:10
at 2016-04-02T18:10