Bubble sort MPI parallel C
2016-08-23
2 0 0
4.0
Other
Earn points
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 mostc
冒泡
排序
MPI
并行
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment