Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. (UG-40, G-15 Points) Programming Question Given the array of numbers at the below. 12,3.79.12,4,5,19,21,72,32,93,10,73,41,92,52,56,31,19,18,15,82,10,72,6,1,8,2,9,7,3,11,91,9,8,5,2,8,12,10,61,71,63,24,2 1,61.16. write a serial and parallel program that will count

image text in transcribed

6. (UG-40, G-15 Points) Programming Question Given the array of numbers at the below. 12,3.79.12,4,5,19,21,72,32,93,10,73,41,92,52,56,31,19,18,15,82,10,72,6,1,8,2,9,7,3,11,91,9,8,5,2,8,12,10,61,71,63,24,2 1,61.16. write a serial and parallel program that will count the number of even elements in the given array. Use a timer to find the time takes for your computer to find them. There shall not be a racing condition and apply required locks and local variables to improve the performance. Please write your answer below into the box. I 7. (UG-Bonus, G-20 Points) Programming Question Use your code for question 6 but this time instead of using the given array, create a hundred million random numbers and find the even numbers with the parallel program. Compare your results with the question 6 and discuss what happens if you increase the number of data size. How will be the overhead affects the result

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

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago