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

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

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

逐題詳解

15%

From Problem 1 to Problem 4, your answer will be considered correct only if all the true statements are selected.

1. (5%) Let \(A,B\in M_{n\times n}(F)\), where \(F=\mathbb C\) or \(\mathbb R\). Which of the following statements are true?

(a) \(tr(AB)=tr(BA)\)

(b) \(tr(AB)=tr(A)tr(B)\)

(c) \(tr(B^{-1}AB)=tr(A)\)

(d) \(tr(A^k)=(tr(A))^k\)

(e) \(tr(A\pm B)=tr(A)\pm tr(B)\)

(a) \(tr(AB)=\sum_i\sum_ja_{ij}b_{ji}=\sum_j\sum_ib_{ji}a_{ij}=tr(BA)\) → T

(b) \(A=B=I_2\):\(tr(I)=2\),\(tr(I)\,tr(I)=4\) → F

(c) \(tr\big(B^{-1}(AB)\big)=tr\big((AB)B^{-1}\big)=tr(A)\)(用 (a)) → T

(d) \(A=I_2,\ k=2\):\(tr(A^2)=2\),\((tr A)^2=4\) → F

(e) trace 是對角線的和,\((A\pm B)_{ii}=a_{ii}\pm b_{ii}\) → T

(a)、(c)、(e)

25%

2. (5%) Let \(A,B\in M_{n\times n}(F)\), where \(F=\mathbb C\) or \(\mathbb R\). Which of the following statements are true?

(a) \(det\,(AB)=det(BA)\)

(b) \(det(AB)=det(A)det(B)\)

(c) \(det(B^{-1}AB)=det(A)\)

(d) \(det(A^k)=(det\,(A))^k\)

(e) \(det(A\pm B)=det(A)\pm det(B)\)

(b) 行列式的乘法性質 → T

(a) \(det(AB)=det A\,det B=det B\,det A=det(BA)\) → T

(c) \(det(B^{-1}AB)=\dfrac1{det B}\,det A\,det B=det A\) → T

(d) (b) 連用 \(k\) 次 → T

(e) \(A=\begin{bmatrix}1&0\\0&0\end{bmatrix}\)、\(B=\begin{bmatrix}0&0\\0&1\end{bmatrix}\):\(det(A+B)=1\),\(det A+det B=0\) → F

(a)、(b)、(c)、(d)

35%

3. (5%) Which of the following statements are true?

(a) If A and B are invertible matrices, then the matrix \(C=A^{-1}+B^{-1}\) is also invertible.

(b) If \(R\) is a rectangular matrix, then \(A=R^TR\) is positive definite.

(c) Every orthogonal set is linearly independent.

(d) \(T=\begin{pmatrix}T_{11}&T_{12}\\0&T_{22}\end{pmatrix}\), where \(T_{11}\) is a \(p\times p\) matrix, \(T_{22}\) is a \(q\times q\) matrix, and \(T_{12}\) is a \(p\times q\) matrix. The set of eigenvalues of \(T\) is the union of the sets of eigenvalues of \(T_{11}\) and \(T_{22}\).

(e) If \(T:V\to W\) is a linear transformation with \(V\) and \(W\) vector spaces over a field \(F\). Then, \(ker(T)\) is a vector space.

(a) \(A=I,\ B=-I\):都可逆,\(A^{-1}+B^{-1}=O\) 不可逆 → F

(b) \(R^TR\) 只保證 positive semidefinite(\(x^TR^TRx=\|Rx\|^2\ge0\));\(R=\begin{bmatrix}1&1\end{bmatrix}\):\(R^TR=\begin{bmatrix}1&1\\1&1\end{bmatrix}\) 是 singular,\(x=(1,-1)^T\) 得 0 → F

(c) orthogonal set 可以含零向量:\(\{(1,0,0)^T,(0,0,0)^T\}\) 兩兩內積為 0 卻相依(要「非零」才成立) → F

(d) \(\det(T-\lambda I)=\det(T_{11}-\lambda I_p)\det(T_{22}-\lambda I_q)\)(block 上三角),根就是兩塊根的聯集 → T

(e) \(T(0)=0\);\(T(u)=T(v)=0\Rightarrow T(au+bv)=aT(u)+bT(v)=0\),對加法與純量乘法封閉 → T

(d)、(e)

410%

4. (10%) Let vectors \(x\in\mathbb R^n\) be represented as \(x=(x_1,\ldots,x_n)^T\). Which of the following sets is a subspace of \(\mathbb R^n\)?

(a) \(\{x\in\mathbb R^n\mid\sum_{i=1}^nx_i^2=n^2\}\)

(b) \(\{x\in\mathbb R^n\mid x_1=1\}\)

(c) \(\{x\in\mathbb R^n\mid\sum_{i=1}^n\alpha_ix_i=\min_i(\alpha_i)\}\) for some known constants \(\alpha_i\in\mathbb R\).

(d) \(\{x\in\mathbb R^n\mid x_{2i}=x_{2i-1},\forall i=1,\ldots,n/2\}\), where \(n\) is assumed to be even in this case.

(e) \(\{x\in\mathbb R^n\mid x_{2i}-x_{2i-1}=1,\forall i=1,\ldots,n/2\}\), where \(n\) is assumed to be even in this case.

subspace 一定含零向量,且對加法、純量乘法封閉

(a) \(x=0\) 時 \(\sum x_i^2=0\ne n^2\),零向量不在內 → F

(b) \(x=0\) 時 \(x_1=0\ne1\) → F

(c) 零向量要滿足 \(0=\min_i\alpha_i\),只有 \(\min_i\alpha_i=0\) 才成立;一般的 \(\alpha_i\) 不成立(例:\(\alpha=(1,1)\),\(x_1+x_2=1\) 不含 0) → F

(d) \(x_{2i}-x_{2i-1}=0\) 是齊次線性方程組,解集合是 null space → T

(e) \(x=0\) 時 \(x_{2i}-x_{2i-1}=0\ne1\) → F

(d)

55%

5. (5%) Let \(N\) be an \(n\times n\) matrix over \(\mathbb R\) or \(\mathbb C\) such that \(N^k=0\) for integer \(k\). Is \(I+N\) invertible? If yes, find its inverse. If not, provide the reason why.

像 \(\dfrac1{1+x}=1-x+x^2-\cdots\),試 \(S=I-N+N^2-\cdots+(-1)^{k-1}N^{k-1}\)

\((I+N)S=\big(I-N+N^2-\cdots+(-1)^{k-1}N^{k-1}\big)+\big(N-N^2+\cdots+(-1)^{k-1}N^{k}\big)\)(中間逐項消掉)

\(=I+(-1)^{k-1}N^k=I\) (\(N^k=0\))

\(S\) 與 \(I+N\) 可交換,所以 \(S(I+N)=I\) 也成立

另一個理由:\(N\) 的 eigenvalue 全是 0(\(N^k=0\)),\(I+N\) 的 eigenvalue 全是 1,行列式為 1,可逆

可逆,\((I+N)^{-1}=I-N+N^2-\cdots+(-1)^{k-1}N^{k-1}=\sum_{j=0}^{k-1}(-N)^j\)

65%

6. (5%) Define an inner product in \(\mathbb R^2\) as \(\langle u,v\rangle=\tfrac14u_1v_1+\tfrac19u_2v_2\). What is the equation of the unit circle?

unit circle = \(\|x\|=1\) 的點 = \(\langle x,x\rangle=1\)

\(\dfrac{x_1^2}{4}+\dfrac{x_2^2}{9}=1\)

在一般座標下是橢圓,\(x_1\) 軸半徑 2、\(x_2\) 軸半徑 3

75%

7. (5%) Please find the eigenvectors of \((I+A)^{100}\) given \(A=\begin{bmatrix}-4&-5\\10&11\end{bmatrix}\).

\(Av=\lambda v\Rightarrow(I+A)^{100}v=(1+\lambda)^{100}v\):eigenvector 不變,只換 eigenvalue

\(\det(A-\lambda I)=\lambda^2-(\operatorname{tr}A)\lambda+\det A=\lambda^2-7\lambda+6=(\lambda-1)(\lambda-6)\)

\(\lambda=1\):\(A-I=\begin{bmatrix}-5&-5\\10&10\end{bmatrix}\) → \(v_1+v_2=0\) → \(v=(1,-1)^T\)

\(\lambda=6\):\(A-6I=\begin{bmatrix}-10&-5\\10&5\end{bmatrix}\) → \(2v_1+v_2=0\) → \(v=(1,-2)^T\)

\((I+A)^{100}\) 的 eigenvalue 是 \(2^{100}\)、\(7^{100}\),兩個不同,eigenspace 各一維

\(c\,(1,-1)^T\) 與 \(c\,(1,-2)^T\)(\(c\ne0\))

810%

8. (10%) Please find the determinant of A.

\(A=\begin{pmatrix}1+x_1&x_2&x_3&\cdots&x_n\\x_1&1+x_2&x_3&\cdots&x_n\\\vdots&\vdots&1+x_3&\ddots&\vdots\\x_1&x_2&x_3&\cdots&1+x_n\end{pmatrix}.\)

第 \(j\) 行的每一列都有 \(x_j\),再在對角線加 1:\(A=I+\mathbf 1x^T\),\(\mathbf 1=(1,\ldots,1)^T\),\(x=(x_1,\ldots,x_n)^T\)

\(\mathbf 1x^T\) 的 rank 是 1:eigenvalue 一個是 \(x^T\mathbf 1=\sum x_i\)(eigenvector \(\mathbf 1\):\(\mathbf 1x^T\mathbf 1=(\sum x_i)\mathbf 1\)),其餘 \(n-1\) 個是 0

\(A\) 的 eigenvalue:\(1+\sum x_i\)(一個)、\(1\)(\(n-1\) 個),行列式是 eigenvalue 的積

也可直接用 \(\det(I+uv^T)=1+v^Tu\);\(n=2\) 時:\((1+x_1)(1+x_2)-x_1x_2=1+x_1+x_2\)

\(\det A=1+\sum_{i=1}^nx_i\)

910%

9. (10%) Consider

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

where \(x_i\ge0\) for \(1\le i\le n\). When \(n=4\) and \(r=8\), the number of nonnegative integer solutions is ______.

\(x_1+x_2+x_3+x_4\lt8\iff x_1+x_2+x_3+x_4\le7\)

加 slack \(x_5\ge0\):\(x_1+x_2+x_3+x_4+x_5=7\)

\(H(5,7)=\dbinom{7+4}{4}=\dbinom{11}{4}=\dfrac{11\cdot10\cdot9\cdot8}{4\cdot3\cdot2\cdot1}\)

\(330\)

105%

10. (5%) The cycle decomposition of the permutation

\(\begin{pmatrix}1&2&3&4&5&6&7&8\\2&6&5&8&3&1&7&4\end{pmatrix}\)

is ______.

\(1\to2\to6\to1\) → \((1\ 2\ 6)\)

\(3\to5\to3\) → \((3\ 5)\)

\(4\to8\to4\) → \((4\ 8)\)

\(7\to7\) → \((7)\)

\((1\ 2\ 6)(3\ 5)(4\ 8)(7)\)

1110%

11. (10%) The solution to the recurrence equation

\(a_n=2a_{n-1}+n\)

with \(a_0=4\) is \(a_n=\)______.

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

特解設 \(a_n^{(p)}=An+B\)(1 不是特徵根):\(An+B=2\big(A(n-1)+B\big)+n=(2A+1)n+(2B-2A)\)

\(A=2A+1\) → \(A=-1\);\(B=2B-2A\) → \(B=2A=-2\)

