阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)-資料結構
> 105年 - 105 國立臺北大學_日間學士班曁進修學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147453
105年 - 105 國立臺北大學_日間學士班曁進修學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147453
科目:
研究所、轉學考(插大)-資料結構 |
年份:
105年 |
選擇題數:
0 |
申論題數:
13
試卷資訊
所屬科目:
研究所、轉學考(插大)-資料結構
選擇題 (0)
申論題 (13)
1. Explain the following terminologies: space complexity, time complexity, and asymptotic analysis. (10%)
2. Three matrices A, B, C are defined by "int A[15][10], B[10][12], C[15][12];". Write a program segment to multiply A[15][10] by B[10][12] and store their product into C[15][12]. (10%)
3. Let the value of the six variables A, B, C, D, E, F are 5, 4, 2, 6, 3, 7 respectively. First, use a stack to transform the infix expression \((\mathrm{A} + \mathrm{B})\mathrm{xC} - \mathrm{D} / \mathrm{E} + \mathrm{F}\) into a postfix expression. Then, use a stack to evaluate the obtained postfix expression. (15%)
4. A binary tree with 10 nodes is given below. (15%)
(a) Use a linked list structure to represent the binary tree. (5%)
(b) Briefly describe the pre-order traversal algorithm and show the outcome of pre-order traversal. (5%)
(c) Briefly describe the post-order traversal algorithm and show the outcome of post-order traversal. (5%)
二、
1. Adjacency Matrix 與 Adjacency List 是兩種常見的 Graph 表示法。若考慮儲存全台灣大學生之間的社交網路關係,請問用哪一種表示法比較合適?(2%) 為什麼?(3%)
2. 圖一是一範例 Graph。請畫出該 Graph 的 Minimal Cost Spanning Tree。(5%)
3. Quick Sort 是常見的排序方法,其平均複雜度為 \( O(n \log n) \),在最糟實況的複雜度為 \( O(n^2) \)。請問要如何避免 Quick Sort 排序法陷入最糟實況?(5%)
4. 將下列鍵值依序建立AVL-tree,請畫出其結果。(10%)
5. 將下列鍵值依序建立 Red-Black Tree,請畫出其結果。(10%)
6. AVL Tree 與 Red-Black Tree 都是一種自平衡二元搜尋樹 (Self-Balancing Binary Search Tree),請比較 AVL Tree 與 Red-Black Tree 的優劣。(5%)
7. 假設今有一鍵值 \(k = 123443246\),若使用邊界摺疊 (Folding at the boundary)法,並假設一段的長度為3,請問Hash後的結果是?(10%)
相關試卷
115年 - 115 國立臺北大學_日間學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147430
115年 · #147430
115年 - 115 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#143912
115年 · #143912
114年 - 114 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#144138
114年 · #144138
113年 - 113 國立臺北大學_日間學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147432
113年 · #147432
113年 - 113 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#144167
113年 · #144167
112年 - 112 國立臺北大學_日間學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147429
112年 · #147429
112年 - 112 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#144165
112年 · #144165
111年 - 111 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#145441
111年 · #145441
110年 - 110 國立嘉義大學_碩士班招生考試試題_資訊工程學系:資料結構#145491
110年 · #145491
110年 - 110 國立臺灣科技大學_碩士班招生試題_電子工程系:資料結構#112844
110年 · #112844