免費詳解 / 台大 / 數學 / 104

104 台大資工所考古題解答|數學逐題詳解

104 台大資工所數學考古題的逐題詳解,共 11 題,免費公開。

逐題詳解

15%

1. (5%) Which of the following are equivalent to \(p\to q\)? ______

(a) \(\neg p\lor q\)

(b) \(\neg p\to\neg q\)

(c) \(q\to p\)

(d) \(\neg q\to\neg p\)

(e) \(\neg q\to p\)

\(p\)\(q\)\(p\to q\)(a)(b)(c)(d)(e)
TTTTTTTT
TFFFTTFT
FTTTFFTT
FFTTTTTF

(a) 就是 \(p\to q\) 的定義;(d) 是 contrapositive;(b) 是 inverse、(c) 是 converse,兩者等價於彼此但不等價於 \(p\to q\);(e) 在 \(p=F,q=F\) 時為 F

(a)、(d)

25%

2. (5%) The maximum flow from node 12 to node 1 of the following network is ______.

12963118521074155473544426532213

無向邊(沒有箭頭),每邊容量如圖。上界:進到 node 1 的兩條邊 \(2\to1\)(2)、\(4\to1\)(3)→ cut \(\{1\}\) 容量 \(2+3=5\)

兩條路徑把它送滿:

\(12\to9\to6\to3\to2\to1\):瓶頸 \(\min(5,5,4,4,2)=2\)

\(12\to9\to6\to5\to4\to1\):剩餘容量 \(12\!-\!9\):3、\(9\!-\!6\):3、\(6\!-\!5\):5、\(5\!-\!4\):3、\(4\!-\!1\):3 → 瓶頸 3

12963118521074155473544426532213

min cut 就是 \(\{1\}\),容量 5

\(2+3=5\)

310%

3. (10%) Simplify \(\sum_{i=0}^{n}\binom ni2^i\): ______.

二項式定理:\((1+x)^n=\sum_{i=0}^n\binom nix^i\),代入 \(x=2\)

\(3^n\)

410%

4. (10%) The Euler function \(\phi(120)=\) ______.

\(120=2^3\cdot3\cdot5\)

\(\phi(120)=120\cdot\Big(1-\dfrac12\Big)\Big(1-\dfrac13\Big)\Big(1-\dfrac15\Big)=120\cdot\dfrac12\cdot\dfrac23\cdot\dfrac45\)

或 \(\phi(8)\phi(3)\phi(5)=4\cdot2\cdot4\)

\(32\)

510%

5. (10%) The number of nonnegative integer solutions of

\(x_1+x_2+\cdots+x_n=r,\)

where \(1\le x_1\lt x_2\lt\cdots\lt x_n\le r\) is ______.

就是把 \(r\) 分成 \(n\) 個相異正整數(\(x_n\le r\) 自動成立)

令 \(d_1=x_1\ge1\),\(d_i=x_i-x_{i-1}\ge1\)(\(i\ge2\));\(x_k=d_1+\cdots+d_k\)

\(r=\sum_kx_k=n\,d_1+(n-1)\,d_2+\cdots+2\,d_{n-1}+1\cdot d_n\)

每個 \(d_i\) 都減 1(\(e_i=d_i-1\ge0\)):\(r-\dfrac{n(n+1)}2=n\,e_1+(n-1)\,e_2+\cdots+1\cdot e_n\)

右邊就是把 \(m=r-\dfrac{n(n+1)}2\) 分成大小 \(\le n\) 的部分(partition,部分可重複、個數不限)

generating function:每種大小 \(k\) 的部分貢獻 \(\dfrac1{1-x^k}\)

沒有更簡的封閉式。驗:\(n=2,r=7\):\((1,6),(2,5),(3,4)\) 共 3;\(m=4\) 分成 \(\le2\) 的部分:\(2+2,\,2+1+1,\,1+1+1+1\) 共 3 ✓;\(r\lt\tfrac{n(n+1)}2\) 時為 0

\(\displaystyle[x^{\,r}]\ \dfrac{x^{n(n+1)/2}}{(1-x)(1-x^2)\cdots(1-x^n)}\) = 把 \(r-\tfrac{n(n+1)}2\) 分成大小 \(\le n\) 的部分的方法數

610%

6. (10%) Solve the recurrence equation \(a_n=2\times a_{n-1}+3^{n-1}\) with \(a_0=2\) for \(a_n\).

齊次:\(a_n^{(h)}=C\cdot2^n\)

特解設 \(A\cdot3^n\):\(A3^n=2A3^{n-1}+3^{n-1}\) → \(3A=2A+1\) → \(A=1\)

\(a_n=C\cdot2^n+3^n\),\(a_0=C+1=2\) → \(C=1\)

驗:\(a_1=2\cdot2+1=5=2+3\);\(a_2=2\cdot5+3=13=4+9\)

\(a_n=2^n+3^n\)

710%

7. (10%) Alice writes down the following function \(f\) in her email to Bob and claims that \(f\) is an inner-product function for the vector space consisting of all \(2\times2\) complex matrices:

\(f(X,Y)=\operatorname{tr}(XY).\)

Specifically, for any \(2\times2\) matrices \(X\) and \(Y\) whose elements are complex numbers, the value of \(f(X,Y)\) is the trace of the product of \(X\) and \(Y\). Bob immediately notices that there must be something wrong with Alice's email. What can be the possible reason or reasons for Bob's observation?

(a) Bob notices that \(f\) has this nice property that \(f(X,Y)=f(Y,X)\) holds for all \(X\) and \(Y\). This nice property prevents \(f\) from being a legal inner-product function for a vector space over complex numbers.

(b) Bob notices that there are \(X\) and \(Y\) such that \(f(X,Y)\) is a complex number. Since inner-product functions are defined to measure distances, lengths, and areas, the values of \(f(X,Y)\) are not allowed to be complex numbers.

(c) In order for \(f\) to be a legal inner-product function, for any matrix \(Y\), the function \(g_Y(X)=f(X,Y)\) has to be a linear function. Bob notices that there is a matrix \(Y\) such that \(g_Y\) is not linear.

(d) In order for \(f\) to be a legal inner-product function, for any matrix \(X\), the function \(h_X(Y)=f(X,Y)\) has to be a linear function. Bob notices that there is a matrix \(X\) such that \(h_X\) is not linear.

complex inner product 的公理:conjugate symmetry \(\langle X,Y\rangle=\overline{\langle Y,X\rangle}\)、一個變數 linear(另一個 conjugate-linear)、\(\langle X,X\rangle\gt0\)(\(X\ne0\))

(a) \(f(X,Y)=\operatorname{tr}(XY)=\operatorname{tr}(YX)=f(Y,X)\)。若它又是 inner product,則 \(f(X,Y)=\overline{f(Y,X)}=\overline{f(X,Y)}\),\(f\) 恆為實數;但取 \(Y=iX\):\(f(X,iX)=\bar i f(X,X)=-i\,f(X,X)\) 要是實數 → \(f(X,X)=0\),與 positive definite 矛盾 → 這個性質確實擋掉它 → 對

(b) complex inner product 的值本來就可以是複數(只有 \(\langle X,X\rangle\) 必須是非負實數) → 錯

(c) 固定 \(Y\),\(g_Y(X)=\operatorname{tr}(XY)\) 對 \(X\) 是 linear(trace 與矩陣乘法都線性),Bob 找不到不 linear 的 \(Y\) → 錯

(d) \(h_X(Y)=\operatorname{tr}(XY)\) 對 \(Y\) 也是 linear,Bob 找不到不 linear 的 \(X\)(而且 complex inner product 在第二個變數應是 conjugate-linear,不是 linear) → 錯

另一個沒列出的理由:\(f(X,X)=\operatorname{tr}(X^2)\),\(X=iI\) 時為 \(-2\lt0\),不是 positive definite

