Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simple sorting application that uses the mergesort algorithm to sort a large collection ( e . g . , 1 0 7 )

Create a simple sorting application that uses the mergesort algorithm to sort a large collection (e.g.,107) of 32-bit integers. The input data and output results should be stored in files, and the I/O operations should be considered a sequential part of the application. Mergesort is an algorithm that is considered appropriate for parallel execution, although it cannot be equally divided between an arbitrary number of processors, as Amdahls and Gustafson-Barsis laws require.
Assuming that this equal division is possible, estimate \alpha , i.e., the part of the program that can be parallelized, by using a profiler like gprof or valgrind to measure the duration of mergesorts execution relative to the overall execution time. Use this number to estimate the predicted speedup for your program.
Does \alpha depend on the size of the input? If it does, how should you modify your predictions and their graphical illustration?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

=+20.19. Let A ,., () = [IZ, - Z|

Answered: 1 week ago

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago