Permutatiematrix

In de lineaire algebra, een onderdeel van de wiskunde, is een permutatiematrix een vierkante matrix, die in iedere rij en in iedere kolom één waarde 1 heeft en waar alle andere waarden in diezelfde rijen en kolommen gelijk zijn aan 0. Een permutatiematrix is dus behalve een vierkante ook een binaire matrix. Een permutatiematrix ontstaat door de rijen of door de kolommen van een eenheidsmatrix te permuteren.

Iedere m × m {\displaystyle m\times m} -permutatiematrix P {\displaystyle \mathbf {P} } vermenigvuldigd met een m-vector x {\displaystyle \mathbf {x} } stelt een specifieke permutatie van de m {\displaystyle m} elementen van x {\displaystyle \mathbf {x} } voor. Indien P {\displaystyle \mathbf {P} } met een andere matrix wordt vermenigvuldigd permuteert P {\displaystyle \mathbf {P} } de rijen of de kolommen van de andere matrix produceren. De eenheidsmatrix is ook een permutatiematrix, maar dat is evident. Het product van twee willekeurige permutatiematrices is opnieuw een permutatiematrix. Iedere permutatiematrix is een orthogonale matrix, dus is de inverse matrix van een permutatiematrix P {\displaystyle \mathbf {P} } de getransponeerde matrix P T {\displaystyle \mathbf {P} ^{T}} van P {\displaystyle \mathbf {P} } .

Twee matrices A {\displaystyle \mathbf {A} } en B {\displaystyle \mathbf {B} } worden gelijksoortige matrices genoemd, wanneer er een permutatiematrix P {\displaystyle \mathbf {P} } is, zodat B = P 1 A P {\displaystyle \mathbf {B} =\mathbf {P} ^{-1}\mathbf {AP} } .

Definitie

Gegeven een permutatie π {\displaystyle \pi } van m {\displaystyle m} elementen,

π : { 1 , , m } { 1 , , m } {\displaystyle \pi :\lbrace 1,\ldots ,m\rbrace \to \lbrace 1,\ldots ,m\rbrace }

De bijbehorende permutatiematrix P π {\displaystyle \mathbf {P} _{\pi }} is

P π = [ e π ( 1 ) e π ( 2 ) e π ( m ) ] = ( 0 0 1 0 0 1 0 0 0 0 0 1 ) {\displaystyle \mathbf {P} _{\pi }={\begin{bmatrix}\mathbf {e} _{\pi (1)}\\\mathbf {e} _{\pi (2)}\\\vdots \\\mathbf {e} _{\pi (m)}\end{bmatrix}}={\begin{pmatrix}0&0&\cdots &1&0\\0&1&\cdots &0&0\\\vdots &\vdots &&&\vdots \\0&0&\cdots &0&1\end{pmatrix}}}

De invoerwaarden van P π {\displaystyle \mathbf {P} _{\pi }} zijn allemaal gelijk zijn 0, behalve dat in rij i {\displaystyle i} de waarde π ( i ) {\displaystyle \pi (i)} gelijk is aan 1.

e i {\displaystyle \mathbf {e} _{i}} is dus voor iedere i {\displaystyle i} een rijvector van lengte m {\displaystyle m} met een 1 op de i {\displaystyle i} -de plaats en een 0 op alle andere plaatsen.

De gegeven permutatie π {\displaystyle \pi } wordt ook geschreven als

( 1 2 m π ( 1 ) π ( 2 ) π ( m ) ) {\displaystyle {\begin{pmatrix}1&2&\cdots &m\\\pi (1)&\pi (2)&\cdots &\pi (m)\end{pmatrix}}}

Eigenschappen

Gegeven twee permutaties π {\displaystyle \pi } en σ {\displaystyle \sigma } van m {\displaystyle m} elementen en de corresponderende permutatiematrices P π {\displaystyle \mathbf {P} _{\pi }} en P σ {\displaystyle \mathbf {P} _{\sigma }} . Dan geldt voor de functiecompositie van de twee permutaties dat

P π P σ = P π σ {\displaystyle \mathbf {P} _{\pi }\mathbf {P} _{\sigma }=\mathbf {P} _{\pi \circ \sigma }}

Aangezien permutatiematrices orthogonale matrices zijn, bestaat de inverse matrix ervan en kan deze worden geschreven als

P π 1 = P π 1 = P π T {\displaystyle \mathbf {P} _{\pi }^{-1}=\mathbf {P} _{\pi ^{-1}}=\mathbf {P} _{\pi }^{T}}

