110 年 國立臺灣聯合大學系統(清華、政治、陽明交通、中央四校聯招)研究所電機類《離散數學》

📄 試題原卷 免費註冊後即可對照原始考卷 PDF免費註冊

第 1 題21 分

  1. True or False? [21 points] Please provide one or two sentences to justify your answer.
    (a) [3 points] If ax=ay(modn)ax = ay \pmod{n}, then x=y(modn)x = y \pmod{n}.
    (b) [3 points] If x=y(modn)x = y \pmod{n}, then ax=ay(modn)ax = ay \pmod{n}.
    (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] {{∅}}={∅,{∅}}\{\{\emptyset\}\} = \{\emptyset, \{\emptyset\}\}.
    (f) [3 points] 55 divides n5−nn^5 - n whenever nn is a positive integer.
    (g) [3 points] Given a,b∈N+a, b \in \mathbb{N}^+ and gcd⁡(a,b)≠1\gcd(a, b) \neq 1, we cannot find an inverse of aa modulo bb in some cases.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題為國立臺灣聯合大學系統(清華、政治、陽明交通、中央)電機類研究所離散數學考古題,綜合考察離散數學四大核心主題:

  1. 數論與模運算 (Modular Arithmetic & Number Theory):
    • 同餘運算的消去律 (Cancellation Law):ax≡ay(modn)  ⟹  x≡y(modngcd⁡(a,n))ax \equiv ay \pmod{n} \implies x \equiv y \pmod{\frac{n}{\gcd(a,n)}}。消去律 x≡y(modn)x \equiv y \pmod{n} 成立的充要條件為 gcd⁡(a,n)=1\gcd(a, n) = 1。
    • 乘法模逆元 (Modular Multiplicative Inverse):aa 在模 bb 下存在模逆元 a−1(modb)a^{-1} \pmod{b} 的充要條件為 gcd⁡(a,b)=1\gcd(a, b) = 1。若 gcd⁡(a,b)>1\gcd(a, b) > 1,則絕對不存在模逆元。
    • 費馬小定理 (Fermat's Little Theorem):若 pp 為質數,則對任意整數 nn,均滿足 np≡n(modp)n^p \equiv n \pmod{p},即 p∣(np−n)p \mid (n^p - n)。
  2. 集合論與基數 (Set Theory & Cardinality):
    • 可數無限集 (Countably Infinite Set):基數為 ℵ0\aleph_0。整數集 Z\mathbb{Z} 與質數集 PP 均為可數無限集,故兩者基數相同(∣Z∣=∣P∣=ℵ0|\mathbb{Z}| = |P| = \aleph_0)。
    • 集合相等定義與元素個數:兩集合相等當且僅當兩者包含完全相同的元素。基數不同則集合必不相等。
  3. 二元關係性質 (Binary Relation Properties):
    • 自反性 (Reflexive)、對稱性 (Symmetric) 與 遞移性 (Transitive) 的嚴格邏輯定義。自反性要求定義域集合中的每一個元素均需滿足 (x,x)∈R(x, x) \in R。

解題方法

此類是非題(True or False)伴隨簡答理由(1-2 句話說明),切入點如下:

  • 判斷為 False 者:最迅速且精準的證明方式為舉出明確反例 (Counterexample)。
  • 判斷為 True 者:直接引用離散數學知名定理(如費馬小定理、歐幾里得質數無限定理)或邏輯直接推導。
  • 寫作時先給出明確的判斷結果(True / False),接著列出精煉的 1~2 句英文答題示範(符合考題規範),最後給出詳細的繁體中文推導說明。

選項分析

(a) If ax=ay(modn)ax = ay \pmod{n}, then x=y(modn)x = y \pmod{n}.

  • 判斷:False
  • 推導與解析:
    在模運算中,消去律成立的前提為 aa 與模數 nn 互質(即 gcd⁡(a,n)=1\gcd(a, n) = 1)。一般的消去律公式為 ax≡ay(modn)  ⟹  x≡y(modngcd⁡(a,n))ax \equiv ay \pmod{n} \implies x \equiv y \pmod{\frac{n}{\gcd(a, n)}}。當 gcd⁡(a,n)>1\gcd(a, n) > 1 時,無法直接消去 aa。
  • 反例驗證:
    取 a=2,x=1,y=4,n=6a = 2, x = 1, y = 4, n = 6。
    此時 ax=2⋅1=2ax = 2 \cdot 1 = 2,且 ay=2⋅4=8≡2(mod6)ay = 2 \cdot 4 = 8 \equiv 2 \pmod{6},滿足 ax≡ay(modn)ax \equiv ay \pmod{n}。
    然而 x=1≢4=y(mod6)x = 1 \not\equiv 4 = y \pmod{6},故命題不成立。
  • 考試英文答題示範:
    False. The cancellation law holds only when gcd⁡(a,n)=1\gcd(a, n) = 1. For example, 2⋅1≡2⋅4(mod6)2 \cdot 1 \equiv 2 \cdot 4 \pmod{6}, but 1≢4(mod6)1 \not\equiv 4 \pmod{6}.

(b) If x=y(modn)x = y \pmod{n}, then ax=ay(modn)ax = ay \pmod{n}.

  • 判斷:True
  • 推導與解析:
    同餘關係對整數乘法具備封閉性。依同餘定義:
    x≡y(modn)  ⟺  n∣(x−y)  ⟺  x−y=kn(k∈Z)x \equiv y \pmod{n} \iff n \mid (x - y) \iff x - y = kn \quad (k \in \mathbb{Z})
    等式兩邊同乘以整數 aa:
    a(x−y)=a(kn)  ⟺  ax−ay=(ak)na(x - y) = a(kn) \iff ax - ay = (ak)n
    因為 ak∈Zak \in \mathbb{Z},故 n∣(ax−ay)n \mid (ax - ay),即 ax≡ay(modn)ax \equiv ay \pmod{n} 對任意整數 aa 恆成立。
  • 考試英文答題示範:
    True. If x≡y(modn)x \equiv y \pmod{n}, then n∣(x−y)n \mid (x - y), which implies n∣a(x−y)=ax−ayn \mid a(x - y) = ax - ay, so ax≡ay(modn)ax \equiv ay \pmod{n}.

(c) The set of integers and the set of prime numbers have the same cardinality.

  • 判斷:True
  • 推導與解析:
    整數集合 Z\mathbb{Z} 為可數無限集,其基數為 ∣Z∣=ℵ0|\mathbb{Z}| = \aleph_0。由歐幾里得定理可知質數有無限多個,故質數集合 P={2,3,5,7,11,… }P = \{2, 3, 5, 7, 11, \dots\} 亦為可數無限集,基數為 ∣P∣=ℵ0|P| = \aleph_0。兩集合基數相同,皆與自然數集 N\mathbb{N} 一一對應。
  • 考試英文答題示範:
    True. Both the set of integers Z\mathbb{Z} and the set of prime numbers are countably infinite, so they both have cardinality ℵ0\aleph_0.

(d) If a relation is symmetric and transitive, then the relation is reflexive.

  • 判斷:False
  • 推導與解析:
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 2 題12 分

  1. 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 nn vertices and m=⌊nd/2⌋m = \lfloor nd/2 \rfloor edges (d>1d > 1). 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 1−1/d1 - 1/d.

(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 nn vertices with m=⌊nd/2⌋m = \lfloor nd/2 \rfloor edges, there is an independent set with at least n/(2d)n/(2d) vertices.

登入後即可作答並保存紀錄。

這一題的完整詳解

(a) 計算期望值

1. 剩餘頂點數之期望值 E[X]\mathbb{E}[X]

設頂點集為 VV,∣V∣=n|V| = n。定義指示隨機變數 XiX_i 為頂點 viv_i 在刪除過程後留下的指示函數(留下來為 1,被刪除為 0)。

每個頂點保留的機率為:
p=1−(1−1d)=1dp = 1 - \left(1 - \frac{1}{d}\right) = \frac{1}{d}

由期望值的線性性質(Linearity of Expectation),剩餘頂點數 X=∑i=1nXiX = \sum_{i=1}^n X_i 的期望值為:
E[X]=∑i=1nE[Xi]=n⋅p=nd\mathbb{E}[X] = \sum_{i=1}^n \mathbb{E}[X_i] = n \cdot p = \frac{n}{d}

2. 剩餘邊數之期望值 E[Y]\mathbb{E}[Y]

設邊集為 EE,∣E∣=m=⌊nd/2⌋|E| = m = \lfloor nd/2 \rfloor。一條邊 e=(u,v)e = (u, v) 會在過程結束後保留,若且唯若其兩個端點 uu 與 vv 同時被保留。

由於各頂點獨立刪除,該邊保留的機率為:
pe=p⋅p=1d⋅1d=1d2p_e = p \cdot p = \frac{1}{d} \cdot \frac{1}{d} = \frac{1}{d^2}

定義指示隨機變數 YjY_j 為邊 eje_j 保留的指示函數,剩餘邊數 Y=∑j=1mYjY = \sum_{j=1}^m Y_j 的期望值為:
E[Y]=∑j=1mE[Yj]=m⋅1d2=⌊nd/2⌋⋅1d2\mathbb{E}[Y] = \sum_{j=1}^m \mathbb{E}[Y_j] = m \cdot \frac{1}{d^2} = \lfloor nd/2 \rfloor \cdot \frac{1}{d^2}

若取 upper bound 忽略取整數符號(⌊nd/2⌋≤nd/2\lfloor nd/2 \rfloor \le nd/2),則:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 3 題10 分

  1. 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 e′∉Te' \notin T, c(e′)≥c(e)c(e') \ge c(e) for all ee in the cycle generated by adding e′e' to T. Also, T is defined to have the cut property if for any edge e∈Te \in T, c(e)≤c(e′)c(e) \le c(e') for all e′e' in the cut defined by ee. Show that the following three statements are equivalent:
  2. T has the cycle property.
  3. T has the cut property.
  4. T is a minimum cost spanning tree.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查圖論(Graph Theory)中**生成樹(Spanning Tree)與最小生成樹(Minimum Cost Spanning Tree, MST)**的經典結構性質及其等價性定理。

