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

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

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

逐題詳解

112 分

Let \(A=\begin{bmatrix}1&1\\-1&3\end{bmatrix}\). (a) Find the eigenvalues and eigenvectors of \(A\). (b) Solve \((A-2I)\mathbf v=\mathbf e\) for \(\mathbf v\), where \(I\) is the identity matrix and \(\mathbf e\) is an eigenvetor of \(A\). (c) Give the matrix for \(A\) with respect to the basis \(\{\mathbf e,\mathbf v\}\).

(a) \(\det(A-\lambda I)=(1-\lambda)(3-\lambda)+1=\lambda^2-4\lambda+4=(\lambda-2)^2\)

\(\lambda=2\)(重根)

\(A-2I=\begin{bmatrix}-1&1\\-1&1\end{bmatrix}\),\(-x+y=0\) → \(y=x\)

\(\lambda=2\);eigenvectors:\(t\begin{bmatrix}1\\1\end{bmatrix}\)(\(t\ne0\))

代數重數 2、幾何重數 1,\(A\) 不能對角化

(b) 取 \(\mathbf e=\begin{bmatrix}1\\1\end{bmatrix}\):\(\begin{bmatrix}-1&1\\-1&1\end{bmatrix}\mathbf v=\begin{bmatrix}1\\1\end{bmatrix}\) → \(-v_1+v_2=1\)

\(\mathbf v=\begin{bmatrix}0\\1\end{bmatrix}+s\begin{bmatrix}1\\1\end{bmatrix}\),取 \(s=0\)

\(\mathbf v=\begin{bmatrix}0\\1\end{bmatrix}\)(一般解 \(\begin{bmatrix}s\\1+s\end{bmatrix}\))

(c) \(A\mathbf e=2\mathbf e\) → 座標 \((2,0)\)

\((A-2I)\mathbf v=\mathbf e\) → \(A\mathbf v=\mathbf e+2\mathbf v\) → 座標 \((1,2)\)

驗算:\(A\mathbf v=A\begin{bmatrix}0\\1\end{bmatrix}=\begin{bmatrix}1\\3\end{bmatrix}=\begin{bmatrix}1\\1\end{bmatrix}+2\begin{bmatrix}0\\1\end{bmatrix}\) ✓

\(\begin{bmatrix}2&1\\0&2\end{bmatrix}\)(Jordan block)

29 分

Let \(W\) be the subspace of \(R^3\) defined by \(W=\{\mathbf x=[x_1,x_2,x_3]^{t}\mid x_1+x_2-3x_3=0\}\). \(W\) has a basis \(\{\mathbf u_1,\mathbf u_2\}\), where \(\mathbf u_1=[1\ \ -1\ \ 0]^{t}\) and \(\mathbf u_2=[3\ \ 0\ \ 1]^{t}\). (a) Apply the Gram-Schmidt process to \(\{\mathbf u_1,\mathbf u_2\}\) to obtain an orthogonal basis \(\{\mathbf v_1,\mathbf v_2\}\). (b) Calculate the best approximation \(\mathbf v^{*}\) in \(W\) to the vector \(\mathbf v=[1\ \ -2\ \ 4]^{t}\).

(a) \(\mathbf v_1=\mathbf u_1=(1,-1,0)\),\(\mathbf v_1\cdot\mathbf v_1=2\)

\(\mathbf u_2\cdot\mathbf v_1=3\) → \(\mathbf v_2=\mathbf u_2-\dfrac32\mathbf v_1=(3,0,1)-\bigl(\tfrac32,-\tfrac32,0\bigr)=\bigl(\tfrac32,\tfrac32,1\bigr)\)

驗算:\(\mathbf v_1\cdot\mathbf v_2=\tfrac32-\tfrac32=0\) ✓;\(\mathbf v_2\in W\):\(\tfrac32+\tfrac32-3=0\) ✓

\(\mathbf v_1=(1,-1,0)^{t}\),\(\mathbf v_2=\bigl(\tfrac32,\tfrac32,1\bigr)^{t}\)(或 \((3,3,2)^{t}\))

(b) \(\mathbf v^{*}=\dfrac{\mathbf v\cdot\mathbf v_1}{\mathbf v_1\cdot\mathbf v_1}\mathbf v_1+\dfrac{\mathbf v\cdot\mathbf v_2}{\mathbf v_2\cdot\mathbf v_2}\mathbf v_2\)

\(\mathbf v\cdot\mathbf v_1=1+2=3\);\(\mathbf v\cdot\mathbf v_2=\tfrac32-3+4=\tfrac52\);\(\mathbf v_2\cdot\mathbf v_2=\tfrac94+\tfrac94+1=\tfrac{11}2\)

\(\mathbf v^{*}=\tfrac32(1,-1,0)+\tfrac5{11}\bigl(\tfrac32,\tfrac32,1\bigr)=\bigl(\tfrac32+\tfrac{15}{22},\ -\tfrac32+\tfrac{15}{22},\ \tfrac5{11}\bigr)\)

驗算:\(\mathbf n=(1,1,-3)\),\(\mathbf n\cdot\mathbf v=-13\),\(\mathbf v^{*}=\mathbf v+\tfrac{13}{11}\mathbf n=\tfrac1{11}(24,-9,5)\) ✓;\(24-9-15=0\) ✓

\(\mathbf v^{*}=\dfrac1{11}\,(24,\ -9,\ 5)^{t}\)

39 分

(a) Find the straight line \(y=A+Bx\) that best fits the measurements, \((x,y)\), of \((0,0)\), \((1,1)\), \((3,2)\) and \((4,5)\). (b) Find the curve \(y=C+D2^{x}\) that gives the best least squares fit to the measurements, \((x,y)\), of \((0,6)\), \((1,4)\) and \((2,0)\).

(a) normal equations \(\begin{bmatrix}n&\sum x\\\sum x&\sum x^2\end{bmatrix}\begin{bmatrix}A\\B\end{bmatrix}=\begin{bmatrix}\sum y\\\sum xy\end{bmatrix}\)

\(n=4\),\(\sum x=8\),\(\sum x^2=26\),\(\sum y=8\),\(\sum xy=0+1+6+20=27\)

\(4A+8B=8\) → \(A=2-2B\);\(8A+26B=27\) → \(16-16B+26B=27\) → \(B=\tfrac{11}{10}\),\(A=-\tfrac15\)

\(y=-\dfrac15+\dfrac{11}{10}x\)

(b) 設計矩陣的兩行是 \(1\) 與 \(2^{x}\):\(\begin{bmatrix}1&1\\1&2\\1&4\end{bmatrix}\begin{bmatrix}C\\D\end{bmatrix}\approx\begin{bmatrix}6\\4\\0\end{bmatrix}\)

\(A^{T}A=\begin{bmatrix}3&7\\7&21\end{bmatrix}\),\(A^{T}\mathbf y=\begin{bmatrix}10\\14\end{bmatrix}\)

\(3C+7D=10\);\(7C+21D=14\) → \(C+3D=2\),\(C=2-3D\),\(6-9D+7D=10\) → \(D=-2\),\(C=8\)

三點全部剛好落在曲線上:\(x=0,1,2\) → \(8-2,\ 8-4,\ 8-8=6,4,0\),誤差為 0

\(y=8-2\cdot2^{x}\)

412 分

(a) A problem is defined as \(\begin{cases}20x+17y+14z\ge18(x+y+z)\\x+2y+3z\le480\\x,y,z\ge0\end{cases}\), in which there are two inequality constraints: \(20x+17y+14z\ge18(x+y+z)\) and \(x+2y+3z\le480\), and three simple nonnegativity constraints: \(x,y,z\ge0\). Transform this problem into an equivalent problem, referred to as an equality problem for convenience, that contains only equality constraints and simple nonnegativity constraints. (b) Transform the problem \(\begin{cases}2x+5y\le3\\-3x+8y\le-5\\x,y\ge0\end{cases}\) into an equality problem and find its solution set.

(a) 先整理第一式:\(20x+17y+14z-18x-18y-18z\ge0\) → \(2x-y-4z\ge0\)

「≥」減一個 surplus 變數 \(s_1\ge0\);「≤」加一個 slack 變數 \(s_2\ge0\)

\(\begin{cases}2x-y-4z-s_1=0\\x+2y+3z+s_2=480\\x,y,z,s_1,s_2\ge0\end{cases}\)

(b) 兩個「≤」各加一個 slack 變數:

\(\begin{cases}2x+5y+s_1=3\\-3x+8y+s_2=-5\\x,y,s_1,s_2\ge0\end{cases}\)

solution set:\(s_1,s_2\ge0\) 等價於回到 \(2x+5y\le3\)、\(3x-8y\ge5\)

由第二式 \(x\ge\dfrac{5+8y}{3}\),由第一式 \(x\le\dfrac{3-5y}{2}\),兩者要相容:\(\dfrac{5+8y}3\le\dfrac{3-5y}2\) → \(10+16y\le9-15y\) → \(y\le-\dfrac1{31}\)

與 \(y\ge0\) 矛盾(\(y=0\) 時也是 \(x\ge\tfrac53\) 且 \(x\le\tfrac32\),不可能)

solution set = ∅(無解)

55 分

