1)Write a program for three processors in the boss-worker programming style. Specifically, P0 will be the boss. It will first create a 40000-element double precision 1-D array. The value for each array element will be the its index squared. Processors 1 and 2 will act as workers.
P0 will transfer ONLY the odd-indexed elements of the array to P1. Similarly PO will transfer only the even-indexed elements to P2. This program should do these transfers by making a new derived vector data type that consists of every other element in the 1-D array. The boss and each worker should use only one send/receive pair, using the new data type.
P1 will then calculate the average of all the array elements which have an odd index. P2 will calculate the average of all the array elements which have an even index. When the workers are done they will output their results.
2)Write a program in which four processors search an array in parallel (each gets a fourth of the elements to search). All the processors are searching the integer array for the element whose value is 11. There is only one 11 in the entire array of 40,000 integers.
Use as input file called data which contains the integer array (ASCII, one element per line). Before the searching begins have ONLY P0 read in the array elements from the data file and distribute one fourth to each of the other three processors and keep one fourth for its own search.
17 фрилансеров(-а) в среднем готовы выполнить эту работу за $130
hi , i am an experienced c,c++ programmer and had developed MPI,Thread based programs before. recenty used MPI to solve a TSP(Travelling Salesman Problem). if u want i can sent u the program screenshot for referecne.
I will complete your project with responsive design and deliver on time. I can complete the application using following tools such as HTML,PHP,MySQL ,CSS and Website design