Programming

# E. Write the Pseudo Code of the matrix multiplication

Customer Question
Attachment: 2012-03-13_175957_matrix_multiplication.docx e. Write the Pseudo Code...

Attachment: 2012-03-13_175957_matrix_multiplication.docx

e. Write the Pseudo Code of the matrix multiplication program that performs the worst execution time and explain why your program runs slowest.
Submitted: 6 years ago.Category: Programming
Show More
Show Less
3/13/2012
Programmer: Sonevar, Graduate Student replied 6 years ago
Category: Programming
Satisfied Customers: 225
Experience: 3.72 GPA University of Phoenix, personal tutor Jr/Highschool College students
Verified
Hi, what Language do you need this pseudo code in? BASIC? C? C++?
Customer reply replied 6 years ago
C++
IF YOU CAN DO IT NO MORE than 1 hours from now
Programmer: Sonevar, Graduate Student replied 6 years ago
I'll give it a shot
Customer reply replied 6 years ago
ok
Customer reply replied 6 years ago
Pseudo code
Programmer: Sonevar, Graduate Student replied 6 years ago

Here is a modified version of one of the many examples of program code found on the internet:

{
clrscr();
int a,b,c,d,e,f,x;
int h[10][10];
int i[10][10];
int j[10][10];
cout<<"Enter Matrix A";
cin>>a>>b;
cout<<"Fill Matrix A:";
for(d=0;i<a;d++)
{
for(e=0;e<b;e++)
{
cin>>h[d][e];
}
}
cout<<"Enter Matrix B:";
cin>>b>>c;
cout<<"Fill Matrix B:";
for(d=0;d<b;d++)
{
for(e=0;e<c;e++)
{
cin>>i[d][e];
}
}
for(d=0;d<a;d++)
{
for(e=0;e<c;e++)
{
sum=0;
for(f=0;f<b;f++)
{
x=x+h[d][f]*i[f][e];
j[d][e]=x;
}
}
}
cout<<"Matrix AB:"<<endl;
for(d=0;d<a;d++)
{
for(e=0;e<c;e++)
{
cout<<j[d][e]<<" ";
}
cout<<endj;
}

It is slow and unwieldy because it constructs each matrix manually through 3 double imbedded loops and a tripple imbedded loop instead of something simpler like the matrix.h library See http://matrixprogramming.com/2008/01/matrixmultiply#L354

hope this helps

Programmer: Sonevar, Graduate Student replied 6 years ago
On the line cout<<"Maatrix AB:" << it should be endj not endl but I can't edit that part for some reason
Customer reply replied 6 years ago
sorry this is not what i'm looking for
Programmer: Sonevar, Graduate Student replied 6 years ago
What is it that you need? Can I still be of help?
Programmer: Sonevar, Graduate Student replied 6 years ago

The Steps in Pseudo code:

Loop Input Get User Defined Demensions of Matrix A

Loop Input Get User Defined Components of Matrix A

Loop Input Get User Defined Demensions of Matrix B

Loop Input Get User Defined Components of Matrix B

Loop Multiply Components of Matrix A by Components of Matrix B

Loop Output Results of Matrix AB

Again, because of all of the looping and imbedded loops the program is slow and clunky, a faster solution would be to use the matrix.h class, or if not available write your own matrix construction module which can be used to fill matrix A, used again to fill matrix B and called a third time to output matrix AB by having a Multiplier line peovide the Matrix AB inputs

Customer reply replied 6 years ago
sorry this is not correct answer also I cannot accept it
Programmer: Sonevar, Graduate Student replied 6 years ago
alright
Category: Programming
Satisfied Customers: 225
225 Satisfied Customers
Experience: 3.72 GPA University of Phoenix, personal tutor Jr/Highschool College students

Sonevar is online now

A new question is answered every 9 seconds

• Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
• Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

## What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

## Meet the Experts:

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

Computer Software Engineer

7,131 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I had a blog 4 years ago on World Press but hosted on a
I had a blog 4 years ago on World Press but hosted on a server that is no longer in existence. I have tried to retrieve the content and have only been able to access the photo's, not any text??? Please HELP??!! Live A Little Now.com I have so much content and spent so much time on this over 4 years I really hope you can help. cell(###) ###-####… read more
MBA
Can someone explain what the Unix 2038 problem is? When was
Can someone explain what the Unix 2038 problem is? When was the epic for UNIX? Is it possible to solve the problem by changing to 64 bit unsigned numbers?… read more
Russell H.
Computer Technology Consultant
784 satisfied customers
I need help with making macro. I need help in making a
I want to put a logo on the back of birthday ccard with one step … read more
George Sibiya
PhD
232 satisfied customers
Need help with SQL Database Transaction Log Restores. We are
Need help with SQL Database Transaction Log Restores … read more
Pete
Engineer
Bachelor\u0027s Degree
1,126 satisfied customers
I have created a program that is supposed to bounce a ball
Hi. I have created a program that is supposed to bounce a ball off of the walls of a square. I have been given some instructions as to the parameters of the function, but I need to come up with a func… read more
Benjamin Larson
Software Development Engineer
Bachelor
39 satisfied customers
We have a news app and are considering creation of a
We have a news app and are considering creation of a Facebook App but really aren't sure why we would need one. We have a page on Facebook and have a custom URL that is our trademark. We do have an ap… read more
Chris Baxter
28 satisfied customers
I created a project in Visual Studio, I then built my
I created a project in Visual Studio, I then built my release, the my release program works, but my video files won't play on other computers from my release project, how can I link my video files in … read more
Ingo U
Master\u0027s Degree
358 satisfied customers
I can't seem to find this as html. Sorry, I won't let me put
I can't seem to find this as html. Sorry, I won't let me put in the code here for "ZONE".This is from a piece of software called CORA to help me rank my site better. Is "ZONE" an actual markup or are … read more
Chris Baxter
28 satisfied customers
I am trying to open a saved excel file and get an error
I am trying to open a saved excel file and get an error message that the file cannot be found … read more
Robert M.
Bachelor\u0027s Degree
3,489 satisfied customers
Need some help with excel. Dont know. i have the latest
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I need help attaching an SQL Server .MDF file using the
I need help attaching an SQL Server .MDF file using the System Architect SAEM application. … read more
Jinsmn
Diplom
1,260 satisfied customers
The problem is with my excel program, do you cover this? I
the problem is with my excel program, do you cover this? … read more
Ricky Kresslein
Bachelor\u0027s Degree
655 satisfied customers
I am trying to rest my password, but when I input my
Hi, I am trying to rest my password, but when I input my username i dont get an email nor an sms. … read more
Isaac Franklin
Associate of Science in Social Sciences
1,062 satisfied customers
Need help with VLOOKUP. EXcel. Excel 2013 recently. Tried
need help with VLOOKUP JA: Is there a specific language you're coding in? Customer: EXcel JA: When did you last update Excel? Customer: Excel 2013 recently JA: What have you tried so far with your Exc… read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
If I wanted to hire someone to create a simple website and
If I wanted to hire someone to create a simple website and storefronts on eBay and Amazon as a gift for someone who sells part time on EBay now, Can that be done as one project and could I have them d… read more
Ugo A
BA/BS
14 satisfied customers
Which is the best resource to learn Java ( JPA, EJB, Web
Which is the best resource to learn Java ( JPA, EJB , Web Services ) and Angular 5. As you try to answer this question, most likely you would Google and send me some tutorials/books name. I have alrea… read more
George Sibiya
PhD
232 satisfied customers
Where can I go to get facebook tech support. I don't know i
i don't know i need to stop a false report made on a person … read more
Jason Jones
AAS Information Technology
6,322 satisfied customers
I would like some help with a problem on Excel. I don't
I don't remember but I think I checked to see if it needed update. … read more
Jason Jones
AAS Information Technology
6,322 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less