How come when using a separate routine for swapping as in
It adds about +15% to time (for QuickSort) it takes to sort when compared to putting the swapping code inside the Swap routine itself?Code:public static void Swap(ref int a, ref int b) { int swp = a; a = b; b = swp; }
Is there a way to not make it slow down?
MSDRadix doesn't seem to be much of an improvement.
How does it compare to 3Way QuickSort?
Or this thing:
http://www.codeproject.com/KB/cs/fas...display=Mobile
^I think I remember trying that with Integers and it didn't work (result was still out of order).




Reply With Quote
