Question: Regarding programming in C Implement a program in C , called distances, that uses OpenMP for parallelization and that: 1 : Reads coordinates of cells
Regarding programming in C
Implement a program in C called distances, that uses OpenMP for parallelization and that:
: Reads coordinates of cells from a text file "cells" in the current working directory.
: Computes the distances between cells counting how often each distance occurs, approximating, ie rounding, truncating, or similar, to decimal places.
:Outputs to stdout a sorted list of distances with associated frequencies including frequencies at your will
Your program should accept command line arguments
distances t
The argument to t give the number of OpenMP threads that you may use. You may only use OpenMP parallelism.
Input
Coordinates are given in a file, in which each row corresponds to one cell. The three coordinates are separated by exactly one blank space. Each coordinate is given exactly as follows: A sign or two digits, a decimal point and three digits. For instance, the following is a valid input of cells.
Output
A valid output to the above input is
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
