StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Matrix Project - Report Example

Cite this document
Summary
This report "Matrix Project" focuses on a program that enables basic matrix arithmetic operations. The application developed in this case is able to generate two random matrices X (A, B) and Y (B, C), and allow basic matric operations the Strassen’s algorithm and a sequential method…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER98.7% of users find it useful
Matrix Project
Read Text Preview

Extract of sample "Matrix Project"

Matrix Project By Matrix Project Introduction The problem is to write a program that enables basic matrix arithmetic operations. The application developed in this case is able to generate two random matrices X (A, B) and Y (B, C), and allow basic matric operations such as multiplication using, first, the Strassen’s algorithm, and a sequential method, resulting in matrix Z (A, C). Then, the application is able to parallelize the two matrices and compare the results of the two different multiplications in order to ensure that they match. In general, algorithms that are run in, while Strassen’s Algorithm run in time, often takes the flowing 7th recursive divide and conquer technique (Storer 2001: 169-170), in which the matrices X and Y are divided into four different quarters and their seven factors computed; then, they are combined in four parts to result in matrix Z. In this application, the algorithms are described as below: Let X, Y be two square matrices inside a ring W. The goal in this case is to compute the matrix product Z as Thus, in case the matrices X and Y are not square matrices, there will be a need to fill the missing columns and rows with zeros. Matrices X, Y, and Z, are thus partitioned into equally sized block matrices ], , ] Having Then, Even with this design, the number of multiplications have not reduced, 8 multiplications are still required to calculate the matrices; this is just the same as the number of multiplications required when the standard matrix multiplication method is used (Scheinerman 2006: 278). An important part, thus, is to define new matrices as below. These are then used to express the product matrix in terms of. Due to how the product matrix has been defined, it is easy to eliminate one matrix multiplication and thus decrease the number of multiplications required to just 7, one for every, and express as Then, the process of division is then iterated n times until the sub-matrices result into elements of the ring W. It is important to note that the Strassen’s algorithm can be efficiently implemented when carrying out multiplication of small sub-matrices using standard matric multiplication techniques. Numerical Analysis Standard matrix multiplication often takes roughly (in which ) additions and multiplications. The number of multiplications and additions that are needed in the Stressen Algorithm can be calculated by considering the function (n) to be the number of required operations for any random matrix (Stoller & Bennett 2014: 77). Then, by applying the Strassen Algorithm recursively, it can be seen that f(n) = 7f(n− d) + l4n for a given constant d which depends on the number of additions carried out at every point of application of the algorithm. However, reducing the number of multiplications and additions required comes at the expense of a reduced numerical stability. The code for performing random matrix multiplication using the Strassen’s algorithm //seven factors to be added or subtracted are recorded double **M1, **M2, **M3, **M4, **M5, **M6, **M7; //division of the two matrices X and Y double **X11, **X12, **X21, **X22; double **Y11, **Y12, **Y21, **Y22; //storing the middle variables double **kXM1, **kYM1,**kXM2,**kYM2,**kXM3, **kYM3,**kXM4, **kYM4,**kXM5, **kYM5,**kXM6, **kYM6,**kXM7,**kYM7 //main code StrassenMMult(): if ((ad-aw)*(bd-bw)*(cd-cw) < GRAIN) matmultleaf(ad,aw,bd,bw,cd,cw,X,Y,Z); else { //M1=(X11 + X22)*(Y11 + Y22) AddMatBlocks(kXM1,a2,b2, X11,X22); AddMatBlocks(kYM1,b2,c2,Y11,Y22); strassenMMult(0,a2,0,c2,0,b2,kXM2,Y11,M2); //M2=(X21 + X22)*Y11 AddMatBlocks(kXM2,a2,b2,X21,X22); strassenMMult(0,a2,0,c2,0,b2,kXM2,X11,M2); //M3=X11*(Y12-Y22) SubMatBlocks(kYM3,b2,c2,Y12,Y22); strassenMMult(0,a2,0,c2,0,b2,X11,kYM3,M3); //M4=X22*(Y21-Y11) SubMatBlocks(kYM4,b2,c2,Y21,Y11); strassenMMult(0,a2,0,c2,0,b2,X22,kYM4,M4); //M5=(X11+X12)*Y22 AddMatBlocks(kXM5,a2,b2,X11,X12); strassenMMult(0,a2,0,c2,0,b2,kXM5,Y22,M5); //M6=(X21-X11)*(Y11+Y12) SubMatBlocks(kXM6,a2,b2,X21,X11); AddMatBlocks(kYM6,b2,c2,Y11,Y12); strassenMMult(0,a2,0,c2,0,b2,kXM6,kYM6,M6); //M7=(X12-X22)*(Y21+Y22) SubMatBlocks(kXM7,a2,b2,X12,X22); AddMatBlocks(kYM7,b2,c2,Y21,Y22); strassenMMult(0,a2,0,c2,0,b2,kXM7,kYM7,M7); for (int i=0; i Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(Matrix Project Report Example | Topics and Well Written Essays - 1250 words, n.d.)
Matrix Project Report Example | Topics and Well Written Essays - 1250 words. https://studentshare.org/information-technology/1865180-matrix-project
(Matrix Project Report Example | Topics and Well Written Essays - 1250 Words)
Matrix Project Report Example | Topics and Well Written Essays - 1250 Words. https://studentshare.org/information-technology/1865180-matrix-project.
“Matrix Project Report Example | Topics and Well Written Essays - 1250 Words”. https://studentshare.org/information-technology/1865180-matrix-project.
  • Cited: 0 times