(a)

810%

8. (10%) Let

\(A=\begin{pmatrix}-1&1&3&-1&0\\3&-1&-5&1&-6\\1&0&-1&2&1\\-2&1&4&-1&3\end{pmatrix}.\)

What is the maximum rank of all \(5\times5\) real matrices \(B\) such that \(AB\) is the \(4\times5\) zero matrix?

\(AB=0\) ⟺ \(B\) 的每個 column 都在 \(\ker A\) 裡 → \(\operatorname{col}(B)\subseteq\ker A\) → \(\operatorname{rank}B\le\dim\ker A\)

列運算(\(R_2\!+\!3R_1,\ R_3\!+\!R_1,\ R_4\!-\!2R_1\)):

\(\begin{pmatrix}-1&1&3&-1&0\\0&2&4&-2&-6\\0&1&2&1&1\\0&-1&-2&1&3\end{pmatrix}\)

\(R_4+\tfrac12R_2\) 後第 4 列變 \(0\)(\(-1+1=0,\ -2+2=0,\ 1-1=0,\ 3-3=0\));\(R_3-\tfrac12R_2\):\((0,0,0,2,4)\)

pivot:第 1、2、4 行 → \(\operatorname{rank}A=3\) → \(\dim\ker A=5-3=2\)

取 \(B\) 的 column space = \(\ker A\)(兩個 column 取 \(\ker A\) 的基底,其餘為 0 或它們的組合)→ 可達 2

\(2\)

910%

9. (10%) What is the sum of the eigenvalues of the following matrix?

\(\begin{pmatrix}2&0&-2&0\\0&2&0&-2\\-2&0&2&0\\0&-2&0&2\end{pmatrix}\)

eigenvalue 的和 = trace = \(2+2+2+2=8\)

這個矩陣是 \(\begin{pmatrix}1&-1\\-1&1\end{pmatrix}\otimes2I_2\),eigenvalue 為 \(4,4,0,0\),和 8

\(8\)

1010%

10. (10%) Consider the vector space \(V\) over real numbers that is spanned by three \(2\times2\) matrices \(A_1\), \(A_2\), and \(A_3\), where

\(A_1=\begin{pmatrix}7&-17\\2&-6\end{pmatrix},\ A_2=\begin{pmatrix}3&5\\-1&1\end{pmatrix},\ \text{and}\ A_3=\begin{pmatrix}-1&-9\\5&-1\end{pmatrix}.\)

Let

\(B_1=\dfrac1{3\sqrt2}\begin{pmatrix}3&-1\\2&-2\end{pmatrix}\ \text{and}\ B_2=\dfrac1{3\sqrt2}\begin{pmatrix}-2&2\\3&-1\end{pmatrix}.\)

Find a matrix \(B_3\) such that \(B_1\), \(B_2\), and \(B_3\) form an orthonormal basis of \(V\) with respect to the standard inner product for \(V\) defined by \(\left\langle\begin{pmatrix}c_1&c_2\\c_3&c_4\end{pmatrix},\begin{pmatrix}d_1&d_2\\d_3&d_4\end{pmatrix}\right\rangle=c_1d_1+c_2d_2+c_3d_3+c_4d_4.\)

把 \(2\times2\) 矩陣當成 \((a,b,c,d)\in\mathbb R^4\)(列優先),內積就是 dot product

\(B_1,B_2\):\(\|B_1\|^2=\dfrac{9+1+4+4}{18}=1\),\(\|B_2\|^2=\dfrac{4+4+9+1}{18}=1\),\(\langle B_1,B_2\rangle=\dfrac{-6-2+6+2}{18}=0\) → 標準正交

\(B_3\) 要在 \(V\) 內、單位長、與 \(B_1,B_2\) 都正交。用 \(B_1'=(3,-1,2,-2)\)、\(B_2'=(-2,2,3,-1)\) 試 \(A_2=(3,5,-1,1)\):

