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

    Modifier and Type
    Method
    Description
    void
    sort(int[] elements)
    Sorts elements without tracing anything
    void
    sort(int[] elements, boolean trace)
    Sorts elements with the possibility of tracing the operation
  • 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 sorted
      trace - Whether to trace the operation performed