Package org.graph4j.util
Class RadixSort
java.lang.Object
org.graph4j.util.SortingAlgorithm
org.graph4j.util.RadixSort
Radix sort is a non-comparative integer sorting algorithm that sorts data
with integer keys by grouping keys by the individual digits which share the
same significant position and value.
- Author:
- Ignat Gabriel-Andrei
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.graph4j.util.SortingAlgorithm
sort
-
Constructor Details
-
RadixSort
public RadixSort()
-
-
Method Details
-
sort
public void sort(int[] arr) Description copied from class:SortingAlgorithmSorts an array of integers.- Specified by:
sortin classSortingAlgorithm- Parameters:
arr- the array to be sorted.
-