設連通賦權圖為 G=(V,E)G = (V, E),其邊權重函數為 c:E→Rc: E \to \mathbb{R},T=(V,ET)T = (V, E_T) 為 GG 的一個生成樹。

  1. 基本環路(Fundamental Cycle)與環路性質(Cycle Property):
    對於任意非樹邊 e′∉Te' \notin T,將 e′e' 加入 TT 中會形成唯一的簡單環路,稱為由 e′e' 誘發的基本環路 C(T,e′)C(T, e')。若對該環路上所有的邊 e∈C(T,e′)e \in C(T, e'),皆滿足 c(e′)≥c(e)c(e') \ge c(e),則稱 TT 具備環路性質。
    (意即:任何非樹邊 e′e' 都是其所產生的基本環路中權重最大者之一。)

  2. 基本割集(Fundamental Cutset)與割集性質(Cut Property):
    對於任意樹邊 e∈Te \in T,將 ee 自 TT 中刪除會使 TT 分裂為兩個獨立的連通元件,進而誘發點集劃分 (V1,V2)(V_1, V_2)。由該劃分所決定的割集為 D(T,e)={(u,v)∈E∣u∈V1,v∈V2}D(T, e) = \{ (u, v) \in E \mid u \in V_1, v \in V_2 \}。若對該割集中所有的邊 e′∈D(T,e)e' \in D(T, e),皆滿足 c(e)≤c(e′)c(e) \le c(e'),則稱 TT 具備割集性質。
    (意即:任何樹邊 ee 都是其所產生的基本割集中權重最小者之一。)

  3. 最小生成樹(Minimum Cost Spanning Tree, MST):
    生成樹 TT 的所有邊權重總和 ∑e∈Tc(e)\sum_{e \in T} c(e) 在 GG 的所有可能生成樹中達到全域最小值。

為了證明三者等價(1⇔2⇔31 \Leftrightarrow 2 \Leftrightarrow 3),最簡潔嚴謹的方法是採取環狀推導法(Circular Proof):分別證明 (1)⇒(2)(1) \Rightarrow (2)、(2)⇒(3)(2) \Rightarrow (3) 與 (3)⇒(1)(3) \Rightarrow (1)。


解題方法

步驟一:證明 (1)⇒(2)(1) \Rightarrow (2) (環路性質 ⇒\Rightarrow 割集性質)

  • 假設:TT 具備環路性質。
  • 目標:證明 TT 亦具備割集性質。
  • 證明推導:
    1. 任取一條樹邊 e=(u,v)∈Te = (u, v) \in T。刪除邊 ee 後,TT 分裂為兩個不相交的頂點子集 V1V_1 與 V2V_2,其中 u∈V1,v∈V2u \in V_1, v \in V_2。
    2. 由 ee 誘發的基本割集為 D(T,e)={(x,y)∈E∣x∈V1,y∈V2}D(T, e) = \{ (x, y) \in E \mid x \in V_1, y \in V_2 \}。
    3. 對於割集 D(T,e)D(T, e) 中的任意邊 e′e':
      • 若 e′=ee' = e,顯然 c(e)≤c(e′)c(e) \le c(e') 恆成立。
      • 若 e′≠ee' \neq e,則必有 e′∉Te' \notin T。將 e′e' 加入 TT 中會形成唯一的簡單基本環路 C(T,e′)C(T, e')。
      • 由於 e′e' 的兩端點分別位於 V1V_1 與 V2V_2,在生成樹 TT 中連接這兩端點的唯一簡單路徑必然跨越割集 (V1,V2)(V_1, V_2)。而在 TT 中跨越此割集的邊僅有 ee 自身。
      • 因此,樹邊 ee 必定落在基本環路 C(T,e′)C(T, e') 上,即 e∈C(T,e′)e \in C(T, e')。
      • 根據假設,TT 具備環路性質,故對環路 C(T,e′)C(T, e') 上的所有邊 ee,均滿足 c(e′)≥c(e)c(e') \ge c(e),即 c(e)≤c(e′)c(e) \le c(e')。
    4. 由於對所有 e′∈D(T,e)e' \in D(T, e) 皆滿足 c(e)≤c(e′)c(e) \le c(e'),故 TT 具備割集性質。 ■\blacksquare

