Question: 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 eg of bit integers. The input data and output results should be stored in files, and the IO 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 GustafsonBarsis laws require.
Assuming that this equal division is possible, estimate alpha ie 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
