public class Sorter extends Object
| Constructor and Description |
|---|
Sorter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
insertionSort(Comparable[] array)
Sorts the specified
Array with insertionSort. |
static void |
insertionSort(Comparable[] array,
int left,
int right)
Sorts the specified
Array with insertionSort. |
static void |
quickSort(Comparable[] array)
Sorts the specified
Array with Quicksort.Sorts the complete Array. |
public static void insertionSort(Comparable[] array)
Array with insertionSort. The Complete Array is
searched.array - Array, which is going to get sortedinsertionSort(java.lang.Comparable[], int, int)public static void insertionSort(Comparable[] array, int left, int right)
Array with insertionSort. Sorts only a specified area.array - Array, which is going to get sortedleft - left end of the area, which is going to get sortedright - right end of the area, which is going to get sortedpublic static void quickSort(Comparable[] array)
Array with Quicksort.Sorts the complete Array. If the
to be sorted area is smaller than or equal 16, InsertionSort will be used.array - Array, which is going to get sorted.quickSort(java.lang.Comparable[], int, int, int)Copyright © 2012–2026 cismet GmbH. All rights reserved.