步驟二:證明 (2)⇒(3)(2) \Rightarrow (3) (割集性質 ⇒\Rightarrow 最小生成樹)

  • 假設:TT 具備割集性質。
  • 目標:證明 TT 為最小生成樹(MST)。
  • 證明推導(採用替換論證法 Exchange Argument 與反證法):
    1. 假設 TT 不是最小生成樹。設 T∗T^* 為圖 GG 的某個最小生成樹,且 T∗T^* 滿足「與 TT 擁有最多相同邊」的條件。
    2. 若 T≠T∗T \neq T^*,則必存在至少一條樹邊 e∈T∖T∗e \in T \setminus T^*。
    3. 從 TT 中刪除邊 ee 將點集 VV 切割為 V1V_1 與 V2V_2,對應的基本割集為 D(T,e)D(T, e)。
    4. 因為 T∗T^* 是連通的生成樹,在 T∗T^* 中必定存在至少一條邊 e′∈T∗e' \in T^* 跨越割集 (V1,V2)(V_1, V_2),即 e′∈D(T,e)e' \in D(T, e)。注意此時 e′∉Te' \notin T(因為 TT 中跨越該割集的邊只有 ee)。
    5. 根據假設 TT 具備割集性質,對於割集 D(T,e)D(T, e) 中的邊 e′e',必有 c(e)≤c(e′)c(e) \le c(e')。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 4 題8 分

  1. Respect for the ancients. [8 points] Find an integer x such that x≡1(mod3)x \equiv 1 \pmod{3}, x≡3(mod7)x \equiv 3 \pmod{7} and x≡9(mod11)x \equiv 9 \pmod{11}.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