A square matrix \(A\) is skew-symmetric if \(A=-A^{T}\), where \(A^{T}\) is the transpose of \(A\). What is \(\det(A^{65})\)?

設 \(A\) 為 \(n\times n\):\(\det A=\det(-A^{T})=(-1)^{n}\det A\)

\(n\) 為奇數:\(\det A=-\det A\) → \(\det A=0\),\(\det(A^{65})=(\det A)^{65}=0\)

題目沒給 \(n\);\(n\) 為偶數時 \(\det A\) 不一定是 0(例如 \(\begin{bmatrix}0&1\\-1&0\end{bmatrix}\) 的 det 是 1),此時只能寫成 \((\det A)^{65}\)

\(\det(A^{65})=(\det A)^{65}=0\)(\(n\) 為奇數)

63 分

Is there a linear transformation \(T:R^3\to R^3\) whose range is \(2x+y+z=8\)?

線性變換的 range 是子空間,一定包含零向量:\(T(\mathbf 0)=\mathbf 0\)

\((0,0,0)\) 代入 \(2x+y+z=8\):\(0\ne8\),這個平面不過原點,不是子空間

不存在

73 分

Let \(A=\{a,c\}\), \(B=\{x,y\}\), and \(C=\{0,1\}\). Find \(C\times B\times A\).

依 \(C\)、\(B\)、\(A\) 的順序取一個元素,\(2\cdot2\cdot2=8\) 個 ordered triples

\(\{(0,x,a),(0,x,c),(0,y,a),(0,y,c),(1,x,a),(1,x,c),(1,y,a),(1,y,c)\}\)

83 分

The chromatic number of a graph is the least number of colors needed for a coloring of this. Find the chromatic number of the following graph.

abcdefg

邊:\(ab,\ af,\ ag,\ bc,\ bg,\ cg,\ cd,\ dg,\ de,\ eg,\ fg\)(\(g\) 與其他六個點都相連)

下界:\(a,b,g\) 兩兩相鄰(三角形) → 至少 3 色

上界:\(g\) 用色 1;其餘六點形成路徑 \(f-a-b-c-d-e\),交替用色 2、3(\(a,c,e\) 色 2;\(b,d,f\) 色 3)

a2b3c2d3e2f3g1

圖上紅字是各點的顏色編號

chromatic number = 3

95 分

Suppose that \(A=\begin{bmatrix}a&0\\0&b\end{bmatrix}\) where \(a\) and \(b\) are real numbers. Show that \(A^{n}=\begin{bmatrix}a^{n}&0\\0&b^{n}\end{bmatrix}\).

對 \(n\) 做歸納法(\(n\ge1\))

\(n=1\):\(A^{1}=\begin{bmatrix}a&0\\0&b\end{bmatrix}\) ✓

設 \(A^{k}=\begin{bmatrix}a^{k}&0\\0&b^{k}\end{bmatrix}\),則

\(A^{k+1}=A^{k}A=\begin{bmatrix}a^{k}&0\\0&b^{k}\end{bmatrix}\begin{bmatrix}a&0\\0&b\end{bmatrix}=\begin{bmatrix}a^{k+1}&0\\0&b^{k+1}\end{bmatrix}\)

得證

106 分

Give the dominoes and a nonstandard checkerboard which is obtained by removing both the upper left and the lower right squares of a 8×8 standard checkerboard as follows.

 

(nonstandard checkerboard;two dominoes) We say that a checkerboard is tiled by dominoes when all its squares are covered with no overlapping dominoes and no dominoes overhanging the board. Can we tile the nonstandard checkerboard using above dominoes? We do not limit the number of the dominoes. You should justify for your answer.

不能。把棋盤黑白染色:標準 8×8 有 32 黑、32 白

左上角 \((1,1)\) 與右下角 \((8,8)\) 的行列和同為偶數,顏色相同(設為白);兩格都拿掉後剩 \(30\) 白、\(32\) 黑

一塊 domino(直放或橫放)蓋住相鄰兩格,一定是一黑一白;\(k\) 塊 domino 蓋住 \(k\) 黑 \(k\) 白

要蓋滿需要黑白格數相等,但 \(30\ne32\)

不能 tile(黑白格數不等)

116 分

Solve the recurrence relation \(a_n=6a_{n-1}-12a_{n-2}+8a_{n-3}\) with \(a_0=-5\), \(a_1=4\), and \(a_2=88\).

特徵方程式 \(r^3-6r^2+12r-8=(r-2)^3=0\) → \(r=2\)(三重根)

\(a_n=(\alpha+\beta n+\gamma n^2)\,2^{n}\)

\(a_0=\alpha=-5\)

\(a_1=2(\alpha+\beta+\gamma)=4\) → \(\beta+\gamma=7\)

