Enter The Matrix

Find the number of simple arithmetic operations one would need to perform to calculate the determinant of a general 10 × 10 10\times 10 numerical matrix by the method of Cofactor or Laplace expansion along a particular row/column.

Details and Assumptions:

  • A simple arithmetic operation is one of Addition, Subtraction, Multiplication, Division.

  • As a few explicit examples, we need to perform 0 0 operations to calculate determinant of a 1 × 1 1\times 1 matrix, 3 3 operations for a 2 × 2 2\times 2 matrix, and 14 14 operations for a 3 × 3 3\times 3 matrix.


The answer is 9864099.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Rushikesh Jogdand
Mar 26, 2016

Generalization

We have to calculate- Δ n × n = [ a 11 a 12 a 1 n a 21 a n 1 a n n ] n × n \Delta_{n\times n}=\begin{bmatrix} a_{ 11 } & a_{ 12 } & \dots & a_{ 1n } \\ { a }_{ 21 } & \ddots & & \\ \vdots & & \ddots & \\ { a }_{ n1 } & & & a_{ nn } \end{bmatrix}_{ n\times n } Which is equal to- Δ n × n = ( a 11 × M 11 ) + ( a 12 × M 12 + + ( a 1 n × M 1 n ) ) \Delta_{n\times n}=(a_{11}\times M_{11})+(a_{12}\times M_{12}+\cdots+(a_{1n}\times M_{1n})) M 1 k M_{1k} is the determinent of cofactor matrix of a 1 k a_{1k} which is a ( n 1 ) × ( n 1 ) (n-1)\times (n-1) matrix.
Hence if we name our calculating function as CalDet(n) ,
We would get,
CalDet(n)= n*(CalDet(n-1)+1)+(n-1)=n*(CalDet(n-1)+2)-1
This is a recursive function with 'CalDet(1)=0` (we don't need to perform any arithmetic operation to calculate determinant of a 1 × 1 1\times1 matrix!)
Which in python gives -


1
2
3
4
5
6
7
8
9
>>> def CalDet(n):
    if (n==1):
        return 0
    else:
        return n*(CalDet(n-1)+2)-1


>>> CalDet(10)
9864099


Explaination of CalDet(n)= n*(CalDet(n-1)+1)+(n-1)
n (...there are n a 1 k s) × n \text{ (...there are } n \text{ } a_{1k}\text{ s)}\times ( \color{#D61F06}{(} CalDet(n-1) ( ...number of operations needed to calculate determinant of [ M 1 k ] ( n 1 ) × ( n 1 ) ) + \color{grey}{\left(\text{...number of operations needed to calculate determinant of }\left[M_{1k}\right]_{(n-1)\times(n-1)}\right)} +

1 ( ...multiplication of a 1 k × M 1 k ) 1\quad\color{grey}{\left(\text{...multiplication of }a_{1k}\times M_{1k} \right)} ) \color{#D61F06}{)} this first term is for calculation of A 1 k \color{grey}{\quad\quad\dots\text{this first term is for calculation of }A_{1k}} + ( n 1 ) ( . . . for A 1 k ) +(n-1) \color{grey}{\left(...\text{ for } \sum{}A_{1k}\right)}

J Joseph
Mar 27, 2016

O ( d e t ( A n × n ) ) = O ( d e t ( A ( n 1 ) × ( n 1 ) ) ) + 2 n 1 O(det(A_{n \times n} )) = O(det(A_{(n-1) \times (n-1)})) + 2n - 1

O ( d e t ( A 10 × 10 ) ) = 9864099 O(det(A_{10 \times 10} )) = 9864099

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...