Class SortingAlgorithm

java.lang.Object
org.graph4j.util.SortingAlgorithm
Direct Known Subclasses:
CountingSort, RadixSort

public abstract class SortingAlgorithm extends Object
Author:
Cristian Frăsinaru
  • Constructor Details

    • SortingAlgorithm

      public SortingAlgorithm()
  • Method Details

    • sort

      public abstract void sort(int[] arr)
      Sorts an array of integers.
      Parameters:
      arr - the array to be sorted.
    • sort

      public void sort(List<Integer> list)
      Sorts a list of integers.
      Parameters:
      list - the list to be sorted.