Merge sort algorithm
Versione 1.0.0.0 (1,8 KB) da
ACLNM
This function executes what I think is the merge sort algorithm invented by John von Neumann in 1945
The function should be used like this:
sorted = fusioned( somevector )
Also contains a script that runs the algorithm N times and compares it with the function SORT from Matlab. It expresses how many times it was successful and how long it took.
As far as I know, the function is completely functional.
Tell me if you noticed otherwise. Send the vector that can produce an error.
@ ACx // February 2013
Cita come
ACLNM (2026). Merge sort algorithm (https://it.mathworks.com/matlabcentral/fileexchange/40163-merge-sort-algorithm), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2012a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Shifting and Sorting Matrices in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
