110 年 國立臺灣聯合大學系統(清華、政治、陽明交通、中央四校聯招)研究所電機類《離散數學》
第 1 題21 分
- True or False? [21 points] Please provide one or two sentences to justify your answer.
(a) [3 points] If , then .
(b) [3 points] If , then .
(c) [3 points] The set of integers and the set of prime numbers have the same cardinality.
(d) [3 points] If a relation is symmetric and transitive, then the relation is reflexive.
(e) [3 points] .
(f) [3 points] divides whenever is a positive integer.
(g) [3 points] Given and , we cannot find an inverse of modulo in some cases.
登入後即可作答並保存紀錄。
核心觀念
本題為國立臺灣聯合大學系統(清華、政治、陽明交通、中央)電機類研究所離散數學考古題,綜合考察離散數學四大核心主題:
- 數論與模運算 (Modular Arithmetic & Number Theory):
- 同餘運算的消去律 (Cancellation Law):。消去律 成立的充要條件為 。
- 乘法模逆元 (Modular Multiplicative Inverse): 在模 下存在模逆元 的充要條件為 。若 ,則絕對不存在模逆元。
- 費馬小定理 (Fermat's Little Theorem):若 為質數,則對任意整數 ,均滿足 ,即 。
- 集合論與基數 (Set Theory & Cardinality):
- 可數無限集 (Countably Infinite Set):基數為 。整數集 與質數集 均為可數無限集,故兩者基數相同()。
- 集合相等定義與元素個數:兩集合相等當且僅當兩者包含完全相同的元素。基數不同則集合必不相等。
- 二元關係性質 (Binary Relation Properties):
- 自反性 (Reflexive)、對稱性 (Symmetric) 與 遞移性 (Transitive) 的嚴格邏輯定義。自反性要求定義域集合中的每一個元素均需滿足 。
解題方法
此類是非題(True or False)伴隨簡答理由(1-2 句話說明),切入點如下:
- 判斷為 False 者:最迅速且精準的證明方式為舉出明確反例 (Counterexample)。
- 判斷為 True 者:直接引用離散數學知名定理(如費馬小定理、歐幾里得質數無限定理)或邏輯直接推導。
- 寫作時先給出明確的判斷結果(True / False),接著列出精煉的 1~2 句英文答題示範(符合考題規範),最後給出詳細的繁體中文推導說明。
選項分析
(a) If , then .
- 判斷:False
- 推導與解析:
在模運算中,消去律成立的前提為 與模數 互質(即 )。一般的消去律公式為 。當 時,無法直接消去 。 - 反例驗證:
取 。
此時 ,且 ,滿足 。
然而 ,故命題不成立。 - 考試英文答題示範:
False. The cancellation law holds only when . For example, , but .
(b) If , then .
- 判斷:True
- 推導與解析:
同餘關係對整數乘法具備封閉性。依同餘定義:
等式兩邊同乘以整數 :
因為 ,故 ,即 對任意整數 恆成立。 - 考試英文答題示範:
True. If , then , which implies , so .
(c) The set of integers and the set of prime numbers have the same cardinality.
- 判斷:True
- 推導與解析:
整數集合 為可數無限集,其基數為 。由歐幾里得定理可知質數有無限多個,故質數集合 亦為可數無限集,基數為 。兩集合基數相同,皆與自然數集 一一對應。 - 考試英文答題示範:
True. Both the set of integers and the set of prime numbers are countably infinite, so they both have cardinality .
(d) If a relation is symmetric and transitive, then the relation is reflexive.
- 判斷:False
- 推導與解析:
第 2 題12 分
- Independence is the key to a good research! [12 points] An independent set in a graph is defined as a set of vertices with no edges connecting them, i.e., no two of which are adjacent. Let G be a graph with vertices and edges (). Here, we conduct the following probabilistic experiment for finding an independent set in G: delete each vertex of G with all its incident edges independently with probability .
(a) [6 points] Compute the expected number of vertices and edges that remain after the deletion process.
(b) [6 points] Based on (a), try to infer that for any graph with vertices with edges, there is an independent set with at least vertices.
登入後即可作答並保存紀錄。
(a) 計算期望值
1. 剩餘頂點數之期望值
設頂點集為 ,。定義指示隨機變數 為頂點 在刪除過程後留下的指示函數(留下來為 1,被刪除為 0)。
每個頂點保留的機率為:
由期望值的線性性質(Linearity of Expectation),剩餘頂點數 的期望值為:
2. 剩餘邊數之期望值
設邊集為 ,。一條邊 會在過程結束後保留,若且唯若其兩個端點 與 同時被保留。
由於各頂點獨立刪除,該邊保留的機率為:
定義指示隨機變數 為邊 保留的指示函數,剩餘邊數 的期望值為:
若取 upper bound 忽略取整數符號(),則:
第 3 題10 分
- A tree is a seed that never gave up on its dream to flourish. [10 points] Let T be a spanning tree of a graph G with an edge cost function c. T is defined to have the cycle property if for any edge , for all in the cycle generated by adding to T. Also, T is defined to have the cut property if for any edge , for all in the cut defined by . Show that the following three statements are equivalent:
- T has the cycle property.
- T has the cut property.
- T is a minimum cost spanning tree.
登入後即可作答並保存紀錄。
核心觀念
本題考查圖論(Graph Theory)中**生成樹(Spanning Tree)與最小生成樹(Minimum Cost Spanning Tree, MST)**的經典結構性質及其等價性定理。
設連通賦權圖為 ,其邊權重函數為 , 為 的一個生成樹。
-
基本環路(Fundamental Cycle)與環路性質(Cycle Property):
對於任意非樹邊 ,將 加入 中會形成唯一的簡單環路,稱為由 誘發的基本環路 。若對該環路上所有的邊 ,皆滿足 ,則稱 具備環路性質。
(意即:任何非樹邊 都是其所產生的基本環路中權重最大者之一。) -
基本割集(Fundamental Cutset)與割集性質(Cut Property):
對於任意樹邊 ,將 自 中刪除會使 分裂為兩個獨立的連通元件,進而誘發點集劃分 。由該劃分所決定的割集為 。若對該割集中所有的邊 ,皆滿足 ,則稱 具備割集性質。
(意即:任何樹邊 都是其所產生的基本割集中權重最小者之一。) -
最小生成樹(Minimum Cost Spanning Tree, MST):
生成樹 的所有邊權重總和 在 的所有可能生成樹中達到全域最小值。
為了證明三者等價(),最簡潔嚴謹的方法是採取環狀推導法(Circular Proof):分別證明 、 與 。
解題方法
步驟一:證明 (環路性質 割集性質)
- 假設: 具備環路性質。
- 目標:證明 亦具備割集性質。
- 證明推導:
- 任取一條樹邊 。刪除邊 後, 分裂為兩個不相交的頂點子集 與 ,其中 。
- 由 誘發的基本割集為 。
- 對於割集 中的任意邊 :
- 若 ,顯然 恆成立。
- 若 ,則必有 。將 加入 中會形成唯一的簡單基本環路 。
- 由於 的兩端點分別位於 與 ,在生成樹 中連接這兩端點的唯一簡單路徑必然跨越割集 。而在 中跨越此割集的邊僅有 自身。
- 因此,樹邊 必定落在基本環路 上,即 。
- 根據假設, 具備環路性質,故對環路 上的所有邊 ,均滿足 ,即 。
- 由於對所有 皆滿足 ,故 具備割集性質。
步驟二:證明 (割集性質 最小生成樹)
- 假設: 具備割集性質。
- 目標:證明 為最小生成樹(MST)。
- 證明推導(採用替換論證法 Exchange Argument 與反證法):
- 假設 不是最小生成樹。設 為圖 的某個最小生成樹,且 滿足「與 擁有最多相同邊」的條件。
- 若 ,則必存在至少一條樹邊 。
- 從 中刪除邊 將點集 切割為 與 ,對應的基本割集為 。
- 因為 是連通的生成樹,在 中必定存在至少一條邊 跨越割集 ,即 。注意此時 (因為 中跨越該割集的邊只有 )。
- 根據假設 具備割集性質,對於割集 中的邊 ,必有 。
第 4 題8 分
- Respect for the ancients. [8 points] Find an integer x such that , and .
登入後即可作答並保存紀錄。
核心觀念
本題考查**中國剩餘定理(Chinese Remainder Theorem, CRT)與聯立同餘方程組(System of Linear Congruences)**的求解。
中國剩餘定理 (CRT):
設 為兩兩互質(relatively prime)的正整數,且總模數 。對於任意整數 ,聯立同餘方程組:
在模 下存在唯一解,表示為:
其中 ,且 為 對模數 的乘法反元素(乘法逆元),即滿足 。
解題方法
本題給定之同餘方程組為:
步驟一:確認條件與計算總模數
模數分別為 。
由於 ,滿足兩兩互質條件。
總模數 。
步驟二:計算各項的 與乘法反元素
-
針對 :
求解 :
-
針對 :
求解 :
-
針對 :
求解 :
第 5 題10 分
- Show time! [10 points] Prove that for every positive integer n, there are n consecutive composite integers. In other words, prove that we can find n consecutive composite integers for any n.
登入後即可作答並保存紀錄。
核心觀念
-
合數(Composite Number)的定義:
正整數 若除了 與自身之外,還存在其他正整數因數,即稱為合數。換言之,若存在整數 滿足 且 ,則 必為合數。 -
階乘(Factorial)的整除性質:
對於任意正整數 ,階乘 必能被 當中的任意整數整除。 -
數論整除的線性組合性質:
若整數 且 ,則 。
解題方法
本題要求證明對任意正整數 ,皆存在 個連續的合數。最直接且嚴密的證明方式為顯式構造法(Explicit Construction)。
完整推導與證明步驟:
-
構造目標數列:
對任意給定的正整數 ,構造以下 個連續整數:
-
驗證項數與連續性:
數列從 開始至 結束,其項數為:
且各項相差 ,故此 個數為連續正整數。 -
證明每一項皆為合數:
對於數列中的任意一項 (其中 ):- 因為 ,在連乘積 中必然包含因子 ,故 。
- 顯然 。
- 根據整除的可加性,可得 。
- 又因為 ,且 ,可知 。
第 6 題13 分
- I want to play a game! [13 points] Now we want to play a famous game called "Sprouts", which is a two-player game and can be played with paper and pencil. First, several dots are drawn on the paper. Afterward, the players take turns, each doing the following process.
• Drawing a line that connects two dots or connects a dot to itself but does not touch or cross any other line.
• Putting a new dot on this new line, thus separating it into two lines.
If no dot can have more than three lines attached to it, the last player that can make a legal move wins.
(a) [6 points] Prove that any Sprouts game consists of a finite number of moves before someone loses. In other words, the game will terminate eventually.
(b) [7 points] Show a tight upper bound on the worst-case number of moves in a Sprouts game that starts with n dots, and prove your answer.
登入後即可作答並保存紀錄。
(a) 證明:Sprouts 遊戲必在有限次移動內結束
令遊戲起始點數為 。
-
初始狀態:
- 每個點最多能連接 條邊,稱點的剩餘連接度(Degree capacity)總和為「可用點度數」(Lives)。
- 初始狀態下,每個點有 個 Lives,故初始總 Lives 為 。
-
每一步移動對 Lives 的變動:
- 連接兩個舊點(或同一個點的兩端)消耗 個 Lives。
- 在新畫的線上新增 個新點,該點連接剛剛畫出的 條新邊,故該新點消耗 個 Lives,剩餘 個 Life。
- 因此,每次移動淨消耗的 Lives 數為: 個 Life。
-
結論:
- 遊戲過程中的總 Lives 數從 開始,每移動一次恰好減少 。
- 因為總 Lives 數恆為非負整數(),所以總移動次數不可能超過 次。
- 因此,任何 Sprouts 遊戲必在有限次移動內終止。
(b) 求解並證明初始 個點的極限最大移動次數(Tight Upper Bound)
【答案】
最壞情況下的最大移動次數緊緻上界為 次。
證明:
- 點與邊的動態數量關係:
- 設經歷 次移動後,遊戲中的總點數為 ,總邊數為 。
- 初始時 ,。
第 7 題12 分
- Act together, we go far. [12 points] Suppose we have two isomorphic graphs G₁ and H₁, as well as two isomorphic graphs G₂ and H₂. Prove or disprove that G₁UG₂ and H₁UH₂ are also isomorphic.
登入後即可作答並保存紀錄。
【試題】 7. Act together, we go far. [12 points] Suppose we have two isomorphic graphs and , as well as two isomorphic graphs and . Prove or disprove that and are also isomorphic.
破題觀念
- 圖聯集(Graph Union)定義:。
- 同構關鍵:同構的充分必要條件是頂點集合間存在一個保持邊對應關係的一對一且映射(Bijective)映射函數。若頂點集交集結構(重疊方式)不同,聯集後的結構可能改變。
- 反例證明法:若要否定(Disprove)一個命題,只需舉出一個具體反例。
詳細證明與反例
本命題為不成立(Disprove)。
反例構造:
取四個頂點皆為 的圖:
- 令 ,其中 , (單條邊圖)。
- 令 ,其中 , (單條邊圖)。
第 8 題14 分
- Simplicity is the keynote of all true elegance. [14 points]
(a) [7 points] Use the recurrence tree method to solve the time complexity of recurrence in the -notation.
(b) [7 points] Solve the time complexity of recurrence in the -notation without using Master method.
登入後即可作答並保存紀錄。
8(a)
【觀念要點】
畫出遞迴樹(Recurrence Tree),統計各層成本(Cost)後求和。
【關鍵步驟】
-
樹的結構分析:
- 頂點(第 層)成本為 。
- 每層一個節點分裂為 個子節點,子問題規模為原本的 。
- 第 層的節點數為 ,每個節點成本為 。
-
每層成本總和:
-
遞迴樹深度:
最底層深度為 。
葉節點數量為 ,葉節點總成本為 。 -
總成本求和:
由於無窮等比級數 收斂為常數:
【答案】
8(b)
第 None 題
注意:背面有試題
登入後即可作答並保存紀錄。
本題原始試題內文僅標示「注意:背面有試題」,缺乏具體的試題敘述與選項內容。以下在合理假設下,補充台聯大電機類離散數學高頻考題「二階非齊次線性遞迴關係」進行完整解析。
題目內容(合理假設)
已知遞迴關係式 (其中 ),且初始條件為 。試判斷下列選項何者正確:
(A) 齊次解之特徵根為
(B) 特解的形式可設為
(C) 特解常數為
(D) 通解為
(E)
核心觀念
本題考查**常係數線性非齊次遞迴關係(Linear Non-homogeneous Recurrence Relation with Constant Coefficients)**的求解步驟:
- 齊次解 :考慮對應的齊次方程式 ,求解特徵方程式(Characteristic Equation) 得到特徵根 。齊次解形式為 。
- 特解 :根據非齊次項 的形式,利用待定係數法(Method of Undetermined Coefficients)假設特解形式。若 且 不是特徵根,則設 。
- 通解與初始條件:將齊次解與特解相加得到通解 ,再代入初始條件 聯立求解未定常數 。
解題方法
第一步:求解齊次解
考慮齊次方程式:
寫出特徵方程式:
因式分解得:
因此齊次解為:
第二步:求解特解
非齊次項為 。因為底數 不等於任何特徵根( 與 ),故假設特解為:
將特解代入原遞迴關係式:
兩邊同除以 :
同類項合併:
故特解為: