Question: Implement (a) quicksort algorithms and (b) computing the Fibonacci numbers, respectively, both in serial and parallel. For your parallel version, use OpenMP task and sections/section

Implement

(a) quicksort algorithms and

(b) computing the Fibonacci numbers, respectively, both in serial and parallel.

For your parallel version, use OpenMP task and sections/section constructs respectively. Compare the performances of these 3 implementations, i.e., serial, parallel using sections/section construct, parallel using task construct, by running the programs for different problem sizes and thread numbers.

Put your results in a table like the one shown in Table 1.

Implement (a) quicksort algorithms and (b) computing the Fibonacci numbers, respectively, both

Size Seq Table 1: Example table for benchmarking the performance of quicksort Par(sections/section) Par(task) 1 thread 2 threads 4 threads 1 thread 2 threads 4 threads Times(s) Time(s) Speedup Time(s) Speedup Time(s) Time(s) Speedup Time(s) Speedup 105 106 107 108

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!