本題考查**中國剩餘定理(Chinese Remainder Theorem, CRT)與聯立同餘方程組(System of Linear Congruences)**的求解。

中國剩餘定理 (CRT):
設 m1,m2,…,mnm_1, m_2, \dots, m_n 為兩兩互質(relatively prime)的正整數,且總模數 M=∏i=1nmiM = \prod_{i=1}^n m_i。對於任意整數 a1,a2,…,ana_1, a_2, \dots, a_n,聯立同餘方程組:
x≡ai(modmi),i=1,2,…,nx \equiv a_i \pmod{m_i}, \quad i = 1, 2, \dots, n
在模 MM 下存在唯一解,表示為:
x≡(∑i=1naiMiyi)(modM)x \equiv \left( \sum_{i=1}^n a_i M_i y_i \right) \pmod M
其中 Mi=MmiM_i = \frac{M}{m_i},且 yiy_i 為 MiM_i 對模數 mim_i 的乘法反元素(乘法逆元),即滿足 Miyi≡1(modmi)M_i y_i \equiv 1 \pmod{m_i}。


解題方法

本題給定之同餘方程組為:
{x≡1(mod3)x≡3(mod7)x≡9(mod11)\begin{cases} x \equiv 1 \pmod{3} \\ x \equiv 3 \pmod{7} \\ x \equiv 9 \pmod{11} \end{cases}

步驟一:確認條件與計算總模數

模數分別為 m1=3,m2=7,m3=11m_1 = 3, m_2 = 7, m_3 = 11。
由於 gcd⁡(3,7)=gcd⁡(7,11)=gcd⁡(3,11)=1\gcd(3,7) = \gcd(7,11) = \gcd(3,11) = 1,滿足兩兩互質條件。
總模數 M=3×7×11=231M = 3 \times 7 \times 11 = 231。

步驟二:計算各項的 MiM_i 與乘法反元素 yiy_i

  1. 針對 m1=3m_1 = 3:
    M1=2313=77M_1 = \frac{231}{3} = 77
    求解 77y1≡1(mod3)77 y_1 \equiv 1 \pmod 3:
    77≡2(mod3)  ⟹  2y1≡1(mod3)  ⟹  y1≡2(mod3)77 \equiv 2 \pmod 3 \implies 2 y_1 \equiv 1 \pmod 3 \implies y_1 \equiv 2 \pmod 3

  2. 針對 m2=7m_2 = 7:
    M2=2317=33M_2 = \frac{231}{7} = 33
    求解 33y2≡1(mod7)33 y_2 \equiv 1 \pmod 7:
    33≡5(mod7)  ⟹  5y2≡1(mod7)  ⟹  −2y2≡1(mod7)  ⟹  y2≡3(mod7)33 \equiv 5 \pmod 7 \implies 5 y_2 \equiv 1 \pmod 7 \implies -2 y_2 \equiv 1 \pmod 7 \implies y_2 \equiv 3 \pmod 7

  3. 針對 m3=11m_3 = 11:
    M3=23111=21M_3 = \frac{231}{11} = 21
    求解 21y3≡1(mod11)21 y_3 \equiv 1 \pmod{11}:

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 5 題10 分

  1. 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.

登入後即可作答並保存紀錄。

這一題的完整詳解

核心觀念

  1. 合數(Composite Number)的定義:
    正整數 m>1m > 1 若除了 11 與自身之外,還存在其他正整數因數,即稱為合數。換言之,若存在整數 kk 滿足 1<k<m1 < k < m 且 k∣mk \mid m,則 mm 必為合數。

  2. 階乘(Factorial)的整除性質:
    對於任意正整數 mm,階乘 m!=1×2×3×⋯×mm! = 1 \times 2 \times 3 \times \dots \times m 必能被 2,3,…,m2, 3, \dots, m 當中的任意整數整除。

  3. 數論整除的線性組合性質:
    若整數 d∣ad \mid a 且 d∣bd \mid b,則 d∣(a+b)d \mid (a + b)。


解題方法

本題要求證明對任意正整數 nn,皆存在 nn 個連續的合數。最直接且嚴密的證明方式為顯式構造法(Explicit Construction)。

完整推導與證明步驟:

  1. 構造目標數列:
    對任意給定的正整數 nn,構造以下 nn 個連續整數:
    ak=(n+1)!+k,其中 k=2,3,4,…,n+1a_k = (n+1)! + k, \quad \text{其中 } k = 2, 3, 4, \dots, n+1

  2. 驗證項數與連續性:
    數列從 k=2k = 2 開始至 k=n+1k = n+1 結束,其項數為:
    (n+1)−2+1=n(n+1) - 2 + 1 = n
    且各項相差 11,故此 nn 個數為連續正整數。

  3. 證明每一項皆為合數:
    對於數列中的任意一項 ak=(n+1)!+ka_k = (n+1)! + k(其中 2≤k≤n+12 \le k \le n+1):

    • 因為 2≤k≤n+12 \le k \le n+1,在連乘積 (n+1)!=1×2×⋯×k⋯×(n+1)(n+1)! = 1 \times 2 \times \dots \times k \dots \times (n+1) 中必然包含因子 kk,故 k∣(n+1)!k \mid (n+1)!。
    • 顯然 k∣kk \mid k。
    • 根據整除的可加性,可得 k∣((n+1)!+k)k \mid \left( (n+1)! + k \right)。
    • 又因為 k≥2k \ge 2,且 (n+1)!≥2(n+1)! \ge 2,可知 (n+1)!+k>k(n+1)! + k > k。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 6 題13 分

  1. 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 遊戲必在有限次移動內結束

令遊戲起始點數為 nn。

  1. 初始狀態:

    • 每個點最多能連接 33 條邊,稱點的剩餘連接度(Degree capacity)總和為「可用點度數」(Lives)。
    • 初始狀態下,每個點有 33 個 Lives,故初始總 Lives 為 3n3n。
  2. 每一步移動對 Lives 的變動:

    • 連接兩個舊點(或同一個點的兩端)消耗 22 個 Lives。
    • 在新畫的線上新增 11 個新點,該點連接剛剛畫出的 22 條新邊,故該新點消耗 22 個 Lives,剩餘 3−2=13 - 2 = 1 個 Life。
    • 因此,每次移動淨消耗的 Lives 數為:2−1=12 - 1 = 1 個 Life。
  3. 結論:

    • 遊戲過程中的總 Lives 數從 3n3n 開始,每移動一次恰好減少 11。
    • 因為總 Lives 數恆為非負整數(≥0\ge 0),所以總移動次數不可能超過 3n3n 次。
    • 因此,任何 Sprouts 遊戲必在有限次移動內終止。

(b) 求解並證明初始 nn 個點的極限最大移動次數(Tight Upper Bound)

【答案】
最壞情況下的最大移動次數緊緻上界為 3n−13n - 1 次。

證明:

  1. 點與邊的動態數量關係:
    • 設經歷 mm 次移動後,遊戲中的總點數為 VV,總邊數為 EE。
    • 初始時 V=nV = n,E=0E = 0。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 7 題12 分

  1. 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 G1G_1 and H1H_1, as well as two isomorphic graphs G2G_2 and H2H_2. Prove or disprove that G1∪G2G_1 \cup G_2 and H1∪H2H_1 \cup H_2 are also isomorphic.


破題觀念

  1. 圖聯集(Graph Union)定義:G1∪G2=(V(G1)∪V(G2),E(G1)∪E(G2))G_1 \cup G_2 = (V(G_1) \cup V(G_2), E(G_1) \cup E(G_2))。
  2. 同構關鍵:同構的充分必要條件是頂點集合間存在一個保持邊對應關係的一對一且映射(Bijective)映射函數。若頂點集交集結構(重疊方式)不同,聯集後的結構可能改變。
  3. 反例證明法:若要否定(Disprove)一個命題,只需舉出一個具體反例。

詳細證明與反例

本命題為不成立(Disprove)。

反例構造:

取四個頂點皆為 {1,2,3}\{1, 2, 3\} 的圖:

  • 令 G1=(V1,E1)G_1 = (V_1, E_1),其中 V1={1,2,3}V_1 = \{1, 2, 3\}, E1={(1,2)}E_1 = \{(1, 2)\} (單條邊圖)。
  • 令 H1=(V1′,E1′)H_1 = (V_1', E_1'),其中 V1′={1,2,3}V_1' = \{1, 2, 3\}, E1′={(1,2)}E_1' = \{(1, 2)\} (單條邊圖)。
🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 8 題14 分

  1. 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 T(n)=3T(⌊n/4⌋)+Θ(n2)T(n) = 3T(\lfloor n/4 \rfloor) + \Theta(n^2) in the Θ\Theta-notation.
    (b) [7 points] Solve the time complexity of recurrence T(n)=2T(⌊n/2⌋+n)+n/4T(n) = 2T(\lfloor n/2 \rfloor + \sqrt{n}) + \sqrt{n}/4 in the Θ\Theta-notation without using Master method.

登入後即可作答並保存紀錄。

這一題的完整詳解

8(a)

【觀念要點】
畫出遞迴樹(Recurrence Tree),統計各層成本(Cost)後求和。

【關鍵步驟】

  1. 樹的結構分析:

    • 頂點(第 00 層)成本為 c⋅n2c \cdot n^2。
    • 每層一個節點分裂為 33 個子節點,子問題規模為原本的 ⌊n/4⌋\lfloor n/4 \rfloor。
    • 第 ii 層的節點數為 3i3^i,每個節點成本為 c⋅(n4i)2=c⋅n2⋅(116)ic \cdot \left(\frac{n}{4^i}\right)^2 = c \cdot n^2 \cdot \left(\frac{1}{16}\right)^i。
  2. 每層成本總和:
    Costi=3i⋅c⋅n2⋅(116)i=c⋅n2(316)iCost_i = 3^i \cdot c \cdot n^2 \cdot \left(\frac{1}{16}\right)^i = c \cdot n^2 \left(\frac{3}{16}\right)^i

  3. 遞迴樹深度:
    最底層深度為 k=log⁡4nk = \log_4 n。
    葉節點數量為 3k=3log⁡4n=nlog⁡433^k = 3^{\log_4 n} = n^{\log_4 3},葉節點總成本為 Θ(nlog⁡43)\Theta(n^{\log_4 3})。

  4. 總成本求和:
    T(n)=∑i=0log⁡4n−1c⋅n2(316)i+Θ(nlog⁡43)T(n) = \sum_{i=0}^{\log_4 n - 1} c \cdot n^2 \left(\frac{3}{16}\right)^i + \Theta(n^{\log_4 3})
    由於無窮等比級數 ∑i=0∞(316)i=11−3/16=1613\sum_{i=0}^{\infty} \left(\frac{3}{16}\right)^i = \frac{1}{1 - 3/16} = \frac{16}{13} 收斂為常數:
    T(n)≤c⋅n2∑i=0∞(316)i+Θ(nlog⁡43)=1613c⋅n2+Θ(nlog⁡43)=Θ(n2)T(n) \le c \cdot n^2 \sum_{i=0}^{\infty} \left(\frac{3}{16}\right)^i + \Theta(n^{\log_4 3}) = \frac{16}{13} c \cdot n^2 + \Theta(n^{\log_4 3}) = \Theta(n^2)

【答案】T(n)=Θ(n2)T(n) = \Theta(n^2)


8(b)

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

第 None 題

注意:背面有試題

登入後即可作答並保存紀錄。

這一題的完整詳解

本題原始試題內文僅標示「注意:背面有試題」,缺乏具體的試題敘述與選項內容。以下在合理假設下,補充台聯大電機類離散數學高頻考題「二階非齊次線性遞迴關係」進行完整解析。

題目內容(合理假設)
已知遞迴關係式 an−5an−1+6an−2=4na_n - 5a_{n-1} + 6a_{n-2} = 4^n (其中 n≥2n \ge 2),且初始條件為 a0=2,a1=7a_0 = 2, a_1 = 7。試判斷下列選項何者正確:
(A) 齊次解之特徵根為 r=1,6r = 1, 6
(B) 特解的形式可設為 an(p)=C⋅4na_n^{(p)} = C \cdot 4^n
(C) 特解常數為 C=8C = 8
(D) 通解為 an=2n+3n+4n+1a_n = 2^n + 3^n + 4^{n+1}
(E) a2=37a_2 = 37


核心觀念

本題考查**常係數線性非齊次遞迴關係(Linear Non-homogeneous Recurrence Relation with Constant Coefficients)**的求解步驟:

  1. 齊次解 an(h)a_n^{(h)}:考慮對應的齊次方程式 an−5an−1+6an−2=0a_n - 5a_{n-1} + 6a_{n-2} = 0,求解特徵方程式(Characteristic Equation) r2−5r+6=0r^2 - 5r + 6 = 0 得到特徵根 r1,r2r_1, r_2。齊次解形式為 an(h)=c1r1n+c2r2na_n^{(h)} = c_1 r_1^n + c_2 r_2^n。
  2. 特解 an(p)a_n^{(p)}:根據非齊次項 F(n)=4nF(n) = 4^n 的形式,利用待定係數法(Method of Undetermined Coefficients)假設特解形式。若 F(n)=d⋅knF(n) = d \cdot k^n 且 kk 不是特徵根,則設 an(p)=C⋅kna_n^{(p)} = C \cdot k^n。
  3. 通解與初始條件:將齊次解與特解相加得到通解 an=an(h)+an(p)a_n = a_n^{(h)} + a_n^{(p)},再代入初始條件 a0,a1a_0, a_1 聯立求解未定常數 c1,c2c_1, c_2。

解題方法

第一步:求解齊次解 an(h)a_n^{(h)}

考慮齊次方程式:
an−5an−1+6an−2=0a_n - 5a_{n-1} + 6a_{n-2} = 0

寫出特徵方程式:
r2−5r+6=0r^2 - 5r + 6 = 0

因式分解得:
(r−2)(r−3)=0  ⟹  r1=2,r2=3(r - 2)(r - 3) = 0 \implies r_1 = 2, r_2 = 3

因此齊次解為:
an(h)=c1⋅2n+c2⋅3na_n^{(h)} = c_1 \cdot 2^n + c_2 \cdot 3^n

第二步:求解特解 an(p)a_n^{(p)}

非齊次項為 F(n)=4nF(n) = 4^n。因為底數 44 不等於任何特徵根(22 與 33),故假設特解為:
an(p)=C⋅4na_n^{(p)} = C \cdot 4^n

將特解代入原遞迴關係式:
C⋅4n−5C⋅4n−1+6C⋅4n−2=4nC \cdot 4^n - 5 C \cdot 4^{n-1} + 6 C \cdot 4^{n-2} = 4^n

兩邊同除以 4n−24^{n-2}:
16C−20C+6C=1616C - 20C + 6C = 16

同類項合併:
2C=16  ⟹  C=82C = 16 \implies C = 8

故特解為:
an(p)=8⋅4na_n^{(p)} = 8 \cdot 4^n

🔒

後續完整解題步驟與【答案】

免費註冊,享三天全站完整詳解閱覽。

免費註冊

其他考古題