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

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

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

逐題詳解

110%

1. Prove that if \(A\) is nonsingular then \(A^T\) is nonsingular and \((A^T)^{-1}=(A^{-1})^T\). (10%)

\(A\) nonsingular ⇔ \(\det A\ne0\)

\(\det A^T=\det A\ne0\) → \(A^T\) nonsingular

\(A^T(A^{-1})^T=(A^{-1}A)^T=I^T=I\),且 \((A^{-1})^TA^T=(AA^{-1})^T=I\)

所以 \((A^{-1})^T\) 是 \(A^T\) 的 inverse,inverse 唯一 → \((A^T)^{-1}=(A^{-1})^T\) 得證

210%

2. Analyze the complexity of evaluating the determinant of an \(n\times n\) matrix by cofactors. (10%)

cofactor 展開:\(\det A=\sum_{j=1}^na_{1j}C_{1j}\),要算 \(n\) 個 \((n-1)\times(n-1)\) 的行列式,再做 \(n\) 次乘法

乘法次數 \(M(n)=n\,M(n-1)+n\),\(M(1)=0\)

\(M(2)=2,\ M(3)=9,\ M(4)=40\),一般 \(M(n)=n!\sum_{k=1}^{n-1}\dfrac1{k!}\approx(e-1)\,n!\)

加減法次數同樣是 \(\Theta(n!)\)

對照 Gaussian elimination 只要 \(O(n^3)\);\(n=20\) 時 \(20!\approx2.4\times10^{18}\),cofactor 展開不可行

\(\Theta(n!)\)(約 \((e-1)n!\) 次乘法)

35%

3. Determine which of the following sets forms a subspace of \(\mathbb R^2\). (multiple answers) (5%)

(a) \(\{(x_1,x_2)^T\mid x_1x_2=0\}\) (b) \(\{(x_1,x_2)^T\mid x_1+x_2=0\}\) (c) \(\{(x_1,x_2)^T\mid x_1=2x_2\}\) (d) \(\{(x_1,x_2)^T\mid x_1^2=x_2^2\}\) (e) \(\{(x_1,x_2)^T\mid |x_1|=|x_2|\}\)

(a) 兩條軸的聯集:\((1,0)+(0,1)=(1,1)\),\(1\cdot1\ne0\),加法不封閉 → 不是

(b) \(x_2=-x_1\),過原點的直線,加法與純量乘法都封閉 → 是

(c) \(x_1-2x_2=0\),過原點的直線 → 是

(d) \(x_1=\pm x_2\),兩條直線的聯集:\((1,1)+(1,-1)=(2,0)\),\(4\ne0\) → 不是

(e) 與 (d) 同一個集合 → 不是

(b)、(c)

45%

4. Consider the vectors \(\cos(x+\alpha)\) and \(\sin x\) in \(C[-\pi,\pi]\). For what values of \(\alpha\) will the two vectors be linearly dependent? (5%)

\(\cos(x+\alpha)=\cos\alpha\cos x-\sin\alpha\sin x\)

若 \(\cos\alpha\ne0\),式子含 \(\cos x\) 分量,不是 \(\sin x\) 的倍數,兩者獨立

若 \(\cos\alpha=0\):\(\cos(x+\alpha)=-\sin\alpha\,\sin x=\mp\sin x\),是 \(\sin x\) 的倍數 → dependent

\(\alpha=\dfrac\pi2+k\pi,\ k\in\mathbb Z\)

55%

5. Let \(A\) and \(B\) be \(6\times5\) matrices. If \(\dim N(A)=2\), what is the rank of \(A\)? If the rank of \(B\) is 4, what is the dimension of \(N(B)\)? (5%)

rank–nullity:\(\mathrm{rank}+\dim N=\)欄數 \(=5\)

\(\mathrm{rank}(A)=5-2=3\)

\(\dim N(B)=5-4=1\)

\(\mathrm{rank}(A)=3\),\(\dim N(B)=1\)

65%

6. Let \(\mathbf u_1=\begin{bmatrix}3\\1\end{bmatrix},\mathbf u_2=\begin{bmatrix}5\\2\end{bmatrix}\) and let \(L\) be the linear operator that rotates vectors in \(\mathbb R^2\) by \(45^\circ\) in the counterclockwise direction. Find the matrix representation of \(L\) with respect to the ordered basis \([\mathbf u_1,\mathbf u_2]\). (5%)

\(R=\dfrac1{\sqrt2}\begin{bmatrix}1&-1\\1&1\end{bmatrix}\),\(U=\begin{bmatrix}3&5\\1&2\end{bmatrix}\),\(U^{-1}=\begin{bmatrix}2&-5\\-1&3\end{bmatrix}\)

