Programming ASsignment: Abstract Data Type – Matrix The purpose of this course is to provide you with experience in: 1. Identification of the appropriate ABSTRACT DATA TYPE (model and operations) to use for a given application. 2. Select of the best DATA STRUCTURE and corresponding ALGORITHMS to implement the ADT in a programming language. There are many applications in mathematics, economics, engineering, etc. in which the underlying model is a matrix. Consequently, it would be useful to implement this ADT. The special case of a 2x2 matrix will be considered. MODEL: the general form of a 2x2 matrix is: all a12 | 2.5 -3.7 example: a21 a22 4 Where: al1, al2, a21, and a22 are real numbers (scalars) that are the COMPONENTS (or ELEMENTS) of the matrix. OPERATIONS: the following are some of the common operations that are performed on such matrices: Matrix addition: b12 | al2 | | + al1 b11 all +b12 a12 + b12 L a21 а22 b21 b22 a21 + b21 a22 + b22 Matrix subtraction: all a12 b11 b12 all - b12 al2 - b12 а21 a22 b21 b22 I a21 - b21 a22 - b22 Scalar multiplication: all a12 | k x a12 k x al2 k X a21 a22 kx a21 kx a22
Programming ASsignment: Abstract Data Type – Matrix The purpose of this course is to provide you with experience in: 1. Identification of the appropriate ABSTRACT DATA TYPE (model and operations) to use for a given application. 2. Select of the best DATA STRUCTURE and corresponding ALGORITHMS to implement the ADT in a programming language. There are many applications in mathematics, economics, engineering, etc. in which the underlying model is a matrix. Consequently, it would be useful to implement this ADT. The special case of a 2x2 matrix will be considered. MODEL: the general form of a 2x2 matrix is: all a12 | 2.5 -3.7 example: a21 a22 4 Where: al1, al2, a21, and a22 are real numbers (scalars) that are the COMPONENTS (or ELEMENTS) of the matrix. OPERATIONS: the following are some of the common operations that are performed on such matrices: Matrix addition: b12 | al2 | | + al1 b11 all +b12 a12 + b12 L a21 а22 b21 b22 a21 + b21 a22 + b22 Matrix subtraction: all a12 b11 b12 all - b12 al2 - b12 а21 a22 b21 b22 I a21 - b21 a22 - b22 Scalar multiplication: all a12 | k x a12 k x al2 k X a21 a22 kx a21 kx a22
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
100%
Hey Guys!
I just want to know how to write this program in c++?
How to add menu where the user can choose what type of operations he/she want to calculate?
and outpur everything in an output text file.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY