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

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

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

逐題詳解

120%

1. Matrix calculation.

(a) Given \(A=\begin{bmatrix}1&5&12\\1&5&-2\\1&-4&2\end{bmatrix}\). Find the Gram-Schmidt \(QR\) factorization of \(A\). (10%)

(b) Given \(A=\begin{bmatrix}10&5\\-11&2\\-2&14\end{bmatrix}\). Find a singular value decomposition of \(A\). (10%)

(a) \(\mathbf a_1=(1,1,1)^T\),\(r_{11}=\|\mathbf a_1\|=\sqrt3\),\(\mathbf q_1=\tfrac1{\sqrt3}(1,1,1)^T\)

  \(\mathbf a_2=(5,5,-4)^T\):\(r_{12}=\mathbf q_1^T\mathbf a_2=\tfrac6{\sqrt3}=2\sqrt3\)

  \(\mathbf a_2-r_{12}\mathbf q_1=(5,5,-4)-2(1,1,1)=(3,3,-6)\),\(r_{22}=3\sqrt6\),\(\mathbf q_2=\tfrac1{\sqrt6}(1,1,-2)^T\)

  \(\mathbf a_3=(12,-2,2)^T\):\(r_{13}=\tfrac{12}{\sqrt3}=4\sqrt3\),\(r_{23}=\tfrac{12-2-4}{\sqrt6}=\sqrt6\)

  \(\mathbf a_3-4\sqrt3\mathbf q_1-\sqrt6\mathbf q_2=(12,-2,2)-4(1,1,1)-(1,1,-2)=(7,-7,0)\),\(r_{33}=7\sqrt2\),\(\mathbf q_3=\tfrac1{\sqrt2}(1,-1,0)^T\)

\[A=QR=\begin{bmatrix}\tfrac1{\sqrt3}&\tfrac1{\sqrt6}&\tfrac1{\sqrt2}\\\tfrac1{\sqrt3}&\tfrac1{\sqrt6}&-\tfrac1{\sqrt2}\\\tfrac1{\sqrt3}&-\tfrac2{\sqrt6}&0\end{bmatrix}\begin{bmatrix}\sqrt3&2\sqrt3&4\sqrt3\\0&3\sqrt6&\sqrt6\\0&0&7\sqrt2\end{bmatrix}\]

驗第 3 欄:\(4\sqrt3\mathbf q_1+\sqrt6\mathbf q_2+7\sqrt2\mathbf q_3=4(1,1,1)+(1,1,-2)+7(1,-1,0)=(12,-2,2)\)

(b) \(A^TA=\begin{bmatrix}100+121+4&50-22-28\\50-22-28&25+4+196\end{bmatrix}=\begin{bmatrix}225&0\\0&225\end{bmatrix}=225I\)

  eigenvalue 225(重根) → \(\sigma_1=\sigma_2=15\),任何正交矩陣都可當 \(V\),取 \(V=I\)

  \(\mathbf u_1=\tfrac1{15}A\mathbf e_1=\tfrac1{15}(10,-11,-2)^T\),\(\mathbf u_2=\tfrac1{15}A\mathbf e_2=\tfrac1{15}(5,2,14)^T\)

  \(\mathbf u_3\perp\mathbf u_1,\mathbf u_2\):叉積 \((10,-11,-2)\times(5,2,14)=(-150,-150,75)\) → \(\mathbf u_3=\tfrac13(-2,-2,1)^T\)

\[A=U\Sigma V^T=\begin{bmatrix}\tfrac{10}{15}&\tfrac5{15}&-\tfrac23\\-\tfrac{11}{15}&\tfrac2{15}&-\tfrac23\\-\tfrac2{15}&\tfrac{14}{15}&\tfrac13\end{bmatrix}\begin{bmatrix}15&0\\0&15\\0&0\end{bmatrix}\begin{bmatrix}1&0\\0&1\end{bmatrix}\]

(a) 如上 \(Q,R\) (b) \(\sigma_1=\sigma_2=15\),\(U,\Sigma,V=I\) 如上

220%

2. Let \(A=(a_{ij})\) be an \(n\times n\) matrix with eigenvalues \(\lambda_1,\lambda_2,\ldots,\lambda_n\).

(a) Show \(\prod_{i=1}^n\lambda_i=\det(A)\). (5%)

(b) Show \(\sum_{i=1}^n\lambda_i=\sum_{i=1}^na_{ii}\). (5%)

(c) Suppose \(A_r\) is the matrix formed by deleting the last \(n-r\) rows and columns of \(A\). And we also assume \(A\) is symmetric and \(\lambda_i\gt0\) for \(i=1,\ldots,n\). Show \(\det(A_r)\gt0,\ r=1,\ldots,n\). (10%)

(a) 特徵多項式 \(p(\lambda)=\det(A-\lambda I)=\prod_{i=1}^n(\lambda_i-\lambda)\)(\(n\) 個根,含重根與複根)

  代 \(\lambda=0\):\(\det A=\prod_{i=1}^n\lambda_i\) 得證

