org.ddogleg.sorting
Class StraightInsertionSort
- java.lang.Object
-
- org.ddogleg.sorting.StraightInsertionSort
-
public class StraightInsertionSort extends java.lang.ObjectAn implementation of the straight insert sort algorithm. This is a O(N^2) algorithm and this implemenation originally came from NUmerical Recipes Third Edition. page 420. No additional data structures need to be declared. Elements are swapped in the list Only recommended for less than 20 elements
-
-
Constructor Summary
Constructors Constructor and Description StraightInsertionSort()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidsort(double[] data)Sorts data into ascending order
-
DataMelt 3.0 © DataMelt by jWork.ORG