Interface ISortingAlgorithm
- All Known Implementing Classes:
BidirectionalBubble, BinaryInsertion, Bubble, DirectInsertion, DirectSelection, Heapsort, ImprovedBubble, Quicksort, Radix, Shellsort
public interface ISortingAlgorithm
Interface for sorting algorithms
- Author:
- vicegd
-
Method Summary
-
Method Details
-
sort
void sort(int[] elements) Sorts elements without tracing anything- Parameters:
elements- Array of numbers to be sorted
-
sort
void sort(int[] elements, boolean trace) Sorts elements with the possibility of tracing the operation- Parameters:
elements- Array of numbers to be sortedtrace- Whether to trace the operation performed
-