\(a_n=C\cdot2^n-n-2\),\(a_0=C-2=4\) → \(C=6\)

驗:\(a_1=2\cdot4+1=9\),公式 \(12-1-2=9\);\(a_2=2\cdot9+2=20\),公式 \(24-2-2=20\)

\(a_n=6\cdot2^n-n-2\)

1210%

12. (10%) The generating function in partial fraction decomposition for the above recurrence equation is ______. (Note that expressions like \(\dfrac{x-8}{(x-3)^2}-\dfrac9{x-1}\) are not partial fraction decompositions.)

\(A(x)=\sum a_nx^n=6\sum2^nx^n-\sum nx^n-2\sum x^n=\dfrac6{1-2x}-\dfrac x{(1-x)^2}-\dfrac2{1-x}\)

\(\dfrac x{(1-x)^2}\) 分子還有 \(x\),不是 partial fraction。用 \(x=1-(1-x)\):\(\dfrac x{(1-x)^2}=\dfrac{1}{(1-x)^2}-\dfrac1{1-x}\)

\(A(x)=\dfrac6{1-2x}-\dfrac1{(1-x)^2}+\dfrac1{1-x}-\dfrac2{1-x}\)

驗係數:\(6\cdot2^n-(n+1)-1=6\cdot2^n-n-2\) ✓(\((1-x)^{-2}\) 的係數是 \(n+1\))

\(A(x)=\dfrac6{1-2x}-\dfrac1{(1-x)^2}-\dfrac1{1-x}\)

135%

13. (5%) Let \(p(m)\) denote the number of partitions of \(m\in\mathbb Z^+\). For example, the number of partitions of \(m=5\) is \(p(5)=7\):

5, 4+1, 3+2, 3+1+1, 2+2+1, 2+1+1+1, 1+1+1+1+1

The generating function for \(\{p(n)\}_{n=0,1,\ldots}\) is ______.

一個 partition = 決定「1 用幾個、2 用幾個、3 用幾個、……」

數字 \(k\) 用 \(j\) 個貢獻 \(x^{kj}\):\(1+x^k+x^{2k}+\cdots=\dfrac1{1-x^k}\)

各個 \(k\) 相乘

驗 \(x^5\) 的係數是 7

\(\displaystyle\prod_{k=1}^{\infty}\dfrac1{1-x^k}=\dfrac1{(1-x)(1-x^2)(1-x^3)\cdots}\)

145%

14. (5%) A Boolean function \(f\) is self-dual if

\(f(x_1,x_2,\ldots,x_m)=\overline{f(\neg x_1,\neg x_2,\ldots,\neg x_m)}.\)

There are ______ self-dual Boolean functions of \(m\) variables.

\(2^m\) 種輸入,\(x\) 與 \(\neg x\)(各位元取反)兩兩配對,共 \(2^{m-1}\) 對(\(x\ne\neg x\))

條件 \(f(x)=\overline{f(\neg x)}\):每一對只要決定其中一個的值,另一個被反相鎖死

\(2^{m-1}\) 對各 2 種選法

\(m=1\):\(f(x)=x\) 與 \(f(x)=\bar x\),共 \(2=2^{2^0}\);\(m=2\):4 個(\(x,\ y,\ \bar x,\ \bar y\))\(=2^{2}\)

\(2^{2^{m-1}}\)

155%

15. (5%) For any binary tree with \(n\) nodes and \(i\) internal nodes, the relation between \(n\) and \(i\) is ______ \(\le i\).

leaf 數 \(n_0\),degree 2 的 node 數 \(n_2\):\(n_0=n_2+1\);internal node \(i=n_1+n_2\ge n_2\)

\(n_0=n_2+1\le i+1\)

\(n=i+n_0\le i+(i+1)=2i+1\) (每個 internal node 都有 2 個 child 時取等號)

\(i\ge\dfrac{n-1}2\)

\(\dfrac{n-1}{2}\le i\)

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com