免費詳解 / 中央 / 數學 / 102

102 中央資工所考古題解答|數學逐題詳解

102 中央資工所數學考古題的逐題詳解,共 20 題,免費公開。

逐題詳解

15 分

Let \([T_1]=\begin{bmatrix}1&-2&2\\2&1&1\\1&1&1\end{bmatrix},\ [T_2]=\begin{bmatrix}1&-3&4\\-1&1&1\\1&-2&5\end{bmatrix},\ [T_3]=\begin{bmatrix}1&4&-3\\2&7&1\\1&1&3\end{bmatrix},\ [T_4]=\begin{bmatrix}1&4&-3\\2&7&1\\0&1&3\end{bmatrix}\).

Which linear operators are one-to-one?

(A) \(T_1\) (B) \(T_2\) (C) \(T_3\) (D) \(T_4\) (E) none of the above.

operator one-to-one \(\iff\) \([T]\) 可逆 \(\iff\) \(\det\ne0\)

\(T_1\):\(\det=1(1-1)+2(2-1)+2(2-1)=4\ne0\) → T

\(T_2\):\(\det=1(5+2)+3(-5-1)+4(2-1)=-7\ne0\) → T

\(T_3\):\(\det=1(21-1)-4(6-1)-3(2-7)=15\ne0\) → T

\(T_4\):\(\det=1(21-1)-4(6-0)-3(2-0)=-10\ne0\) → T

(A), (B), (C), (D)

25 分

Let \(A=\begin{bmatrix}1/2&-\sqrt3/2\\0&0\end{bmatrix},\ B=\begin{bmatrix}\sqrt2&-\sqrt2\\\sqrt2&\sqrt2\end{bmatrix},\ C=\begin{bmatrix}2&0\\0&-2\end{bmatrix}\). Which of the following are true?

(A) Matrix \(A\) is the standard matrix for the composition of linear operators stated below: a counterclockwise rotation of 60°, followed by an orthogonal projection on the \(x\)-axis.

(B) Matrix \(B\) is the standard matrix for the composition of linear operators stated below: a dilation with factor \(k=2\), followed by a counterclockwise rotation of 45°.

(C) Matrix \(C\) is the standard matrix for the linear operator defined below: a reflection about the \(x\)-axis, followed by a contraction with factor \(k=1/2\).

(D) Matrix \(C\) is the standard matrix for the linear operator defined below: a reflection about the \(x\)-axis, followed by a dilation with factor \(k=2\).

(E) None of the above.

先做的矩陣寫在右邊

(A) \(\begin{bmatrix}1&0\\0&0\end{bmatrix}\begin{bmatrix}\cos60°&-\sin60°\\ \sin60°&\cos60°\end{bmatrix}=\begin{bmatrix}1/2&-\sqrt3/2\\0&0\end{bmatrix}=A\) → T

(B) \(\begin{bmatrix}\cos45°&-\sin45°\\ \sin45°&\cos45°\end{bmatrix}\cdot2I=\begin{bmatrix}\sqrt2&-\sqrt2\\ \sqrt2&\sqrt2\end{bmatrix}=B\) → T

(C) \(\tfrac12\begin{bmatrix}1&0\\0&-1\end{bmatrix}=\begin{bmatrix}1/2&0\\0&-1/2\end{bmatrix}\ne C\) → F

(D) \(2\begin{bmatrix}1&0\\0&-1\end{bmatrix}=\begin{bmatrix}2&0\\0&-2\end{bmatrix}=C\) → T

(A), (B), (D)

35 分

Which of the following statements are false?

(A) If \(T:\mathbb R^n\to\mathbb R^m\) is a linear transformation and \(m\gt n\), then \(T\) is one-to-one.

(B) If \(T:\mathbb R^n\to\mathbb R^n\) and \(T(\mathbf 0)=\mathbf 0\), then \(T\) is linear.

(C) If \(T:\mathbb R^n\to\mathbb R^n\) is a linear operator and if \(T(\mathbf x)=3\mathbf x\) for some vector \(\mathbf x\), then \(\lambda=3\) is an eigenvalue of \(T\).