(b) \(\det(\lambda I-A)=\prod_{i=1}^n(\lambda-\lambda_i)=\lambda^n-\big(\sum\lambda_i\big)\lambda^{n-1}+\cdots\)

  另一方面,用行列式展開式 \(\sum_\sigma\mathrm{sgn}(\sigma)\prod_i(\lambda\delta_{i\sigma(i)}-a_{i\sigma(i)})\):

  單位排列那項 \(\prod_i(\lambda-a_{ii})=\lambda^n-\big(\sum a_{ii}\big)\lambda^{n-1}+\cdots\)

  其他排列至少動到 2 個位置,最多有 \(n-2\) 個 \(\lambda\),次數 \(\le n-2\),不影響 \(\lambda^{n-1}\) 的係數

  比較 \(\lambda^{n-1}\) 係數:\(\sum\lambda_i=\sum a_{ii}\) 得證

(c) \(A\) 對稱,且 eigenvalue 全 \(\gt0\) → \(A\) positive definite:\(\mathbf x^TA\mathbf x=\sum\lambda_i(\mathbf q_i^T\mathbf x)^2\gt0\ (\mathbf x\ne\mathbf0)\)

  任取 \(\mathbf y\in\mathbb R^r,\ \mathbf y\ne\mathbf0\),補 0 成 \(\mathbf x=(\mathbf y,\mathbf 0)\in\mathbb R^n\):\(\mathbf y^TA_r\mathbf y=\mathbf x^TA\mathbf x\gt0\)

  所以 \(A_r\)(也對稱)positive definite,eigenvalue 全 \(\gt0\),由 (a) \(\det A_r=\prod\lambda_i(A_r)\gt0\),\(r=1,\ldots,n\) 得證

310%

3. Find the curve \(y=C(-1)^x+D(2)^x\), which gives the least squares fit to points \((x,y)=(0,0),(1,4),(2,6)\). (10%)

代入三點:\(\underbrace{\begin{bmatrix}1&1\\-1&2\\1&4\end{bmatrix}}_{M}\begin{bmatrix}C\\D\end{bmatrix}=\begin{bmatrix}0\\4\\6\end{bmatrix}\)(\((-1)^x=1,-1,1\);\(2^x=1,2,4\))

\(M^TM=\begin{bmatrix}3&3\\3&21\end{bmatrix}\),\(M^T\mathbf b=\begin{bmatrix}0-4+6\\0+8+24\end{bmatrix}=\begin{bmatrix}2\\32\end{bmatrix}\)

第 2 式減第 1 式:\(18D=30\) → \(D=\tfrac53\)

\(3C+3\cdot\tfrac53=2\) → \(C=-1\)

殘差 \(\mathbf b-M\hat{\mathbf x}=(-\tfrac23,-\tfrac13,\tfrac13)\),與兩欄內積皆 0

\(y=-(-1)^x+\tfrac53\,2^x\),即 \(C=-1,\ D=\tfrac53\)

420%

4. (20%) Don't just write down the answer without explanations.

(a) Determine the number of paths in the xy-plane from \((m,n)\) to \((p,q)\), \(m,n,p,q\in\) positive integer or zero, \(m\lt p,\ n\lt q\), where each such path is made up of individual steps going one unit to the right \((x,y)\to(x+1,y)\) or one unit upward \((x,y)\to(x,y+1)\). (5%)

(b) If \((m,n)=(0,0),\ (p,q)=(7,4)\), how many of the paths in part (a) do not use the path from \((2,2)\) to \((3,2)\) to \((4,2)\) to \((4,3)\)? (5%)

(c) If \((m,n)=(0,0),\ (p,q)=(7,4)\), how many of the paths in part (a) do not pass through the points \((0,1),(1,2),(2,3),(3,4)\)? (5%)

(d) If an additional type of move \((x,y)\to(x+1,y+1)\) is allowed, how many of the paths in part (a) if \((m,n)=(0,0),\ (p,q)=(7,4)\)? (5%)

(a) 共要走 \(p-m\) 步右、\(q-n\) 步上,總步數 \((p-m)+(q-n)\),選哪幾步向右:\(\dbinom{(p-m)+(q-n)}{p-m}\)

(b) 全部 \(\dbinom{11}{4}=330\)

  用到那段 \((2,2)\to(3,2)\to(4,2)\to(4,3)\):前段 \((0,0)\to(2,2)\) \(\binom42=6\),中段固定,後段 \((4,3)\to(7,4)\) \(\binom41=4\) → \(6\times4=24\)

  不用:\(330-24=306\)

(c) 四個點都在直線 \(y=x+1\) 上。路徑碰到這條線就會經過其中一點(\((4,5)\) 以後超出 \(y\le4\))

  碰到 \(y=x+1\) 的路徑:把終點對直線反射,\((7,4)\to(3,8)\)(\((x,y)\to(y-1,\,x+1)\)),一對一對應 \((0,0)\to(3,8)\) 的路徑:\(\binom{11}{3}=165\)

  不碰:\(330-165=165\)

