TransCSI 板


LINE

1. The following table represents a tree stored in a machine's memory. Each node of the tree consists of three cells. The first cell contains the data (a letter),the second contains a pointer to the nodes's left child , and the third contains a pointer to the node's right child. A value of 0 represents a NULL pointer. If the value of the root pointer is 55 , draw a picture of the tree. Address Contents 40 G 41 0 42 0 43 X 44 0 45 0 46 J 47 49 48 0 49 M 50 0 51 0 52 F 53 43 54 40 55 W 56 46 57 52 ------------------------------------------------------------------------- 2. 想問一下Insertion Sort 的比較次數最差狀況是(n-1)*n/2還是n*(n+1)/2 (兩者差在第一個數有沒有跟負無限大做比較,若有,則是n*(n+1)/2,反之, 就是前者),不知道通常計算時比較的底值有沒有包含負無限大這一項, 還是直接拿第一個數字做比較? ------------------------------------------------------------------------- 3. An incremnetal backup copies________. (A)all program and data files. (B)only the files that have changed since the last full backup (C)only the files that have changed since the last incremental backup (D)only the files that have changed since the last full backup or differential backup (E)only the files that have changed since the last full backup or incremental backup -------------------------------------------------------------------------- 4. Let A(mxn) and B(nxm) be two matrixs. Please write a pseudocode to compute A(mxn)*B(nxm). 我這一題是這樣做的,請各位過目看看有沒有問題~ 先假設所求為C(mxm),則 for(int k=0;k<m;k++) for(int i=0;i<m;i++) for(int j=0;j<n;j++) C[k][i] += A[i][j]*B[j][i]; -------------------------------------------------------------------------- 5.TOM買了一個宣稱200MB的硬碟(會不會太小...不過這不是重點) 但是WINDOWS顯示只有190.7MB,TOM打電話給廠商去抱怨少了9MB,但是廠商堅稱 200MB是真的,聰明的你能解釋為什麼會這樣嗎? -------------------------------------------------------------------------- 6.Please write a C program that exhibits the problem of memory leakage. Please write another C program that exhibits the dangling pointer. ------------------------------------------------------------------------- 版眾品質,堅若磐石~!! --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.228.130.124
1F:推 ahongyeh:第五題~~我不聰明~~所以我不會~~ 06/24 11:36
2F:推 abien:5.(1)電腦是2^10才進一個單位1mb=1024kb,而windows顯示是 06/24 12:23
3F:→ abien: 1mb=1000kb。 06/24 12:25
4F:→ abien: (2)請親自劃分磁區,就知為何 06/24 12:26
5F:→ abien:有錯請指教,這只是我的印象,怕誤導版眾 06/24 12:27
6F:→ abien:(1)的講法好像錯了,應該是(2)才對 囧 06/24 12:29
7F:推 biox:應該說,正確廠商來說是以1000為單位作計算,而非1024 06/24 17:06
8F:→ biox:以DVD光碟片來說4.7GB實際上是4.7*1000^3/1024^3 = 4.3GB 06/24 17:06
9F:→ biox:因為廠商為了計算方便 以1000做單位,但是電腦用1024 06/24 17:10
10F:→ biox:才會造成誤差~ 有錯請指教。 06/24 17:11
11F:推 abien:樓上說的有可能.但是劃分磁區需要消耗一些空間給設定檔, 06/24 18:09
12F:→ abien:所以windows顯示磁碟空間才不到200mb 06/24 18:10
13F:推 abien:我家DVD空白片是4.7GB用OS看只有4.5GB XD 06/24 18:15
14F:→ abien:總之這都能解釋吧...大家都很聰明^_< 06/24 18:15
15F:推 x0315b100:顯然在計概板比微積分版安詳許多~"~ 06/25 00:45
16F:推 ahongyeh:摟上感觸很深!? XD 也許大家最近心情比較煩燥吧... 06/25 00:58
17F:推 biox:真的,期末適逢有些學校已經開始招考 So,..... 06/25 01:07
18F:推 dgf130:第四題:應該是j<n 06/25 02:04
19F:→ dgf130:好像很多93聯大的題目XD 06/25 02:06
20F:推 antirazin:啊打錯~ 06/25 08:09
※ 編輯: antirazin 來自: 125.226.177.91 (06/25 08:09)







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Gossiping站內搜尋

TOP