\(a_2=4(\alpha+2\beta+4\gamma)=88\) → \(2\beta+4\gamma=27\)

\(2\gamma=27-14=13\),\(\gamma=\tfrac{13}2\),\(\beta=\tfrac12\)

驗算:\(a_3=6\cdot88-12\cdot4+8\cdot(-5)=440\);公式 \(2^{2}(13\cdot9+3-10)=4\cdot110=440\) ✓

\(a_n=\Bigl(-5+\dfrac n2+\dfrac{13n^2}{2}\Bigr)2^{n}=2^{n-1}\,(13n^2+n-10)\)

126 分

Answer the following questions:

(1) Suppose you received three bit strings over a communications link, where the last bit is a parity check bit. The received strings are 00000111111, 10101010101, 10111101111. In which string are you sure there is an error?

(2) Is the poset with the following Hasse diagram a lattice? Please answer “yes” or “no”.

ihfgdebca

(1) even parity:整串(含 parity bit)1 的個數為偶數

00000111111:6 個 1 ✓;10101010101:6 個 1 ✓;10111101111:9 個 1 ✗

題目沒寫 even 或 odd;取通用的 even parity。若是 odd parity,前兩個才是錯的,答案就不是單一一串

第三串 10111101111

(2) Hasse diagram:\(a\lt b,c\);\(b\lt d,g\);\(c\lt e\);\(d\lt f\);\(e\lt g\);\(f,g\lt h\);\(h\lt i\)

lattice 要求任兩個元素都有 least upper bound 與 greatest lower bound。逐對檢查不可比的元素:

pairupper boundslublower boundsglb
b, cg, h, igaa
b, eg, h, igaa
d, ch, ihaa
d, eh, ihaa
d, gh, iha, bb
f, ch, ihaa
f, eh, ihaa
f, gh, iha, bb

其餘的 pair 彼此可比(較大者為 lub、較小者為 glb),每一對都有 lub 與 glb

yes

136 分

Find all solutions of the congruence \(x^2\equiv16\pmod{105}\).

\(105=3\cdot5\cdot7\),分別解再用 CRT 合併

mod 3:\(x^2\equiv1\) → \(x\equiv\pm1\)

mod 5:\(x^2\equiv1\) → \(x\equiv\pm1\)

mod 7:\(x^2\equiv16\equiv2\) → \(x\equiv\pm3\)(\(3^2=9\equiv2\),\(4^2=16\equiv2\))

每個質因數 2 個解,共 \(2\cdot2\cdot2=8\) 組

x mod 311112222
x mod 511441144
x mod 734343434
x mod 1053146944101115974

驗算:\(4^2=16\);\(11^2=121=105+16\);\(31^2=961=9\cdot105+16\);\(46^2=2116=20\cdot105+16\);其餘四個是 \(-46,-31,-11,-4\) 的同餘類

\(x\equiv\pm4,\ \pm11,\ \pm31,\ \pm46\pmod{105}\),即 4, 11, 31, 46, 59, 74, 94, 101

146 分

Find a closed form for the generating function for the following sequence. 2, 4, 8, 16, 32, 64, 128, 256, …

\(a_n=2^{n+1}\)(\(n\ge0\))

\(G(x)=\sum_{n\ge0}2^{n+1}x^{n}=2\sum_{n\ge0}(2x)^{n}\)

\(G(x)=\dfrac{2}{1-2x}\)

159 分

Three small towns, designated by A, B, and C, are interconnected by a system of two-way roads, as shown in the following figure.

R1R2R3R4R5R6R8R7R9ABC

Suppose there is a traveler John traveling between small towns. (1) In how many ways can John travel from town A to town C? (2) How many different round trips can John travel from town A to town C and back to town A? (3) How many of the round trips in part (2) are such that the return trip (from town C to town A) is at least partially different from the route John takes from town A to town C? (For example, if John travels from town A to town C along roads R1 and R5, then on his return he might take roads R5 and R3, or roads R6 and R2, or road R9, among other possibilities. But he does not travel on roads R5 and R1.)

從圖看:A、B 之間有 \(R_1,R_2,R_3,R_4\)(4 條);B、C 之間有 \(R_5,R_6\)(2 條);A、C 之間有 \(R_7,R_8,R_9\)(3 條)

(1) A → C 的走法:直接走 \(3\);經過 B:\(4\times2=8\)

\(3+8=11\)

11

(2) 去程 11 種、回程 11 種(走法的種數與方向無關)

\(11\times11=121\)

121

(3) 「回程至少有一部分跟去程不同」= 回程不是把去程原路倒著走

原路倒走的回程對每種去程恰好 1 種,共 11 種

\(121-11=110\)

110

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

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

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

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com