Flussdiagramm
Ohne Titel
Inhalt des Flussdiagramms
Text file
(List of integers)
Read 1st (n) integer
Read "n" integers and save in "arr"
Create an array (arr) of size n
Divide the array in 4 parts
Create 4 arrays of size n/4
Allocate each quarter in the 4 arrays already made
Create function(f) that search the highest vlalue of an arrray.
int x=INT_MIN;
For( int i=0;i< arr.length();i++){
if(arr[i]>x){
x=arr[i];
}
}
return x
for each thread
int x1=f(array1);
Create an array(arr final) to allocate all the results
int xf=f(arrfinal);
Return xf;
Informationen
- Beschreibung
- Flussdiagramm am Ohne Titel, erstellt von Carlos Corral am 18/03/2021.
- Erstellt von
- Carlos Corral
- Aufrufe
- 0
- Bewertung