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

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

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

逐題詳解

110%

(10%) How many ways are there to arrange TALLAHA with no adjacent As?

TALLAHA 有 7 個字母:A ×3、L ×2、T、H

先排非 A 的 T、L、L、H:\(\dfrac{4!}{2!}=12\) 種

4 個字母之間與頭尾共 5 個空隙,3 個 A 不相鄰 → 各放不同空隙:\(\dbinom53=10\)

7 個字母共 \(\dfrac{7!}{3!\,2!}=420\) 種排列,其中不含 AA 的有 120 種

\(12\times10=120\)

210%

(10%) The number of positive-integer solutions to \(x_1+x_2+\cdots+x_n=r\), where \(r\gt0\), is ______. (That is, all \(x_i\) must be positive integers to qualify as one solution.)

令 \(y_i=x_i-1\ge0\):\(y_1+\cdots+y_n=r-n\)

非負整數解:\(H(n,r-n)=\dbinom{n+(r-n)-1}{r-n}=\dbinom{r-1}{r-n}\)

或:\(r\) 個 1 排成一列,中間 \(r-1\) 個空隙選 \(n-1\) 個放隔板,\(\dbinom{r-1}{n-1}\);\(r\lt n\) 時為 0

\(\dbinom{r-1}{n-1}\)

35%

(5%) How many functions from \(\{0,1\}^m\) (an \(m\)-dimensional boolean vector) to \(\{0,1\}^2\) (a 2-dimensional boolean vector) are there?

\(|\text{domain}|=2^m\),\(|\text{codomain}|=2^2=4\)

每個 domain 元素各自選一個 codomain 值:\(4^{2^m}\)

\(4^{2^m}\)

410%

(10%) The function

\(f(x)=a_0+a_1x+a_2x^2+\cdots=\sum_{i=0}^{\infty}a_ix^i\)

is the generating function for the sequence \(\{a_i\}_{i=0,1,\ldots}\). The harmonic numbers \(\{H_i\}_{i=0,1,2,\ldots}\) are defined by

\(H_0=0,\quad H_i=1+\dfrac12+\dfrac13+\cdots+\dfrac1i\ (i\ge1).\)

Derive the closed-form generating function for the harmonic numbers.

\(H_i=\sum_{k=1}^{i}\dfrac1k\),也就是 \(\{1/k\}\) 的 partial sum;partial sum 的 g.f. = 原 g.f. 乘 \(\dfrac1{1-x}\)

\(\{1/k\}_{k\ge1}\) 的 g.f.:\(\displaystyle\sum_{k\ge1}\dfrac{x^k}k=-\ln(1-x)\)

\(\displaystyle\sum_{n\ge0}H_nx^n=\sum_{n\ge1}\sum_{k=1}^{n}\dfrac{x^n}k=\sum_{k\ge1}\dfrac1k\sum_{n\ge k}x^n=\sum_{k\ge1}\dfrac1k\cdot\dfrac{x^k}{1-x}=\dfrac1{1-x}\sum_{k\ge1}\dfrac{x^k}k\)

展開 \(-\ln(1-x)/(1-x)=x+\tfrac32x^2+\tfrac{11}6x^3+\tfrac{25}{12}x^4+\cdots\),係數就是 \(H_1,H_2,H_3,H_4\)

\(\displaystyle\sum_{n\ge0}H_nx^n=\dfrac{-\ln(1-x)}{1-x}=\dfrac1{1-x}\ln\dfrac1{1-x}\)

510%

(10%) Solve the recurrence equation \(a_{n+2}=a_{n+1}+2a_n\) with \(a_0=0\) and \(a_1=1\).

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

\(a_n=A\cdot2^n+B(-1)^n\)

\(a_0=A+B=0\),\(a_1=2A-B=1\) → \(A=\tfrac13,\ B=-\tfrac13\)

驗 \(a_2=a_1+2a_0=1\):\(\tfrac{4-1}{3}=1\);\(a_3=1+2=3\):\(\tfrac{8+1}{3}=3\)(數列 0, 1, 1, 3, 5, 11, 21, …)

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

65%

(5%) The postorder traversal of the following rooted binary tree is ______.

cafdgj

postorder:左子樹 → 右子樹 → 根

\(a\):左子樹 \(c\),右子樹以 \(d\) 為根

\(d\):左 \(f\),右子樹以 \(g\) 為根(\(g\) 只有右子 \(j\))→ \(f,\ j,\ g,\ d\)

全部:\(c,\ f,\ j,\ g,\ d,\ a\)

\(c\,f\,j\,g\,d\,a\)

710%

(10%) Let \(V\) be a vector space over a scalar field \(F\). For any subset \(S\) of \(V\), let \(\operatorname{span}(S)\) consist of the vectors of \(V\) that can be written as \(a_1x_1+a_2x_2+\cdots+a_nx_n\) with \(a_1,a_2,\ldots,a_n\in F\) and \(x_1,x_2,\ldots,x_n\in S\) for some positive integer \(n\). Prove that \(\operatorname{span}(S)\) is the unique subspace of \(V\) such that any subspace of \(V\) containing \(S\) has to contain \(\operatorname{span}(S)\). Specifically, you have to show that (a) \(\operatorname{span}(S)\) is a subspace of \(V\), (b) if \(U\) is a subspace of \(V\) with \(S\subseteq U\), then \(\operatorname{span}(S)\subseteq U\), and (c) there is no other subspace of \(V\) satisfying property (b).

(a) \(u=\sum a_ix_i\)、\(v=\sum b_jy_j\in\operatorname{span}(S)\)(\(x_i,y_j\in S\)),\(\alpha,\beta\in F\)

\(\alpha u+\beta v=\sum(\alpha a_i)x_i+\sum(\beta b_j)y_j\) 仍是 \(S\) 裡有限個向量的線性組合 → \(\in\operatorname{span}(S)\)

\(0=0\cdot x\)(\(x\in S\))\(\in\operatorname{span}(S)\),且 \(\operatorname{span}(S)\subseteq V\) → \(\operatorname{span}(S)\) 是 \(V\) 的 subspace

\(S=\varnothing\) 時依慣例 \(\operatorname{span}(\varnothing)=\{0\}\),題目的定義(\(n\) 為正整數)本身產生不出 0

(b) \(U\) 是 subspace 且 \(S\subseteq U\),取 \(\operatorname{span}(S)\) 中任一元素 \(\sum a_ix_i\)

\(x_i\in S\subseteq U\),\(U\) 對純量乘法、加法封閉 → \(\sum a_ix_i\in U\) → \(\operatorname{span}(S)\subseteq U\)

(c) 設 subspace \(T\) 也滿足 (b):包含 \(S\),且含在每個包含 \(S\) 的 subspace 裡。要證 \(T=\operatorname{span}(S)\)

\(\operatorname{span}(S)\) 是包含 \(S\) 的 subspace((a) 與 \(S\subseteq\operatorname{span}(S)\)),\(T\) 的性質 → \(T\subseteq\operatorname{span}(S)\)

\(T\) 是包含 \(S\) 的 subspace,\(\operatorname{span}(S)\) 的性質 (b) → \(\operatorname{span}(S)\subseteq T\)

兩邊互相包含 → \(T=\operatorname{span}(S)\) 得證

(c) 的敘述要加上「\(T\supseteq S\)」才成立:只說「包含在每個含 \(S\) 的 subspace 裡」,\(\{0\}\) 也符合,所以「包含 \(S\)」是 span 的定義條件之一,上面證明已把它算進去

810%

(10%)

(a) Let \(T\) be a linear transformation from \(V\) to \(W\), where \(V\) and \(W\) are finite-dimensional vector spaces over a common field \(F\). We have \(\operatorname{nullity}(T)+\operatorname{rank}(T)=\dim(\)______\()\).

(b) Let \(R\) consist of the real numbers. Let function \(f:R^3\to R^3\) be defined as \(f(x,y,z)=(x+y+z,\ x-y,\ y-z)\). If \(g:R^3\to R^3\) is a linear function with \(g(1,1,0)=(2,0,1)\), \(g(1,0,1)=(2,1,-1)\), and \(g(0,1,1)=(2,-1,0)\), then \(g(5,3,0)=\)______.

(c) If the dimension of the vector space \(M_{7\times4}(C)\) of matrices with seven rows and four columns over the field \(C\) of complex numbers equals the dimension of the vector space \(R^n\) of \(n\)-tuples over the field \(R\) of real numbers, then \(n=\)______.

(d) Let \(A\) be an \(m\times n\) matrix over the field \(R\) of real numbers. If the \(m\) rows of \(A\) are linearly independent, then the dimension of the vector space spanned by the \(n\) rows of \(A\) is ______.

(e) If \(U\) and \(V\) are two distinct subspaces of a vector space \(W\) with \(\dim(W)=6\), then \(\dim(U\cap V)\) is either ______ or ______.

(a) rank–nullity:nullity + rank = domain 的維度

\(\dim(V)\)

(b) \(f\) 與 \(g\) 無關。把 \((5,3,0)\) 用三個已知向量表示:\(a(1,1,0)+b(1,0,1)+c(0,1,1)\)

\(a+b=5,\ a+c=3,\ b+c=0\) → \(a+b+c=4\) → \(c=-1,\ b=1,\ a=4\)

\(g(5,3,0)=4(2,0,1)+(2,1,-1)-(2,-1,0)=(8+2-2,\ 0+1+1,\ 4-1-0)\)

\((8,\ 2,\ 3)\)

(c) \(\dim_C M_{7\times4}(C)=7\cdot4=28\)(over \(C\));\(\dim_RR^n=n\)

\(n=28\)

(d) \(m\) 個 row 線性獨立 → row rank \(=m\),row space 的維度 \(m\);column rank \(=\) row rank \(=m\),所以不管看 row 還是 column 都是 \(m\)

題目寫「the \(n\) rows」,\(A\) 只有 \(m\) 個 row,應是 \(n\) columns;兩種讀法答案同為 \(m\)

\(m\)

(e) \(U\cap V\subseteq U\);\(U,V\) distinct → \(U\cap V\ne W\)(否則 \(U=V=W\)),所以 \(\dim(U\cap V)\le5\)

0 到 5 都做得出來(\(W=R^6\),\(e_1,\ldots,e_6\) 為標準基底):\(k=0,\ldots,4\):\(U=\operatorname{span}(e_1..e_k,e_{k+1})\)、\(V=\operatorname{span}(e_1..e_k,e_{k+2})\);\(k=5\):\(U=\operatorname{span}(e_1..e_5)\)、\(V=W\)

題目沒給 \(U,V\) 各自的維度,只憑「distinct、\(\dim W=6\)」得不到只剩兩個值;若是兩個 5 維子空間則恰為 4,兩個 4 維子空間則為 2 或 3

可能是 0、1、2、3、4、5 中任何一個(只有 6 不可能)

910%

(10%) Let

\(A=\begin{bmatrix}-1&-2&-2\\1&2&1\\-1&-1&0\end{bmatrix}.\)

Find \(A^{-100}\) and \(A^{101}\).

算 \(A^2\):

第 1 列:\((-1)(-1)+(-2)(1)+(-2)(-1)=1\),\((-1)(-2)+(-2)(2)+(-2)(-1)=0\),\((-1)(-2)+(-2)(1)+(-2)(0)=0\)

第 2 列:\((1)(-1)+(2)(1)+(1)(-1)=0\),\((1)(-2)+(2)(2)+(1)(-1)=1\),\((1)(-2)+(2)(1)+0=0\)

第 3 列:\((-1)(-1)+(-1)(1)+0=0\),\((-1)(-2)+(-1)(2)+0=0\),\((-1)(-2)+(-1)(1)+0=1\)

\(A^2=I\)

\(A^{-100}=(A^{-2})^{50}=I\);\(A^{101}=A\,(A^2)^{50}=A\)

特徵多項式 \(\lambda^3-\lambda^2-\lambda+1=(\lambda-1)^2(\lambda+1)\),且 \(A^2=I\)

\(A^{-100}=I\),\(A^{101}=A=\begin{bmatrix}-1&-2&-2\\1&2&1\\-1&-1&0\end{bmatrix}\)

1010%

(10%) Consider the following system of linear equations:

\(\begin{aligned}2x+y+z&=4\\4x+2y+2z&=8\\5x+y\phantom{{}+z}&=19.\end{aligned}\)

Find the solution \((x,y,z)\) to the above system of linear equations that minimizes \(x^2+y^2+z^2\).

第 2 式是第 1 式的 2 倍,只剩兩個獨立方程式 → 解集合是一條直線

由第 3 式 \(y=19-5x\);代入第 1 式 \(z=4-2x-y=3x-15\)

\(x^2+y^2+z^2=x^2+(19-5x)^2+(3x-15)^2=35x^2-280x+586=35(x-4)^2+26\)

最小在 \(x=4\):\(y=-1,\ z=-3\) (最小值 26)

驗:\(8-1-3=4\) ✓;\(20-1=19\) ✓

\((x,y,z)=(4,\ -1,\ -3)\)

1110%

(10%) Find the eigenvalues of the following matrix:

\(\begin{bmatrix}1&-1&0&0\\-1&0&1&0\\0&1&1&0\\0&0&0&3\end{bmatrix}.\)

最後一列、一行只有對角線的 3 → block diagonal:\(\operatorname{diag}(B,\,3)\),\(B=\begin{bmatrix}1&-1&0\\-1&0&1\\0&1&1\end{bmatrix}\)

\(\det(B-\lambda I)=(1-\lambda)\big[(-\lambda)(1-\lambda)-1\big]-(-1)\big[(-1)(1-\lambda)-0\big]\)

\(=(1-\lambda)(\lambda^2-\lambda-1)-(1-\lambda)=(1-\lambda)(\lambda^2-\lambda-2)=(1-\lambda)(\lambda-2)(\lambda+1)\)

\(B\) 的 eigenvalue:\(1,\ 2,\ -1\);加上 \(3\)

整個 4×4 的特徵多項式 \((\lambda-3)(\lambda-2)(\lambda-1)(\lambda+1)\)

\(-1,\ 1,\ 2,\ 3\)

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com