\(A_2\cdot B_1'=9-5-2-2=0\),\(A_2\cdot B_2'=-6+10-3-1=0\),\(\|A_2\|=\sqrt{9+25+1+1}=6\)

\(A_2\in V\),且與 \(B_1,B_2\) 正交 → \(B_3=\pm\dfrac{A_2}6\)

驗 \(V=\operatorname{span}(B_1,B_2,B_3)\):\(A_1=3B_1'-2B_2'-2A_2\)(逐項:\((9+4-6,\,-3-4-10,\,6-6+2,\,-6+2-2)=(7,-17,2,-6)\)) ✓

\(A_3\):若 \(A_3=\begin{pmatrix}-1&9\\5&-1\end{pmatrix}\),則 \(A_3=2B_2'+A_2\) ✓,三個 \(A_i\) 都在 \(\operatorname{span}(B_1',B_2',A_2)\) 內,\(V\) 恰是這個 3 維空間

卷面印的是 \(A_3=\begin{pmatrix}-1&-9\\5&-1\end{pmatrix}\)(−9)。照這個寫法,\(V\) 是超平面 \(2a-6b-7c+17d=0\)(\(A_1,A_2,A_3\) 都滿足),而 \(B_1\) 代入得 \(-36/(3\sqrt2)\ne0\),\(B_1,B_2\notin V\),嚴格說不存在能讓 \(B_1,B_2,B_3\) 成為 \(V\) 的標準正交基底的 \(B_3\)。\(A_1=3B_1'-2B_2'-2A_2\)、\(A_2=6B_3\) 都是照 \(B_1,B_2,B_3\) 配出來的,只有 \(A_3\) 的 −9 對不上,推測是題目的筆誤(應為 +9);題目要的答案是 \(B_3=\pm A_2/6\)

\(B_3=\pm\dfrac16\begin{pmatrix}3&5\\-1&1\end{pmatrix}\)

1110%

11. (10%) Let \(V\) be the vector space consisting of all \(2\times2\) real matrices. Let \(\beta\) be the standard ordered basis consisting of \(\beta_1,\ldots,\beta_4\) in that order, where

\(\beta_1=\begin{pmatrix}1&0\\0&0\end{pmatrix},\ \beta_2=\begin{pmatrix}0&1\\0&0\end{pmatrix},\ \beta_3=\begin{pmatrix}0&0\\1&0\end{pmatrix},\ \beta_4=\begin{pmatrix}0&0\\0&1\end{pmatrix}.\)

The function \(f\) defined by

\(f(X,Y)=\operatorname{tr}(X)\cdot\operatorname{tr}(Y)\)

for any matrices \(X\) and \(Y\) in \(V\) is known to be in bilinear form. What is the matrix representation of the function \(f\) in bilinear form with respect to the ordered basis \(\beta\)? (The answer is a \(4\times4\) real matrix.)

矩陣的第 \((i,j)\) 項 = \(f(\beta_i,\beta_j)=\operatorname{tr}(\beta_i)\operatorname{tr}(\beta_j)\)

\(\operatorname{tr}(\beta_1)=1,\ \operatorname{tr}(\beta_2)=0,\ \operatorname{tr}(\beta_3)=0,\ \operatorname{tr}(\beta_4)=1\) → \(t=(1,0,0,1)^T\),矩陣 \(=t\,t^T\)

\(\begin{pmatrix}1&0&0&1\\0&0&0&0\\0&0&0&0\\1&0&0&1\end{pmatrix}\)

109–115 的詳解也是這樣寫的。

國立臺灣大學 109–115 的詳解收錄在付費版;106–115 全年度完整詳解共 367 頁,逐題推導。

購買 · NT$ 850 看台大其他免費詳解

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

題目有錯、詳解看不懂,都歡迎來信

想許願補哪一份、對購買有疑問也可以,收到後會盡快回覆。

william.chou.123123@gmail.com