(D) If \(T:\mathbb R^n\to\mathbb R^m\) and if \(T(k\mathbf x)=kT(\mathbf x)\) for all scalars \(k\) and for all vectors \(\mathbf x\) in \(\mathbb R^n\), then \(T\) is linear.

(E) If \(T:\mathbb R^n\to\mathbb R^m\) and if \(T(k\mathbf x)=2kT(\mathbf x)\) for all scalars \(k\) and for all vectors \(\mathbf x\) in \(\mathbb R^n\), then \(T\) is linear.

(A) 零映射 \(T(\mathbf x)=\mathbf 0\) 是線性的,但不是 one-to-one → 敘述 F,選

(B) \(T(\mathbf 0)=\mathbf 0\) 只是必要條件,例 \(T(x)=x^2\) → 敘述 F,選

(C) \(\mathbf x=\mathbf 0\) 時 \(T(\mathbf 0)=3\cdot\mathbf 0\) 恆成立,eigenvector 要求 \(\mathbf x\ne\mathbf 0\) → 敘述 F,選

(D) 只有 homogeneity、沒有 additivity,例 \(T(x_1,x_2)=\dfrac{x_1^3}{x_1^2+x_2^2}\)(\(T(\mathbf 0)=0\))滿足 \(T(k\mathbf x)=kT(\mathbf x)\),但 \(T(1,1)=\tfrac12\ne T(1,0)+T(0,1)=1\) → 敘述 F,選

(E) 取 \(k=1\):\(T(\mathbf x)=2T(\mathbf x)\) → \(T(\mathbf x)=\mathbf 0\),零映射是線性 → 敘述 T,不選

(A), (B), (C), (D)

45 分

Which of the following sets of vectors in \(\mathbb R^3\) are linearly independent?

(A) \((3,8,7),\ (1,5,3),\ (2,-1,2)\)

(B) \((0,1,1),\ (3,0,0),\ (1,0,-1)\)

(C) \((1,-1,-2),\ (0,0,-6),\ (4,2,2)\)

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

(E) None of the above.

三個向量放在 \(\mathbb R^3\) → independent \(\iff\) \(\det\ne0\)

(A) \(\det\begin{bmatrix}3&8&7\\1&5&3\\2&-1&2\end{bmatrix}=3(10+3)-8(2-6)+7(-1-10)=39+32-77=-6\) → T

(B) \(\det\begin{bmatrix}0&1&1\\3&0&0\\1&0&-1\end{bmatrix}=-1\cdot(3\cdot(-1)-0)+1\cdot(0-0)=3\) → T

(C) \(\det\begin{bmatrix}1&-1&-2\\0&0&-6\\4&2&2\end{bmatrix}=1(0+12)+1(0+24)-2(0)=36\) → T

(D) \(\det\begin{bmatrix}3&0&-3\\0&2&3\\0&1&1\end{bmatrix}=3(2-3)=-3\) → T

(A), (B), (C), (D)

55 分

Let \(\mathbf u=\begin{bmatrix}u_{11}&u_{12}\\u_{21}&u_{22}\end{bmatrix}\) and \(\mathbf v=\begin{bmatrix}v_{11}&v_{12}\\v_{21}&v_{22}\end{bmatrix}\). With the standard matrix addition and the standard scalar multiplication, determine which of the following are subspaces of \(M_{22}\).

(A) The set of all \(2\times2\) matrices of the form \(\begin{bmatrix}a&2\\2&b\end{bmatrix}\).

(B) The set of all \(2\times2\) matrices of the form \(\begin{bmatrix}a&b\\b&d\end{bmatrix}\).

(C) The set of all \(2\times2\) matrices of the form \(\begin{bmatrix}a&a\\c&d\end{bmatrix}\).

(D) The set of all \(2\times2\) matrices of the form \(\begin{bmatrix}1&1\\c&d\end{bmatrix}\).

(E) None of the above.

subspace 要含零矩陣、對加法與純量乘法封閉

(A) 零矩陣的 (1,2) 項是 \(0\ne2\),不含零矩陣 → F

(B) symmetric matrices:和仍 symmetric、倍數仍 symmetric → T

(C) (1,1) 與 (1,2) 兩項相等的條件在加法、純量乘法下保持 → T

