Package br.unip.aps.sorting.algorithms
Class QuickSort
java.lang.Object
br.unip.aps.sorting.algorithms.QuickSort
- All Implemented Interfaces:
SortAlgorithm
Quick Sort (Hoare, 1962).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnome()<T> voidordenar(InstrumentedArray<T> a) Ordena in-place o array instrumentado.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface br.unip.aps.sorting.SortAlgorithm
aceitaFaixa, exigeChaveNumerica, ordenar, ordenar
-
Constructor Details
-
QuickSort
public QuickSort()
-
-
Method Details
-
nome
- Specified by:
nomein interfaceSortAlgorithm
-
complexidade
- Specified by:
complexidadein interfaceSortAlgorithm
-
descricao
- Specified by:
descricaoin interfaceSortAlgorithm
-
ordenar
Description copied from interface:SortAlgorithmOrdena in-place o array instrumentado.- Specified by:
ordenarin interfaceSortAlgorithm
-