Package br.unip.aps.sorting.algorithms
Class InsertionSort
java.lang.Object
br.unip.aps.sorting.algorithms.InsertionSort
- All Implemented Interfaces:
SortAlgorithm
Insertion Sort (ordenacao por insercao).
-
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
-
InsertionSort
public InsertionSort()
-
-
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
-