(排列)将一个整数集合.docVIP

  • 6
  • 0
  • 约5.96千字
  • 约 10页
  • 2020-06-30 发布于湖北
  • 举报
2.4 1. Permutation (排列):將一個整數集合 {1,2,…,n} 做順序的重新安排,且不允許重複。例如: (1). {1,2,3} 有下列六種不同的排列方式:(1,2,3), (2,1,3), (3,1,2), (1,3,2), (2,3,1), (3,2,1)。 (2). {1,2,3} 有下列24種不同的排列方式: 1.1 Inversion (逆序,相反的順序):對一個排列 (j1, j2, …, jn) 而言,有一個大的數發生在一個小的數之前,稱為逆序。其找尋的方法,即記錄下ji (1≦i≦n-1) 後面比它小的數字的個數,最後將j 1, j 2, …, j n-1逆序個數加總即可。例如: (a). (6,1,3,4,5,2) (b). (2,4,1,3) (c). (1,2,3,4) □ Solution: (a). The number of inversions is 5 + 0 + 1 + 1 + 1 = 8 (b). The number of inversions is 1 + 2 + 0 = 3 (c). There no inversions in this permutation 1.2 Odd or Even Permutation (奇偶排列):奇排列的Inversion個數為奇數 (odd);偶排列的Inversion個數為偶數 (even)。下表為 {1,2,3} 的奇偶排列的情形。 Permutation Number of Inversions classification (1,2,3) (1,3,2) (2,1,3) (2,3,1) (3,1,2) (3,2,1) 0 1 1 2 2 3 even odd odd even even odd 2. Elementary Product: 由一個 n′n 的矩陣取出n個元素(n entries)相乘,但這n個元素中任兩個元素不會發生在同一列或同一行,稱為基本乘積(elementary product)。就像是在一個 n′n 的棋盤中,每一列與每一行中都只有一個棋子(entry)。 【範例】請列舉下列 3′3的矩陣中所有的基本乘積。 □ Solution: 每個基本乘積都可以寫成a1_a2_a3_的形式。因為沒有任兩個元素來自於同一列或同一行,因此上述形式的三個空格必為集合 {1, 2, 3} 的排列。因此總共有3!=6 種排列造成基本乘積為a11a22a33、a11a23a32、a12a21a33、a12a 3. Signed Elementary Products (帶正負號的基本乘積): 一個 n′n 的矩陣 A 總共有n! 個基本乘積。其中每個基本乘積的形式為a1j1a2j2 ··· anjn,其中(j1, j2, …, jn) 為集合{1, 2, …, n} 帶正負號的基本乘積:若上述(j1, j2, …, jn) 的排列為偶排列,則此基本乘積為正;若 (j1, j2, …, jn) 為奇排列,則此基本乘積為負。 【範例】下表為2′2與3′3矩陣的Signed Elementary Products。 4. Determinant (行列式):行列式的基本定義為:將所有「帶正負號的基本乘積」加總即得。假設A是一個n×n的方陣,則行列式可表示成 . 【範例】下表為2′2與3′3矩陣的行列式值。 同時下列為2×2與3×3的行列式值計算方式的輔助記憶方法。請注意此法在4×4 或更高階的行列式都不適用。同時在3×3的行列式值計算過程容易出錯,請特別小心。 【範例】Evaluating the determinants of A and B. □ Solution: Do it by yourself. The answer is det(A) = –10 and det(B) = 240. 2.1 Determinants by Cofactor Expansion 1. Minor(子矩陣行列式值) and Cofactor (餘因子) 假設A 為n ′n的矩陣。 Minor: Mij 為 A 矩陣去掉第i列與第j行之後的行列式值。 Cofactor: Cij = (-1)i+j.Mij [Cij為Mij棋盤狀加正負號]。 定理2.1.1 (Expansions by Cofactors (餘因子展開式)) 假設A 為n ′n的矩陣。 矩陣A的行列式值可表示成:某一列(或某一行)上的每一個元素乘上它的餘因子後加總(sum of product),如下表示: 1. Cofactor expansion along the jth column:det(A) = a1jC1j + a2j

文档评论(0)

1亿VIP精品文档

相关文档