You are on page 1of 2

Lab Assignment

Algorithm
Maximizing Determinant

Step 1: Define Determinant

Step 2: Permutation the Numbers

Step 3: Matrix 3x3

Step 4: Set MaxValue = 0

Step 5: Last Permutation? Yes go to Step 8

Step 6: D(i) = det(A x B)

Step 7: D(i) > MaxValue, then Maxvalue = D(i) go to step 5

Step 8: Display MaxValue

Flowchart
Maximizing Determinant

The maximum value = 980560.00


For det(A*B) D maximum
A=
6

B=
10

3 13

14

4 15

Algorithm
Minimizing Determinant

Step 1: Define Determinant

Step 2: Permutation the Numbers

Step 3: Matrix 3x3

Step 4: Set MinValue = 0

Step 5: Last Permutation? Yes go to Step 8

Step 6: D(i) = det(A / B)

Step 7: D(i) < MinValue, then Minvalue = D(i) go to step 5

Step 8: Display MinValue

Flowchart
Maximizing Determinant
The minimum value = -880249018076958.75
For det(A/B) D minimum

A=
9

B=
15 10

14 13

You might also like