CHECK THESE SAMPLES OF Matrix Project

Development of Staffing Management Plan

3 Pages (750 words) Research Paper

Project Management: Operations and Supply Chain Management

While the Matrix Project recognizes and values the authority of the project manager, the case is different with functional projects where there are multiple projects managers with each reporting to a higher authority, therefore, making the project cycle more complex.... Lastly, but more importantly, the Matrix Project is divided into weak, medium, and strong depending on the authority of the project manager, while the functional organization structures do not have any subdivisions (Yagiz, 2006)....
3 Pages (750 words) Essay

Change Management Plan

ith these components in mind and in conceptualizing a change management plan for SWC that may assist with guiding organizational movement toward our evolving new structure, it appears that many successful companies that formalize a change management process use project management discipline as template for managing complex processes.... This approach is process and time tested, and seems to makes sense for any project that may require concentrated planning and implementation....
5 Pages (1250 words) Essay

Paper 2

The main aim of the project is to report on any identified changes within and without the market.... Before under taking the project, there is a… It refers to a task of Zero duration that presents an essential achievement in a particular project.... It provides main work divisions, estimates of completion time, costs incurred and the The proposal herein gives a of a business related project that should be used in manufacturing and marketing of the apparels....
2 Pages (500 words) Admission/Application Essay

Green Computing Research Project Part 2

The project will include the meetings and discussions with all the stakeholders to identify their needs for implementation areas of green technologies Case Study 2: Green Computing Research Project – Part 2 The Requirements Traceability Matrix Project Green Computing Research ProjectProject Manager: Req.... The aim of the project is to conduct a research on the green computing so that it can be implemented in the system of We are Big, Inc.... The project team meetings will be held up weekly to update the status of the project to each team member....
2 Pages (500 words) Assignment

Three projects selection

Three project ideas are to be outlined whereby they will be compared and only one get a chance to be used as a display of knowledge and experience as well as learning and attainment of new skill from the project.... Comparison and decision making will be done in terms of material,… The operation will look forward to utilization of as many aspects of engineering as possible in a single project as well as trying to make use of almost every tool available....
6 Pages (1500 words) Term Paper

Project scope mangement

ii) Use Cases: Helps in explaining… One or more cases may be produced from every use case, matching to the detail of every possible way of attaining that project scope analysis Q1.... The requirements can be gathered from;i) Stakeholders: determine stakeholder project anticipations through personal interviews or group meetings in case of large number of stakeholders.... ii) Focus Groups: conduct one or more focus group meetings to discuss and brainstorm project functionality as well as deliverables....
2 Pages (500 words) Assignment

Project Management Triangle

This paper "project Management Triangle" discusses a project manager as a person who is responsible for achieving the goals of the projects that are under his supervision.... hellip; The project manager can be considered the leader who guides the team in achieving some goals and objectives.... The project manager has to become a leader and not a manager; since a manager is different from a leader.... One of the biggest challenges for a project manager is to maintain the Triple Constraint- time, quality and cost....
8 Pages (2000 words) Assignment
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us