File Exchange

image thumbnail

Merge sort algorithm

version 1.0 (1.8 KB) by

This function executes what I think is the merge sort algorithm invented by John von Neumann in 1945

0 Downloads

Updated

View License

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

Comments and Ratings (1)

Cem Talas

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video