Question

Explain how MPI could be used to speed up a sort a million (1,000,000) values. If you have 1000 processors available how fast would your solution be (big O notation). I do not need code for this -- an...

Explain how MPI could be used to speed up a sort a million (1,000,000) values. If you have 1000 processors available how fast would your solution be (big O notation). I do not need code for this -- an explanation of an algorithm and how it would work is sufficient.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MPI (Message passing interface) deals with parallel programming. Parallel programming speedsup the process by a huge amount specially when you have large amount of processors available with you. Incase of linear sorting (ie. without using MPI) the best available sorting algorithm gives us a Big O time complexity of O(n log(n)). This may result in high value of time consumption especially when the number of values are very large.

Just to give a perspective, to sort a million values, it will take O( 100000 log (1000000) ) which is approximately O (20million) which is a huge time. Using MPI using n processors optimal complexity of a parallel sorting algorithm is O[(n log(n))/p]= O(20000). So, you can see how this reduces the computations and makes the program efficient.

Now, how this algorithm works, It uses Divide list into unsorted sub-lists. This list is divided into many other sublists based on the total number of processors available. Then these sublists are sorted on each different processors. Then its is merged. As you can see the computations becomes very less. This is algorithm of parallel merge sort of many different processors.

MPI Init Read dataset & partitioning data by processors No. If id-Master Sending data to salves Receive data from master Mast

Hope this helps. Please rate a THUMBS UP and Best of Luck :)

Add a comment
Know the answer?
Add Answer to:
Explain how MPI could be used to speed up a sort a million (1,000,000) values. If you have 1000 processors available how fast would your solution be (big O notation). I do not need code for this -- an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT