applications of linear algebra in computer sciences

13
APPLICATIONS OF LINEAR ALGEBRA IN COMPUTER SCIENCES Hafiz Muhammad Amir Sharif SP12-BSCS-B7(B)-110

Upload: amir-chishti

Post on 15-Nov-2014

2.145 views

Category:

Education


1 download

DESCRIPTION

I introduces some of the applications of linear algebra in Computer Sciences ie: Cryptography, Graph Theory, Networks and Computer Graphics.

TRANSCRIPT

Page 1: Applications of Linear Algebra in Computer Sciences

APPLICATIONS OF LINEAR ALGEBRA IN COMPUTER SCIENCES

Hafiz Muhammad Amir Sharif

SP12-BSCS-B7(B)-110

Page 2: Applications of Linear Algebra in Computer Sciences

ObjectivesImportance of Linear Algebra

Graph Theory

Network Models

Cryptography

Computer Graphics

Page 3: Applications of Linear Algebra in Computer Sciences

Why Linear Algebra is important ?• Linear algebra is vital in multiple areas of science in

general. Because linear equations are so easy to solve, practically every area of modern science.

• It converts large number of problems to matrix and thus we solve the matrix.

Page 4: Applications of Linear Algebra in Computer Sciences

Graph Theory

Page 5: Applications of Linear Algebra in Computer Sciences

Network Models

• Determine the currents I1, I2, and I3 for the following electrical network:

Page 6: Applications of Linear Algebra in Computer Sciences

By Kirchhoff’s Law 

Page 7: Applications of Linear Algebra in Computer Sciences

Cryptography• Encryption and decryption require the use of some secret

information, usually referred to as a key.• Example Let the message be

“PREPARE TO NEGOTIATE”• We assign a number for each letter of the alphabet.

Page 8: Applications of Linear Algebra in Computer Sciences

Thus the message becomes:

• Since we are using a 3 by 3 matrix, we break the enumerated message above into a sequence of 3 by 1 vectors:

Page 9: Applications of Linear Algebra in Computer Sciences

By multiplying encoding matrix to this matrix we will encrypt the msg

Page 10: Applications of Linear Algebra in Computer Sciences

Now to decrypt the msg we have to multiply this matrix to Inverse of encoding matrix• The inverse of this encoding matrix, the decoding matrix,

is:

• Multiplying again by this matrix we will get our Msg.

Page 11: Applications of Linear Algebra in Computer Sciences

Computer Graphics• In computer graphics every element is represented by a

MATRIX.

Page 12: Applications of Linear Algebra in Computer Sciences

Conclusion:• There are so many application of Linear Algebra in

Computer Science.

• From simple circuit solving to large web engine algorithms.

Page 13: Applications of Linear Algebra in Computer Sciences

Thank you