Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Bubble sort MPI parallel C
4.0
Application background Read a plain text file containing numbers (less than 2E8), stores it in a dynamic array, bubble sort method used and prints out in another plain text file. In the terminal returns the runtime of each process. If the argument is not specified it defaults to a file called "entrada.txt" (must be stored in the current directory) and if argument is defined making the file entered argument with the array sorted. Key Technology Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller elements "bubble" to the top of the list. Although the algorithm is simple, it is too slow and impractical for most
hsepulveda
2016-08-23
2
1
No more~