(D) 零矩陣的 (1,1) 項是 \(0\ne1\) → F

(B), (C)

65 分

Which are the eigenvectors of matrix \(\begin{bmatrix}2&-1&-1\\1&4&1\\-1&-1&2\end{bmatrix}\)?

(A) \(\begin{bmatrix}1\\-1\\0\end{bmatrix}\) (B) \(\begin{bmatrix}0\\-1\\1\end{bmatrix}\) (C) \(\begin{bmatrix}1\\0\\-1\end{bmatrix}\) (D) \(\begin{bmatrix}1\\-1\\1\end{bmatrix}\) (E) \(\begin{bmatrix}0\\1\\0\end{bmatrix}\)

直接把選項代進去乘

(A) \(M\begin{bmatrix}1\\-1\\0\end{bmatrix}=\begin{bmatrix}3\\-3\\0\end{bmatrix}=3\begin{bmatrix}1\\-1\\0\end{bmatrix}\) → T

(B) \(M\begin{bmatrix}0\\-1\\1\end{bmatrix}=\begin{bmatrix}0\\-3\\3\end{bmatrix}=3\begin{bmatrix}0\\-1\\1\end{bmatrix}\) → T

(C) \(M\begin{bmatrix}1\\0\\-1\end{bmatrix}=\begin{bmatrix}3\\0\\-3\end{bmatrix}=3\begin{bmatrix}1\\0\\-1\end{bmatrix}\) → T

(D) \(M\begin{bmatrix}1\\-1\\1\end{bmatrix}=\begin{bmatrix}2\\-2\\2\end{bmatrix}=2\begin{bmatrix}1\\-1\\1\end{bmatrix}\) → T

(E) \(M\begin{bmatrix}0\\1\\0\end{bmatrix}=\begin{bmatrix}-1\\4\\-1\end{bmatrix}\),不是倍數 → F

\(\lambda=3\) 的 eigenspace 是 \(x+y+z=0\)(\(M-3I\) 三列都是 \(\pm(1,1,1)\)),(A)(B)(C) 都在裡面;\(\lambda=2\) 的 eigenvector 是 \((1,-1,1)\)

(A), (B), (C), (D)

75 分

Which are correct?

(A) Any matrix has eigenvalues.

(B) An eigenvalue may be a complex number.

(C) A symmetric matrix always has real eigenvalues.

(D) A symmetric matrix always has positive eigenvalues.

(E) Matrix \(A^TA\) has no negative eigenvalue.

(A) 非方陣沒有 eigenvalue;方陣在 \(\mathbb R\) 上也可能沒有,例 \(\begin{bmatrix}0&-1\\1&0\end{bmatrix}\)(\(\lambda=\pm i\)) → F

(B) 上面的旋轉矩陣就是例子 → T

(C) real symmetric matrix 的 eigenvalue 都是實數(spectral theorem) → T

(D) \(\operatorname{diag}(1,-1)\) 是 symmetric 但有負的 eigenvalue → F

(E) \(A^TA\mathbf x=\lambda\mathbf x\) → \(\lambda\|\mathbf x\|^2=\|A\mathbf x\|^2\ge0\) → T

(B), (C), (E)

85 分

If \(A\) is a matrix and \(W^\perp\) is the orthogonal complement of vector set \(W\), then

(A) \(W^\perp\) is always a subspace.

(B) \((W^\perp)^\perp=W\).

(C) \((\operatorname{Col}A)^\perp=(\operatorname{Row}A)\).

(D) \(\operatorname{Col}A=(\operatorname{Nul}A)^\perp\).

(E) \((\operatorname{Col}A)^\perp=\operatorname{Nul}A^T\).

(A) \(W^\perp=\{\mathbf x:\mathbf x\cdot\mathbf w=0\ \forall\mathbf w\in W\}\),對加法與純量乘法封閉,W 是任意集合也成立 → T

(B) \((W^\perp)^\perp=\operatorname{Span}W\),W 只是 vector set(不一定是 subspace)時不等於 \(W\) → F

