0% found this document useful (0 votes)
75 views2 pages

Flowchart

The document contains a flowchart that outlines the procedure for multiplying two matrices. The flowchart shows that the procedure involves: (1) initializing the matrices a, b, and c; (2) setting the initial value of c to 0; and (3) calculating the product of the matrices by iterating through the rows and columns and adding the multiplication of the corresponding elements of a and b to c.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views2 pages

Flowchart

The document contains a flowchart that outlines the procedure for multiplying two matrices. The flowchart shows that the procedure involves: (1) initializing the matrices a, b, and c; (2) setting the initial value of c to 0; and (3) calculating the product of the matrices by iterating through the rows and columns and adding the multiplication of the corresponding elements of a and b to c.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Nama : 1.

Agung Tri Pamungkas (10612008)

2. Riyandy Arief (10612021)

Kelas : II A

Flowchart Prosedur Perkalian dua Matriks

Start

Int a[1…n], b[1…n], c[1…n]


Int n,n, I, J, K

c[I,J] = c[I,J] + a[I,J] x b[K,J]

Dimana,
n,
c[I,J] : entri matrik hasil perkalian pada posisi [I,J]
m
? a[I,J] : entri matrik a pada posisi [I,J]
T b[K,J] : entri matrik B paa posisi [K,J]
n=m
I,K : Indeks Baris
Y
J : Indeks kolom
For I = 1 to n

Bentuk Algoritma prosedur Perkalian dua


For J matrik :
= 1 to
n 1. Mulai
2. Proses berulang langkah 3 s/d langkah 4
c[I,J] = 0,0 For I = 1 to n
For J = 1 to n
3. Tentukan Harga Awal
C[I,J]= 0,0
For k 4. Hitung Perkalian Matrik
= 1 to For K = 1 to n
n
c[I,J] = c[I,J] + a[I,K] * b[K,J]
c[I,J] = c[I,J] + a[I,K] * b[K,J]
5. Cetak Hasil
6. Selesai

Next K

N
ex
tJ

N
ex
tI

Cetak Hasil

End

You might also like