阿摩線上測驗
登入
首頁
>
研究所、轉學考(插大)-資料結構
>
108年 - 108 國立臺北大學_日間學士班轉學生招生考試試題_資訊工程學系日間學士班3年級:資料結構#147610
> 申論題
1. (10 分) (A)使用 quick sort 排序數列 60 80 45 2 36 98 11 47 52 89 75 63 7。並且說明每次移動數字時,所使用的條件和基準。
相關申論題
(B)使用 binary search 在排序好的數列尋找數字,比如 36,並說明為何能達到 O(log N)的速度,N 是數列的數字個數。
#608371
2. (20 分) (A)將此 inorder statement: \( \mathrm{A}^{*}(\mathrm{B} + \mathrm{C}) + \mathrm{E}^{*}\mathrm{F} - \mathrm{H} / \mathrm{I} \) 轉為 postorder,並畫出它的二元樹。
#608372
(B)設計一個算法使用 stack 來實現上述 inorder 轉 postorder,並且以上述 statement 說明如何使用 stack 來做轉換。
#608373
3. (20 分) 使用 linked list 實作 stack,運用以下 C 語言程式: typedef struct node { int value; node *next;} void push (node **top, int new_value) { // assume top is not null node *new_node = (node *) malloc (sizeof (node)); // (A) 實作以下敘述 // add new_node to stack by top } int pop (node **top) { // assume top is not null int value; node *deleting_node = *top; // (B) 實作以下敘述 // remove the deleting node from stack, get the value of deleting node free(deleting_node); return value; }
#608374
4. (28 分) (A)Find all articulation points in Figure 1.
#608375
(B)Describe the two rules for finding the articulation points.
#608376
(C)Show the formula for low(w) value for node w.
#608377
(D)Show the \( dfn \) and low values in the table. The node's order of Depth First Search is 1-2-4-5-3-6-8-9-7.
#608378
5. (10 分) Give the adjacency multilists graph representation for the graph in Figure 2.
#608379
6. (12 分) Obtain the position of the element $a_{ij}$ in an upper triangular matrix as shown in Figure 3 where $a_{00}$ is in the first position by using (A)Column Major (B) Row Major. $$\left[ \begin{array}{c c c c c} a_{00} & a_{01} & \dots & \dots & a_{0n-1} \\ & a_{11} & a_{12} & & a_{1n-1} \\ & & \ddots & & \vdots \\ & & & \ddots & \vdots \\ & & & & a_{n-1n-1} \end{array} \right]$$
#608380
相關試卷
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