(C) \((\operatorname{Col}A)^\perp=\operatorname{Nul}A^T\),與 \(\operatorname{Row}A\) 不是同一個空間(甚至在不同的 \(\mathbb R^k\)) → F

(D) \((\operatorname{Nul}A)^\perp=\operatorname{Row}A\),不是 \(\operatorname{Col}A\) → F

(E) \(\mathbf x\perp\operatorname{Col}A\iff A^T\mathbf x=\mathbf 0\) → T

題目說 vector set,照字面 (B) 為 F;若 \(W\) 本身是 subspace 則 (B) 成立

(A), (E)

95 分

For linear system \(A\mathbf x=\mathbf b\), which are correct?

(A) \(A\mathbf x=\mathbf b\) always has solution.

(B) If \(A\mathbf x=\mathbf b\) has no solution, then \(A\mathbf x=\mathbf b\) must has least-squares solution.

(C) Sometimes, \(A^TA\) is not invertible.

(D) Sometimes the least-squares solution \((A^TA)^{-1}A^T\mathbf b\) doesn't exist.

(E) The least-squares solution can be set as \(R^{-1}Q^T\mathbf b\).

(A) \(\mathbf b\notin\operatorname{Col}A\) 時無解 → F

(B) normal equation \(A^TA\hat{\mathbf x}=A^T\mathbf b\) 恆有解(\(\hat{\mathbf b}=\operatorname{proj}_{\operatorname{Col}A}\mathbf b\) 一定存在) → T

(C) \(A\) 的 column 相依時 \(\operatorname{rank}(A^TA)=\operatorname{rank}A\lt n\),不可逆 → T

(D) \(A^TA\) 不可逆時,\((A^TA)^{-1}A^T\mathbf b\) 這個式子算不出來 → T

(E) \(A=QR\)(column 獨立)時 \(R\hat{\mathbf x}=Q^T\mathbf b\),\(\hat{\mathbf x}=R^{-1}Q^T\mathbf b\) → T

(E) 是 QR 分解的標準寫法(\(A\) 的 column 獨立時 \(R\) 可逆);(D) 的意思是「這個公式不是任何時候都能用」

(B), (C), (D), (E)

105 分

If \(A\) is a matrix. Which are correct?

(A) \(A\) is invertible, thus \(A=PDP^{-1}\).

(B) \(A\) has linearly independent eigenvectors, thus \(A=QR\).

(C) \(A\) is symmetric, thus \(A=PDP^T\).

(D) \(A\) is symmetric, thus \(A=\lambda_1\mathbf u_1\mathbf u_1^T+\lambda_2\mathbf u_2\mathbf u_2^T+\cdots+\lambda_n\mathbf u_n\mathbf u_n^T\).

(E) \(A\) is square, thus \(A=U\Sigma V^T\) (SVD).

(A) 可逆不代表可對角化,例 \(\begin{bmatrix}1&1\\0&1\end{bmatrix}\) → F

(B) \(A=PDP^{-1}\) 才是 independent eigenvectors 的結論;\(QR\) 要的是 column 獨立,兩者無關 → F

方陣的 \(A=QR\) 本身對任何方陣都存在,結論單獨看恆成立;但題目是把 \(A=PDP^{-1}\) 的前提配上 \(QR\) 的結論,前提與結論無關,出題意圖是 F;若只看「結論成不成立」則 (B) 也可選

(C) symmetric \(\Rightarrow\) orthogonally diagonalizable,\(P\) 取 orthogonal,\(P^{-1}=P^T\) → T

(D) spectral decomposition,\(\mathbf u_i\) 是 orthonormal eigenvectors → T

(E) 任何矩陣都有 SVD,方陣當然有 → T

(C), (D), (E)

115 分

Let \(P(x)\) be the statement "\(x=x^2\)". If the domain consists of the integers, which of the following propositions are true?

(A) \(\forall x\,P(x)\) (B) \(\forall x\,\neg P(x)\) (C) \(\exists x\,P(x)\) (D) \(\exists x\,\neg P(x)\) (E) \(\exists!\,x\,P(x)\)

\(x=x^2\iff x(x-1)=0\iff x=0\) 或 \(1\)

(A) \(x=2\) 不成立 → F

(B) \(x=0\) 使 \(P\) 成立,不是對所有 \(x\) 都 \(\neg P\) → F

(C) \(x=0\) → T

(D) \(x=2\) → T

(E) 兩個解(0 和 1),不唯一 → F

(C), (D)

125 分

Which of the following statements about RSA are correct?

(A) RSA is built on top of Fermat's little theorem.

(B) The two primes \(p\) and \(q\) chosen initially should be large enough.

(C) The encryption key \(e\) is co-prime to \((p-1)(q-1)\).

(D) The decryption key \(d\) is the inverse of \(e\) modulo \((p-1)(q-1)\).

(E) Both \(d\) and \(e\) will be made to the public. Hence RSA is also referred to as the public key system.

(A) \(ed\equiv1\pmod{(p-1)(q-1)}\),\(m^{ed}\equiv m\pmod p\) 與 \(\pmod q\) 都由 Fermat 小定理得到,再用 CRT 合併 → T

(B) \(n=pq\) 要大到無法分解 → T

(C) 要有 \(\gcd(e,(p-1)(q-1))=1\) 才有 \(d\) → T

(D) \(de\equiv1\pmod{(p-1)(q-1)}\) → T

(E) 只公開 \((n,e)\),\(d\) 是 private key → F

(A), (B), (C), (D)

135 分

Let \(A\) be a set with \(n\) elements, and \(R\) be a relation on \(A\). Which of the following statements about \(R\) are correct?

(A) The relation \(R\) can be represented by an \(n\) by \(n\) 0-1 matrix.

(B) The reflexive closure of \(R\) can be obtained quickly by adding some necessary 1's in the \(n\) by \(n\) matrix of \(R\), but the symmetric closure of \(R\) can not.

(C) The transitive closure of \(R\), \(R^*\), is defined by the formula: \(R^*=\bigcup_{i\in\mathbb Z^+}R^i\).

(D) In reality, the number of \(R^i\)'s needed to compute the transitive closure of \(R\) is less than \(n\).

(E) The Roy-Warshall algorithm helps us quickly obtain the necessary \(R^i\)'s for the transitive closure of \(R\).

(A) \(M_R[i][j]=1\iff(a_i,a_j)\in R\) → T

(B) reflexive closure:對角線補 1;symmetric closure:\(M_R\vee M_R^T\),同樣一步完成 → F

(C) transitive closure 就是所有長度 \(\ge1\) 的路徑 → T

(D) \(R^*=R\cup R^2\cup\cdots\cup R^n\),環狀(長度 \(n\) 的 cycle)時 \(R^n\) 也必須算,要 \(n\) 個,不是少於 \(n\) → F

(D) 照上界看 \(n\) 是最少要保證的項數(一個 \(n\) 點的 cycle 需要 \(R^n\)),故為 F;若解讀成「實際的圖通常提早收斂、不必算滿」則可視為 T

(E) Warshall algorithm 用 \(O(n^3)\) 直接得 \(R^*\),省掉逐次算 \(R^i\) → T

(A), (C), (E)

145 分

Which of the following statements about Graph is correct?

(A) There are \(n\) nodes and \(\dfrac{n(n-1)}{2}\) edges in \(K_n\).

(B) There are \(n\) nodes and \(n\) edges in \(C_n\), where \(n\ge3\).

(C) There are \(n\) nodes and \(2n\) edges in \(W_n\), where \(n\ge3\).

(D) There are \(2^n\) nodes and \(n\cdot2^{n-1}\) edges in \(Q_n\).

(E) There are \(n+m\) nodes and \(\dfrac{n\cdot m}{2}\) edges in \(K_{n,m}\).

(A) \(\binom n2\) → T

(B) cycle:\(n\) 點 \(n\) 邊 → T

(C) wheel \(W_n\) 是 \(C_n\) 加 hub,共 \(n+1\) 點、\(2n\) 邊;題目寫 \(n\) 點 → F

(D) hypercube:\(2^n\) 點,每點 degree \(n\),邊數 \(\dfrac{n\cdot2^n}{2}=n\cdot2^{n-1}\) → T

(E) \(K_{n,m}\) 有 \(n\cdot m\) 條邊,沒有除以 2 → F

(A), (B), (D)

155 分

Given the following Graph G. Which of the following statements are correct?

123040509094100

(A) G is a tree. (B) G is a binary search tree. (C) The length of the longest path in G is 3. (D) There are 7 connected components in G. (E) One possible DFS result of G (starting from node 50) is 50, 90, 100, 94, 30, 12, 40.

7 個點、6 條邊、連通

(A) 連通且 \(|E|=|V|-1\) → T

(B) 12 < 30 < 40 < 50 < 90 < 94 < 100,每個節點的左子樹都較小、右子樹都較大(94 在 90 的右子樹、100 的左邊) → T

(C) 圖是無向的,longest simple path:12–30–50–90–100–94 有 5 條邊 → F

(D) 連通圖只有 1 個 component → F

(E) 50 → 90 → 100 → 94,回頭 50 → 30 → 12 → 40 → T

(C) 若只算由根往下的路徑才是 3;圖沒有標方向,取一般圖的 simple path 為 5

(A), (B), (E)

165 分

Suppose \(x\) and \(y\) are students, and we define the following predicates: \(c(x,y)\): \(x\) and \(y\) are classmates; \(r(x,y)\): \(x\) and \(y\) are roommates; \(d(x,y)\): \(x\) and \(y\) are in the same department. Which of the following are logically equivalent to:

\(\neg[\forall x\exists y,\ d(x,y)\wedge r(x,y)\to c(x,y)]\)

(A) \(\exists x,y,\ [d(x,y)\wedge r(x,y)\to c(x,y)]\)

(B) \(\forall x,y,\ [c(x,y)\to d(x,y)\wedge r(x,y)]\)

(C) \(\forall x\,\exists!y,\ [d(x,y)\wedge r(x,y)\to c(x,y)]\)

(D) \(\exists x\,\forall y,\ [(d(x,y)\wedge r(x,y))\wedge\neg c(x,y)]\)

(E) None of the above.

\(\neg\forall x\exists y\,S\equiv\exists x\,\forall y\,\neg S\)

\(\neg(p\to q)\equiv p\wedge\neg q\),\(p=d\wedge r\),\(q=c\)

\(\neg[\cdots]\equiv\exists x\,\forall y\,[(d\wedge r)\wedge\neg c]\) → (D)

(A)(B)(C) 量詞或內部形式都對不上((A) 是 \(\exists\exists\)、內部沒有取否定)

(D)

175 分

Which of the following statements are true?

(A) Any well-ordered set is also a total-order set. (B) Any well-ordered set is also a partial-order set.

(C) Any partial-order set is also a total-order set. (D) Mathematical induction can be applied on any total-order set.

(E) A total-order set of predicates is necessary for applying mathematical induction.

well-ordered \(\Rightarrow\) total order \(\Rightarrow\) partial order

(A) well-ordered 的定義就是 total order 再加「每個非空子集有最小元」 → T

(B) total order 必是 partial order → T

(C) 反例:\(\{1,2\}\) 的 power set 在 \(\subseteq\) 下,\(\{1\}\) 與 \(\{2\}\) 不可比 → F

(D) 要 well-ordered 才能用,\((\mathbb Z,\le)\) 或 \((\mathbb R,\le)\) 都是 total order 但不能歸納 → F

(E) induction 的需求是 well-ordered(\(\mathbb N\)),不是「predicates 的 total order」 → F

(A), (B)

185 分

Which of the following equations about binomial coefficients are always true? (\(\forall r,s\in\mathbb R,\ k,n,m\in\mathbb N\))

(A) \(\dbinom rk=\dbinom r{r-k}\) (B) \(\displaystyle\sum_{0\le k\le n}\dbinom rk\dbinom s{n-k}=\dbinom{r+s}n\) (C) \(\dbinom rk=\dbinom{r-1}k+\dbinom{r-1}{k-1}\)

(D) \(\displaystyle\sum_{0\le k\le n}\dbinom{r+k}k=\dbinom{r+n+1}n\) (E) \(\displaystyle\sum_{0\le k\le n}\dbinom km=\dbinom{n+1}{m+1}\)

(A) symmetry 只在 \(r\) 是整數時成立;\(r\) 為實數時 \(r-k\) 不能當 lower index → F

(B) Vandermonde convolution,\(r,s\) 實數也成立 → T

(C) Pascal rule,\(r\) 實數、\(k\) 整數都成立 → T

(D) parallel summation,\(r\) 實數也成立 → T

(E) upper summation → T

(B), (C), (D), (E)

195 分

An international company uses the following procedure to select one employee of the year, where \(m\) is the input size (the number of employees being considered): (1) if \(m\lt36\), use \((m-1)\) comparison steps to select 1 candidate. Otherwise: (2) use \(\lceil\sqrt m\,\rceil\) comparison steps to evenly partition \(m\) into 36 subsets (sizes of different subsets differ at most 1); (3) randomly select 6 out of the 36 subsets, and for each subset follow the same procedure from (1) to select 1 candidate; (4) use 5 comparison steps to select 1 result out of the 6 candidates from each subset. Let \(f(n)\) be the number of comparison steps with respect to the input size \(n\). Which of the following are true?

(A) \(f(n)=6f(n/36)+\Theta(\sqrt n)\). (B) \(f(n)=6f(n/36)+\Theta(1)\). (C) \(f(n)=\Theta(\sqrt n)\). (D) \(f(n)=\Theta(n\log n)\). (E) \(f(n)=\Theta(n^{1/2}\log n)\).

子問題:6 個大小 \(n/36\) 的子集 → \(6f(n/36)\)

分割 \(\lceil\sqrt n\rceil\)+最後挑一個 5 → \(\Theta(\sqrt n)\)

\(f(n)=6f(n/36)+\Theta(\sqrt n)\) → (A) T,(B) F

Master theorem:\(a=6,\ b=36\),\(n^{\log_{36}6}=n^{1/2}\) → 和 \(\Theta(\sqrt n)\) 同階,case 2

\(f(n)=\Theta(\sqrt n\log n)\) → (E) T,(C)(D) F

(A), (E)

205 分

When solving the recurrence relation "\(a_n=5a_{n-1}-6a_{n-2}+2,\ n\ge2,\ a_0=3,\ a_1=7\)" using generating function \(f(z)\), which of the following are true?

(A) \(f(z)=\dfrac{2z^2}{1-5z+6z^2}\) (B) \(f(z)=\dfrac2{1-z}+\dfrac1{1-2z}+\dfrac3{1-3z}\) (C) \(f(z)=\dfrac1{1-z}+\dfrac2{1-3z}\) (D) \(a_n=2(3^n)+1\) (E) \(a_n=3^{n+1}+2^n+2\)

\(f(z)=\sum a_nz^n\),兩邊乘 \(z^n\) 加總(\(n\ge2\)):

\(f-3-7z=5z(f-3)-6z^2f+\dfrac{2z^2}{1-z}\)

\(f\,(1-5z+6z^2)=3-8z+\dfrac{2z^2}{1-z}\)

\(f=\dfrac{(3-8z)(1-z)+2z^2}{(1-z)(1-2z)(1-3z)}=\dfrac{3-11z+10z^2}{(1-z)(1-2z)(1-3z)}=\dfrac{(1-2z)(3-5z)}{(1-z)(1-2z)(1-3z)}=\dfrac{3-5z}{(1-z)(1-3z)}\)

部分分式:\(\dfrac{3-5z}{(1-z)(1-3z)}=\dfrac1{1-z}+\dfrac2{1-3z}\) → (C) T

\(a_n=1+2\cdot3^n\) → (D) T

驗:\(a_0=3,\ a_1=7,\ a_2=5\cdot7-6\cdot3+2=19=1+2\cdot9\)

(A) 分子只剩 \(2z^2\) 是忽略了 \(3-8z\) 與 \(1-z\) → F

(B) 會得 \(a_0=6\ne3\) → F

(E) \(a_0=3+1+2=6\ne3\) → F

(C), (D)

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

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

購買 · NT$ 850 看中央其他免費詳解

其他年度與考科

同一年的其他科

同一科的其他年度

聯絡我們

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

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

william.chou.123123@gmail.com