(d) 三種步:右 \(R\)、上 \(U\)、斜 \(D\)。用 \(k\) 步斜:\(R\) 有 \(7-k\) 步、\(U\) 有 \(4-k\) 步,總步數 \(11-k\),排法 \(\dfrac{(11-k)!}{(7-k)!\,(4-k)!\,k!}\)

  \(k=0:330\);\(k=1:\dfrac{10!}{6!\,3!\,1!}=840\);\(k=2:\dfrac{9!}{5!\,2!\,2!}=756\);\(k=3:\dfrac{8!}{4!\,1!\,3!}=280\);\(k=4:\dfrac{7!}{3!\,0!\,4!}=35\)

  \(330+840+756+280+35=2241\)

(a) \(\binom{(p-m)+(q-n)}{p-m}\) (b) 306 (c) 165 (d) 2241

520%

5. (20%) Don't just write down the answer without explanations.

(a) If the cost of each edge is given, determine the cost of the minimum spanning tree in the following figure? (5%)

TULURLLLRZ78115364910

(b) How many different spanning trees in the following figure? (5%)

TULURLLLR

(c) How many different spanning trees in the following figure? (10%)

(圖:中間是由 4 個點組成的四邊形(diamond),四個點上各接一個和 (b) 相同的圖,以該點當 (b) 的最上面那個點)

(a) Kruskal:\(3\ (UL,LR)\) 收、\(4\ (LL,LR)\) 收、\(5\ (UL,LL)\) 略過(\(UL,LL\) 已經連通)、\(6\ (UR,LR)\) 收、\(7\ (T,UL)\) 收、\(8\) 略過、\(9\ (LL,Z)\) 收,共 5 邊

  \(3+4+6+7+9=29\)

(b) 圖有 5 個點:上面 \(T\) 接 \(UL\)、\(UR\);\(UL,UR,LL,LR\) 組成方形,兩條對角線(其中一條畫成曲線)都有 → \(UL,UR,LL,LR\) 是 \(K_4\)

  \(T\) 的邊在 spanning tree 中用 1 條或 2 條:

  • 用 1 條(\(T\text{-}UL\) 或 \(T\text{-}UR\)):\(K_4\) 的 spanning tree \(4^{4-2}=16\) 個 → \(2\times16=32\)

  • 用 2 條:\(K_4\) 要是「\(UL\) 與 \(UR\) 在不同分量」的 2 分量 spanning forest;等於把 \(UL,UR\) 合成一點的圖(3 點,邊 \(\{UL{=}UR\}\) 與 \(LL\)、\(LR\) 之間的連線 2+2,加 \(LL\text{-}LR\) 一條)的 spanning tree,共 8 個

  \(32+8=40\)

用 matrix-tree theorem 的 Laplacian 去掉一列一欄的行列式也是 40

(c) 四個 house 各自只靠接點連到中間四邊形,接點是 cut vertex,spanning tree 個數相乘:

  四邊形 \(C_4\) 的 spanning tree:拿掉 1 邊,4 個;每個 house 40 個

  \(4\times40^4=4\times2{,}560{,}000=10{,}240{,}000\)

(a) 29 (b) 40 (c) 10,240,000

610%

6. (10%) Find a formula for the convolution of each of the following pairs of sequences where \(n\) belongs to integers.

(a) \(a_n=1,\ 0\le n\le5,\ a_n=0\) for all \(n\ge6\); \(b_n=n\), for all \(n\ge1\). (5%)

(b) \(a_n=(-1)^n,\ b_n=(-1)^n\), for all \(n\ge1\). (5%)

約定:只給了 \(n\ge1\)((a) 的 \(a\) 給 \(0\le n\le5\))的項,其餘項為 0。\((a*b)_n=\sum_k a_kb_{n-k}\)

(a) \(a\) 只在 \(k=0,\ldots,5\) 為 1:\(c_n=\sum_{k=0}^5b_{n-k}\);\(b_j=j\)(\(j\ge1\)),\(b_j=0\)(\(j\le0\))

  \(n\le0\):0

  \(1\le n\le5\):\(k\) 只到 \(n\) 之前有非零項,\(c_n=n+(n-1)+\cdots+1=\dfrac{n(n+1)}2\)

  \(n\ge5\):六項全非零,\(c_n=n+(n-1)+\cdots+(n-5)=6n-15\)(\(n=5\) 兩式都得 15)

(b) \(a_k\) 要 \(k\ge1\)、\(b_{n-k}\) 要 \(n-k\ge1\) → \(1\le k\le n-1\)

  \(c_n=\sum_{k=1}^{n-1}(-1)^k(-1)^{n-k}=(n-1)(-1)^n\),\(n\ge2\);\(n\le1\) 為 0

(a) \(c_n=\begin{cases}0&n\le0\\ n(n+1)/2&1\le n\le5\\ 6n-15&n\ge5\end{cases}\) (b) \(c_n=(-1)^n(n-1)\ (n\ge2)\),其餘 0

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com