procedure PerkalianMatriks(input A, B :
Matriks, input n: integer, output C : Matriks)
Deklarasi
i, j, k : integer
Algoritma
for i¬1 to n do
for j¬1 to n do
C[i,j]¬0 { inisialisasi penjumlah }
for k ¬ 1 to n do
C[i,j]¬C[i,j] + A[i,k]*B[k,j]
endfor
endfor
endfor
Tidak ada komentar:
Posting Komentar