P π {\displaystyle \mathbf {P} _{\pi }} vermenigvuldigen met de kolomvector g {\displaystyle \mathbf {g} } permuteert de rijen van g {\displaystyle \mathbf {g} } :

P π g = [ e π ( 1 ) e π ( 2 ) e π ( n ) ] [ g 1 g 2 g n ] = [ g π ( 1 ) g π ( 2 ) g π ( n ) ] . {\displaystyle \mathbf {P} _{\pi }\mathbf {g} ={\begin{bmatrix}\mathbf {e} _{\pi (1)}\\\mathbf {e} _{\pi (2)}\\\vdots \\\mathbf {e} _{\pi (n)}\end{bmatrix}}{\begin{bmatrix}g_{1}\\g_{2}\\\vdots \\g_{n}\end{bmatrix}}={\begin{bmatrix}g_{\pi (1)}\\g_{\pi (2)}\\\vdots \\g_{\pi (n)}\end{bmatrix}}.}

P π {\displaystyle \mathbf {P} _{\pi }} vermenigvuldigen van een rijvector h {\displaystyle \mathbf {h} } permuteert de kolommen van h {\displaystyle \mathbf {h} } :

h P π = [ h 1 h 2 h n ] [ e π ( 1 ) e π ( 2 ) e π ( n ) ] = [ h π ( 1 ) h π ( 2 ) h π ( n ) ] {\displaystyle \mathbf {h} P_{\pi }={\begin{bmatrix}h_{1}\;h_{2}\;\dots \;h_{n}\end{bmatrix}}{\begin{bmatrix}\mathbf {e} _{\pi (1)}\\\mathbf {e} _{\pi (2)}\\\vdots \\\mathbf {e} _{\pi (n)}\end{bmatrix}}={\begin{bmatrix}h_{\pi (1)}\;h_{\pi (2)}\;\dots \;h_{\pi (n)}\end{bmatrix}}}

Voorbeelden

Definieer de permutatiematrix P π {\displaystyle \mathbf {P} _{\pi }}

P π = [ e π ( 1 ) e π ( 2 ) e π ( 3 ) e π ( 4 ) e π ( 5 ) ] = [ e 1 e 4 e 2 e 5 e 3 ] = [ 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 ] . {\displaystyle \mathbf {P} _{\pi }={\begin{bmatrix}\mathbf {e} _{\pi (1)}\\\mathbf {e} _{\pi (2)}\\\mathbf {e} _{\pi (3)}\\\mathbf {e} _{\pi (4)}\\\mathbf {e} _{\pi (5)}\end{bmatrix}}={\begin{bmatrix}\mathbf {e} _{1}\\\mathbf {e} _{4}\\\mathbf {e} _{2}\\\mathbf {e} _{5}\\\mathbf {e} _{3}\end{bmatrix}}={\begin{bmatrix}1&0&0&0&0\\0&0&0&1&0\\0&1&0&0&0\\0&0&0&0&1\\0&0&1&0&0\end{bmatrix}}.}

Gegeven een vector g {\displaystyle \mathbf {g} } , dan is

P π g = [ e π ( 1 ) e π ( 2 ) e π ( 3 ) e π ( 4 ) e π ( 5 ) ] [ g 1 g 2 g 3 g 4 g 5 ] = [ g 1 g 4 g 2 g 5 g 3 ] {\displaystyle \mathbf {P} _{\pi }\mathbf {g} ={\begin{bmatrix}\mathbf {e} _{\pi (1)}\\\mathbf {e} _{\pi (2)}\\\mathbf {e} _{\pi (3)}\\\mathbf {e} _{\pi (4)}\\\mathbf {e} _{\pi (5)}\end{bmatrix}}{\begin{bmatrix}g_{1}\\g_{2}\\g_{3}\\g_{4}\\g_{5}\end{bmatrix}}={\begin{bmatrix}g_{1}\\g_{4}\\g_{2}\\g_{5}\\g_{3}\end{bmatrix}}}

waarin de elementen van g {\displaystyle \mathbf {g} } zijn gepermuteerd.

P π {\displaystyle \mathbf {P} _{\pi }} wordt in dit geval ook geschreven als

π = ( 1 2 3 4 5 1 4 2 5 3 ) {\displaystyle \pi ={\begin{pmatrix}1&2&3&4&5\\1&4&2&5&3\end{pmatrix}}}