109 年 國立陽明交通大學資訊工程學系碩士班《線性代數與離散數學》
Which of these relations on are partial orderings? Note that a partial ordering relation is reflexive, antisymmetric, and transitive. If not a partial ordering relation, explain why it is not.
第 1-(a) 題3 分
Determine whether the relation is a partial ordering. If it is not, explain why.
登入後即可作答並保存紀錄。
核心觀念
偏序關係必須同時滿足三個條件:
- 自反性:對集合中每個元素 ,都有 。
- 反對稱性:若 且 ,則 。
- 遞移性:若 且 ,則 。
只要有一項不成立,該關係就不是偏序關係。
解題方法
令 ,題目給定的關係為
依序檢查三個條件。
自反性:成立。
集合 中的每個元素都出現在一個自反有序對中:
第 1-(b) 題3 分
Determine whether the relation is a partial ordering. If it is not, explain why.
登入後即可作答並保存紀錄。
核心觀念
偏序關係必須同時滿足:
- 自反性:對集合中每個元素 ,都有 。
- 反對稱性:若 且 ,則 。
- 遞移性:若 且 ,則 。
題目集合為 ,給定關係
解題方法
依序檢查自反性、反對稱性與遞移性;三項都成立,才能判定為偏序關係。
1. 檢查自反性
集合中的每個元素都要與自己形成有序對。關係中包含
因此 具有自反性。
2. 檢查反對稱性
檢查不同元素之間是否同時出現方向相反的有序對。關係中的非對角有序對為
第 1-(c) 題3 分
Determine whether the relation is a partial ordering. If it is not, explain why.
登入後即可作答並保存紀錄。
核心觀念
偏序關係必須同時滿足:
- 自反性:對集合中每個元素 ,都有 。
- 反對稱性:若 且 ,則必須有 。
- 遞移性:若 且 ,則必須有 。
只要其中一項不成立,該關係就不是偏序。
解題方法
令題目給定的關係為 。逐一檢查三項定義:
- 集合 的自反性要求包含 、、、;這四個有序對都在 中,因此 具有自反性。
Give a recursive definition of the sequence , where .
第 2-(a) 題4 分
.
登入後即可作答並保存紀錄。
核心觀念
遞迴定義是用前面的項來表示後面的項,並提供足夠的初始值。由於本題的 每增加 次方便回到原值,數列每兩項循環一次。
解題方法
先代入前兩個正整數,求出初始值:
再觀察 與 的奇偶性相同,因此 ,所以
第 2-(b) 題4 分
.
登入後即可作答並保存紀錄。
核心觀念
遞迴定義要用前一項或前幾項表示目前項,並指定初始值。此題可利用相鄰兩項的差,將 改寫成遞迴關係。
解題方法
先求初始值:
對 ,計算相鄰兩項的差:
因此,
第 3-(a) 題4 分
Determine whether the directed graph shown has an Euler circuit starting from vertex . Construct an Euler circuit if one exists. If no Euler circuit exists, determine whether the directed graph has an Euler path also starting from vertex . Construct an Euler path if one exists.
🖼️【此處有附圖,見下方】
登入後即可作答並保存紀錄。
核心觀念
有向圖的歐拉迴路會從指定頂點出發,恰好走過每一條有向邊一次,並回到起點。若圖中所有頂點都滿足入度等於出度,且邊所在部分連通,便存在歐拉迴路。
解題方法
圖中頂點為 ;有向邊依序為
、、、、、、、、。特別注意, 之間及 之間各有兩條方向相反的邊。
逐點計算入度與出度:
第 3-(b) 題4 分
Determine whether the directed graph shown has an Euler circuit starting from vertex . Construct an Euler circuit if one exists. If no Euler circuit exists, determine whether the directed graph has an Euler path also starting from vertex . Construct an Euler path if one exists.
🖼️【此處有附圖,見下方】
登入後即可作答並保存紀錄。
核心觀念
有向圖的歐拉迴路會從指定頂點出發,恰好走過每一條有向邊一次,並回到起點。若圖中所有頂點都滿足入度等於出度,且邊所在部分連通,便存在歐拉迴路。
解題方法
圖中頂點為 ;有向邊依序為
、、、、、、、、。特別注意, 之間及 之間各有兩條方向相反的邊。
逐點計算入度與出度:
Consider a finite set . Let be a function from to , where is the power set of and is the set of all real numbers.
第 4-(a) 題4 分
What is the maximum cardinality of the range of ?
登入後即可作答並保存紀錄。
核心觀念
函數值域是所有輸出值所成的集合。若定義域是有限集合,值域中的元素數量不會超過定義域中的元素數量;當函數為單射時,每個定義域元素都對應到不同的輸出,值域基數便能達到上限。
解題方法
設 。有限集合 的冪集合 包含 的所有子集合,因此
第 4-(b) 題4 分
Suppose that for all , we have
Prove that for all finite sets and such that and , we have
登入後即可作答並保存紀錄。
核心觀念
題目給定的條件表示:對任意集合 ,
這是超模性(supermodularity)的定義。它也蘊含「邊際增加量遞增」:加入同一元素時,原本的集合越大,函數值增加量越大。
解題方法
利用 且 ,選取
因為 且 ,所以
將這兩個集合代入超模性條件,得到
第 5-(a) 題5 分
It is known that there are infinitely many prime numbers. We can prove this by contradiction as outlined below. Assume that is the set of all prime numbers, where and is a finite number. Consider a number . If is a prime number, then we have a prime number not in , a contradiction. If is not a prime number, then none of divides , which is another contradiction. We thus have the proof. What is the value of to make the proof valid?
登入後即可作答並保存紀錄。
核心觀念
本題考「反證法」與「質數的基本性質」:每個大於 的整數都有質因數。先假設質數只有有限多個,再構造一個整數,使它除以清單中的任一質數都餘 ,從而導出矛盾。
解題方法
令假設中的所有質數為 ,取
對每個 ,都有
所以清單中的任何質數 都不整除 。
第 5-(b) 題5 分
Let the domain be all positive integers in the range . Let the propositional function denote “ is a prime number,” and denote “.” Find a set with the maximum cardinality that makes “” true and “” false at the same time.
登入後即可作答並保存紀錄。
核心觀念
命題 只有在 為真、 為假時才為假。因此,全稱命題 成立,表示 不能包含任何使前件為真、後件為假的元素。
存在命題 不成立,表示 不能包含同時滿足 與 的元素。
解題方法
先在定義域 中找出質數與符合同餘條件的數:
使 為假的元素,是 :
第 6 題7 分
If and are positive integers, then there exist integers and such that . Let and , and find the values of and such that .
登入後即可作答並保存紀錄。
核心觀念
這題考的是歐幾里得算法與貝祖等式。貝祖等式指出,對正整數 ,存在整數 使得
先用歐幾里得算法求最大公因數,再將最後的餘數逐步回代,就能得到 。
解題方法
對 、 連續做帶餘除法:
最後一個非零餘數是 ,所以 。由最後一式開始回代:
由 得 ,代入:
Let , , and be elementary matrices of type I (interchanging two rows of ), II (multiplying a row of by a nonzero constant), and III (adding a multiple of one row to another row), respectively. Also let be a matrix with . Additionally, was formed from the identity matrix by multiplying its second row by .
第 7-(a) 題1 分
Find the value of .
登入後即可作答並保存紀錄。
核心觀念
行列式具有乘法性:對同階方陣 ,
第一類初等矩陣 是由單位矩陣交換兩列而成,因此
解題方法
將乘積矩陣 的行列式拆開:
第 7-(b) 題1 分
Find the value of .
登入後即可作答並保存紀錄。
核心觀念
矩陣乘積的行列式滿足
第二類初等矩陣是將單位矩陣的一列乘上非零常數;其行列式等於該常數。本題的 將第二列乘以 ,因此 。
解題方法
第 7-(c) 題1 分
Find the value of .
登入後即可作答並保存紀錄。
核心觀念
行列式具有乘法性質:對同階方陣 與 ,
第三型初等矩陣 表示將某一列加上另一列的倍數。這種列運算不改變行列式,因此 。
解題方法
第 7-(d) 題1 分
Find the value of .
登入後即可作答並保存紀錄。
核心觀念
是第一類初等矩陣,代表交換單位矩陣的兩列。交換兩列會使行列式變號,因此 。同一個列交換連續做兩次,會回復原狀。
解題方法
利用行列式的乘法性:
第 7-(e) 題1 分
Find the value of .
登入後即可作答並保存紀錄。
核心觀念
行列式具有乘法性質:
三種初等矩陣的行列式分別為:
- 第一型:交換兩列,行列式乘上 。
- 第二型:將一列乘以非零常數 ,行列式乘上 。
- 第三型:將一列加上另一列的倍數,行列式不變。
解題方法
對乘積 使用行列式的乘法性質:
第 8 題10 分
Let
(a) Find elementary matrices , , and such that , where is an upper triangular matrix. [5 points]
(b) Determine the inverses of , , and , and set . What type of matrix is ? Verify that . [5 points]
登入後即可作答並保存紀錄。
核心觀念
初等矩陣左乘矩陣,等同對矩陣執行一項列運算。以高斯消去法將 化為上三角矩陣時,每一步列運算都可用初等矩陣表示。
若
則
其中 為下三角矩陣;若對角線元素全為 ,則稱為單位下三角矩陣。
解題方法
依序消去第一欄的第 、 列元素,再消去第二欄的第 列元素。
(a) 求 與
第一步執行 ,其初等矩陣為
第二步執行 ,其初等矩陣為
前兩步後,
第三步執行 ,其初等矩陣為
因此
(b) 求逆矩陣、 並驗證
初等列運算的逆運算是將列運算反向執行,故
Let be a matrix with reduced row echelon form given by
If
第 9-(a) 題2 分
Find the rank of .
登入後即可作答並保存紀錄。
核心觀念
矩陣的秩是其欄空間或列空間的維度。矩陣經過初等列運算化為列簡化階梯形(RREF)後,秩不變;在 RREF 中,秩等於主元個數,也等於非零列數。
解題方法
題目已給出 的 RREF:
第 9-(b) 題4 分
Find a basis of the null space of .
登入後即可作答並保存紀錄。
核心觀念
矩陣的列簡化階梯形與原矩陣列等價,因此兩者具有相同的零空間。已知 的簡化列階梯形為 ,可直接求解齊次方程組 。
解題方法
令 ,由 得
主變數為 ,自由變數為 。令 、,則
因此
第 9-(c) 題4 分
Find and .
登入後即可作答並保存紀錄。
核心觀念
列運算相當於在矩陣左側乘上一個可逆矩陣,因此不會改變各欄向量之間的線性關係。若 是 的簡化列梯形矩陣,且 ,其中 可逆,則 的欄向量關係會與 的欄向量關係相同。
解題方法
由題目給出的 ,比較第 3 欄與前兩欄:
因此 。代入已知向量:
同理,第 4 欄滿足
第 10 題15 分
The homogeneous coordinates map to , which can help us formulate translation in the form of linear transformations. Consider the figure below.
🖼️【此處有附圖,見下方】
There are two coordinate systems. One is with basis and origin , and the other is with basis and origin . Both and are orthonormal bases and obey the right-handed convention.
(a) If and , please find . [3 points]
(b) Without considering translation, i.e., , please find a rotation matrix that can transform coordinates into coordinates based on (a). [4 points]
(c) If , please find based on (a). [3 points]
(d) Find the linear transformation in the homogeneous coordinate system to transform to based on (a) and (c). In detail, please find the matrix in the following equation. [5 points]
登入後即可作答並保存紀錄。
核心觀念
兩組座標基底都是右手正交基底,因此可用叉積求出第三個基底向量。由一組座標轉換到另一組座標時,旋轉矩陣的欄向量是新基底向量在目標基底下的座標;齊次座標則把旋轉與平移合併成一個 矩陣。
解題方法
圖中有兩組右手正交座標系:、原點為 ;、原點為 。題目給出 與 在 下的座標,以及 在 下的座標。
(a) 求
因為 是右手基底,。在 座標下計算:
(b) 求由 座標轉成 座標的旋轉矩陣
先將 的基底向量依序排列為欄,組成它們在 下的座標矩陣:
所以 。兩組基底正交,故 ,由 轉成 的矩陣為
(c) 求
將題目給的 座標乘上 :
(d) 求齊次座標轉換矩陣
Let
第 11-(a) 題2 分
A matrix is symmetric if . List the matrices that are symmetric.
登入後即可作答並保存紀錄。
核心觀念
矩陣 為對稱矩陣的定義是 ,其中轉置只交換列與行的位置,不取複數共軛。因此,矩陣對角線上的元素不受限制;對角線兩側對應位置的元素則必須相等。
解題方法
逐一比較每個矩陣的 與 元素。對角矩陣的非對角元素皆為 ,因此一定對稱。
- 的兩個非對角元素都是 ,所以 。
- 的非對角元素分別為 與 ,所以 。
- 的非對角元素分別為 與 ,兩者不相等,所以 。
- 的兩個非對角元素都是 ,所以 。
- 是對角矩陣,所以 。
矩陣逐一判斷
第 11-(b) 題2 分
A matrix is Hermitian if . List the matrices that are Hermitian.
登入後即可作答並保存紀錄。
核心觀念
矩陣 為 Hermitian 矩陣,定義是
其中 表示先取複共軛,再轉置。對元素 而言,Hermitian 條件等價於
因此,對角線元素必須是實數;非對角線的元素則須互為複共軛。
解題方法與逐一判斷
逐一計算各矩陣的共軛轉置,並檢查是否等於原矩陣。
-
矩陣 :
的元素皆為實數,因此共軛轉置就是轉置。由於故 是 Hermitian 矩陣。
-
矩陣 :
的元素皆為實數,因此故 不是 Hermitian 矩陣。
-
矩陣 :
對角線元素 、 都是實數,且兩個非對角線元素互為複共軛,因為 。直接計算:
第 12 題6 分
Let
Find a unitary matrix to diagonalize , i.e., . Please arrange the eigenvalues in descending order in the matrix .
登入後即可作答並保存紀錄。
核心觀念
矩陣 是 Hermitian 矩陣,因為 。由 Hermitian 矩陣的譜定理, 可由酉矩陣對角化;酉矩陣的各欄須為 的兩個正交規一特徵向量。題目要求特徵值依遞減排列,因此 的欄依序放入對應於較大、較小特徵值的特徵向量。
解題方法
先求特徵值。矩陣的特徵多項式為
因此特徵值依遞減順序為 、。
對 ,由 得
取 ,得到特徵向量 。其長度為 ,所以規一化後為
對 ,由 得