\(RU=\dfrac1{\sqrt2}\begin{bmatrix}2&3\\4&7\end{bmatrix}\)

\(B=U^{-1}RU=\dfrac1{\sqrt2}\begin{bmatrix}4-20&6-35\\-2+12&-3+21\end{bmatrix}=\dfrac1{\sqrt2}\begin{bmatrix}-16&-29\\10&18\end{bmatrix}\)

\(\mathrm{tr}\,B=\sqrt2,\ \det B=1\),與旋轉矩陣一致

\(\dfrac1{\sqrt2}\begin{bmatrix}-16&-29\\10&18\end{bmatrix}\)

710%

7. Decompose the matrix \(A=\begin{bmatrix}2&5&4\\6&3&0\\6&3&0\\2&5&4\end{bmatrix}\) by singular value decomposition. (10%)

第 1 列=第 4 列、第 2 列=第 3 列 → rank 2,\(\sigma_3=0\)

\(AA^T\):列內積 \(r_1\!\cdot r_1=45,\ r_1\!\cdot r_2=27,\ r_2\!\cdot r_2=45\)

\(AA^T=\begin{bmatrix}45&27&27&45\\27&45&45&27\\27&45&45&27\\45&27&27&45\end{bmatrix}\)

\(\mathbf u_1=\tfrac12(1,1,1,1)^T\):\(45+27+27+45=144\) → \(\sigma_1^2=144\)

\(\mathbf u_2=\tfrac12(1,-1,-1,1)^T\):\(45-27-27+45=36\) → \(\sigma_2^2=36\)

\(\sigma_1=12,\ \sigma_2=6,\ \sigma_3=0\);\(\mathrm{null}(AA^T)\) 取 \(\mathbf u_3=\tfrac1{\sqrt2}(1,0,0,-1)^T,\ \mathbf u_4=\tfrac1{\sqrt2}(0,1,-1,0)^T\)

\(\mathbf v_i=A^T\mathbf u_i/\sigma_i\):\(A^T\mathbf u_1=(8,8,4)^T\) → \(\mathbf v_1=\tfrac13(2,2,1)^T\)

  \(A^T\mathbf u_2=\tfrac12(-8,4,8)^T=(-4,2,4)^T\) → \(\mathbf v_2=\tfrac13(-2,1,2)^T\)

  \(\mathbf v_3\perp\mathbf v_1,\mathbf v_2\):\(\mathbf v_3=\tfrac13(1,-2,2)^T\)

\[A=\underbrace{\begin{bmatrix}\tfrac12&\tfrac12&\tfrac1{\sqrt2}&0\\\tfrac12&-\tfrac12&0&\tfrac1{\sqrt2}\\\tfrac12&-\tfrac12&0&-\tfrac1{\sqrt2}\\\tfrac12&\tfrac12&-\tfrac1{\sqrt2}&0\end{bmatrix}}_{U}\underbrace{\begin{bmatrix}12&0&0\\0&6&0\\0&0&0\\0&0&0\end{bmatrix}}_{\Sigma}\underbrace{\begin{bmatrix}\tfrac23&\tfrac23&\tfrac13\\-\tfrac23&\tfrac13&\tfrac23\\\tfrac13&-\tfrac23&\tfrac23\end{bmatrix}}_{V^T}\]

驗:\(12\mathbf u_1\mathbf v_1^T+6\mathbf u_2\mathbf v_2^T\) 的第 1 列 \(=(4,4,2)+(-2,1,2)=(2,5,4)\),第 2 列 \(=(4,4,2)-(-2,1,2)=(6,3,0)\)

\(\sigma=12,\ 6,\ 0\);\(U,\Sigma,V\) 如上

810%

8. Let \(\Sigma=\{0,1\}\) and \(A=\{0,01,11\}\subseteq\Sigma^*\). For \(n\ge1\), let \(a_n\) count the number of strings in \(A^*\) of length \(n\). Find and solve a recurrence relation for \(a_n\). (10%)

\(A^*\) 的字串由 \(0\)(長 1)、\(01\)、\(11\)(長 2)接起來。拆法唯一:由右往左看,最後一個字元是 0 就是單獨的塊 \(0\);是 1 就必與它左邊那個字元組成 \(01\) 或 \(11\)

看最後一塊:是 \(0\) → 前面長 \(n-1\);是 \(01\) 或 \(11\) → 前面長 \(n-2\)

\(a_n=a_{n-1}+2a_{n-2}\),\(a_0=1,\ a_1=1\)(\(a_2=3\):00、01、11)

特徵方程 \(r^2=r+2\) → \(r=2,\,-1\)

\(a_n=\alpha2^n+\beta(-1)^n\):\(\alpha+\beta=1,\ 2\alpha-\beta=1\) → \(\alpha=\tfrac23,\ \beta=\tfrac13\)

\(a_3=5\):0·0·0、0·01、0·11、01·0、11·0,即 000、001、011、010、110;公式 \((16-1)/3=5\)

\(a_n=a_{n-1}+2a_{n-2}\),\(a_n=\dfrac{2^{n+1}+(-1)^n}{3}\)

920%

9. Let \(A=\{a,b,c,d,e\}\),

(a) How many closed binary operations \(f\) on \(A\) satisfy \(f(a,b)\ne c\)?

(b) How many closed binary operations \(f\) on \(A\) have an identity and \(f(a,b)=c\)?

(c) How many \(f\) in (b) are commutative?

(d) Determine the number of relations on \(A\) that are reflexive and symmetric but not transitive.

(e) Determine the number of equivalence relations where \(b\in[e]\).

(Note: Values of Stirling number of the second kind: \(S(4,2)=7,\ S(4,3)=6,\ S(5,2)=15,\ S(5,3)=25\)) (20%)

closed binary operation=\(A\times A\to A\),表有 25 格,每格 5 種填法,共 \(5^{25}\)

(a) \(f(a,b)\) 有 4 種(不能是 \(c\)),其餘 24 格任意 → \(4\cdot5^{24}\)

(b) identity \(x\):第 \(x\) 列與第 \(x\) 欄全部固定(\(f(x,y)=f(y,x)=y\),9 格)。identity 若存在就唯一

  \(x=a\):\(f(a,b)=b\ne c\);\(x=b\):\(f(a,b)=a\ne c\) → \(x\) 只能是 \(c,d,e\),3 種

  \(x\in\{c,d,e\}\) 時,\(f(a,b)\) 在固定的列/欄之外,由題目固定為 \(c\);其餘 \(25-9-1=15\) 格自由 → \(5^{15}\)

  共 \(3\cdot5^{15}\)

(c) 交換律:除了第 \(x\) 列欄之外是 \(4\times4\) 的方陣,要對稱:對角線 4 格+非對角 6 組(每組 2 格同值)=10 個自由值

  \(f(a,b)=f(b,a)=c\) 固定其中 1 組 → 9 個自由值 → 每種 identity \(5^9\)

  共 \(3\cdot5^{9}\)

(d) reflexive+symmetric:對角線固定,5 個點的 \(\binom52=10\) 條無向邊各自可有可無 → \(2^{10}=1024\)

  其中 transitive 的就是 equivalence relation,共 Bell(5) \(=1+15+25+10+1=52\)(\(S(5,k)=1,15,25,10,1\))

  不 transitive:\(1024-52=972\)

(e) \(b\) 與 \(e\) 同類:把 \(b,e\) 合成一個元素,等於對 4 個元素做 partition:Bell(4) \(=S(4,1)+S(4,2)+S(4,3)+S(4,4)=1+7+6+1=15\)

(a) \(4\cdot5^{24}\) (b) \(3\cdot5^{15}\) (c) \(3\cdot5^9\) (d) 972 (e) 15

1020%

10. (a) Find the number of permutations of 0, 1, 2, 3, …, 8 in which none of the patterns '1234', '76', '23', '81' occurs. (b) How many three-element subsets of \(S=\{1,2,\ldots,10\}\) contains no consecutive integers? (20%)

(a) pattern 指連續出現的子字串。令 \(E_1\)=出現 1234、\(E_2\)=76、\(E_3\)=23、\(E_4\)=81

  出現 1234 就一定出現 23 → \(E_1\subseteq E_3\),不必另算

  只要排除 \(E_2,E_3,E_4\):76、23、81 用到的數字不重複,各當成 1 個「方塊」

  \(|E_i|=8!\)(9 個數變 8 個物件);任兩個同時:\(7!\);三個同時:\(6!\)

  \(9!-3\cdot8!+3\cdot7!-6!=362880-120960+15120-720=256320\)

(b) \(k\) 個不相鄰整數取自 \(\{1,\ldots,n\}\):\(\binom{n-k+1}{k}\)

  \(\binom{10-3+1}{3}=\binom83=56\)

做法:選的 3 個數把其餘 7 個數隔成 4 段(頭、兩個中間各至少 1 個、尾),中間 2 段各先放 1 個,剩 5 個分到 4 段:\(\binom{5+3}{3}=56\)

(a) 256320 (b) 56

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com