阿摩線上測驗
登入
首頁
>
【阿摩】未分類題庫
>
114年 - 114 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147271
> 申論題
5. (10%) Solve the recurrence relation
\( a_{n} = a_{n - 1} + 2n + 3 \)
where
\( a_0 = 5 \)
.
相關申論題
6. (10%) Simplify the following compound proposition to minimize the number of "and", "or", and "not" operations. $$(p \wedge q \wedge r) \vee (\neg p \wedge \neg r \wedge \neg s) \vee (\neg p \wedge \neg q \wedge s) \vee (\neg p \wedge q \wedge s) \vee (\neg p \wedge r \wedge \neg s)$$
#605648
7. (10%) Consider the following program segment. Let n be a positive integer. Find the final values of a and b as functions of n.
#605649
8. (20%) Find all integer solutions for x and y such that $x \equiv 2 \pmod{3}$, $x \equiv 4 \pmod{5}$, $x \equiv 6 \pmod{7}$ and $y \equiv 4 \pmod{15}$, $y \equiv 7 \pmod{21}$, $y \equiv 14 \pmod{35}$.
#605650
(A)說明system stack的內容與運作方式。
#605651
(5分) (B)使用quick sort 排序數列 40 78 35 12 6 28 51 67 22 89 3 19 58。並且說明每次移動數字時,所使用的條件和基準。
#605652
(A)將此inorder statement:A(B+C)+EF-H/I 轉為postorder,並畫出它的二元樹。
#605653
(10分)(B)設計一個算法使用stack來實現上述 inorder轉postorder,並且以上述statement說明如何使用stack來做轉換。
#605654
3.(10分)使用linked list實作stack,運用以下C語言程式:typedef struct node { int value; node *next;}void push (node **top, int new_value) { // assume top is not nullnode new_node = (node ) malloc (sizeof (node));// 實作以下敘述// add new_node to stack by top}int pop (node **top) { // assume top is not nullint value;node deleting_node = top;// 實作以下敘述// remove the deleting node from stackfree(deleting_node);return value;}
#605655
4.(15分)使用stack解決老鼠走迷宫問題(Maze path search),設計並描述如何實作,包含(1)如何搜尋八個方向來移動(2)如何找到合法移動和出口(3)解決死路問題
#605656
5.(15分)Given a graph \( G = (V,E) \) where \( V = \{1,2,3,\dots,n\} \) and \( E = \{e1,e2,\dots,e_m\} \), show an algorithm to find out if a vertex \( j\in V \) is reachable from another vertex \( i\in V \) for all vertex pairs \( (i,j) \) in the given graph. The running time of your algorithm should be within \( O(n^3) \).
#605657
相關試卷
115年 - 115 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147267
115年 · #147267
114年 - 114 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147271
114年 · #147271
114年 - 114 國立臺北大學_碩士班一般入學考試試題_民俗藝術與文化資產研究所:語文論述能力(民俗與文化)#147240
114年 · #147240
113年 - 113 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147270
113年 · #147270
113年 - 113 國立臺北大學_碩士班一般入學考試試題_民俗藝術與文化資產研究所:語文論述能力(民俗與文化)#147238
113年 · #147238
112年 - 112 國立臺北大學_碩士班一般入學考試試題_民俗藝術與文化資產研究所:語文論述能力(民俗與文化)#147239
112年 · #147239
111年 - 111 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147257
111年 · #147257
111年 - 111 國立臺北大學_碩士班一般入學考試試題_民俗藝術與文化資產研究所:語文論述能力(民俗與文化)#147245
111年 · #147245
111年 - [無官方正解]111 國立臺北大學_碩士班一般入學考試試題_金融與合作經營學系:合作經濟學#147235
111年 · #147235
110年 - 110 國立臺北大學_碩士班一般入學考試試題_資訊工程學系:線性代數與離散數學#147277
110年 · #147277