Package algorithmcomparison
Class Insertionsort
java.lang.Object
algorithmcomparison.Insertionsort
Insertionsort
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]insertionsort(int[] arr) Sorts the given dataset using insertion sort
-
Constructor Details
-
Insertionsort
public Insertionsort()
-
-
Method Details
-
insertionsort
public static int[] insertionsort(int[] arr) Sorts the given dataset using insertion sort- Parameters:
arr- The unsorted dataset- Returns:
- sorted The sorted dataset
-