Answered step by step
Verified Expert Solution
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started