Packages

object SortingQ

The SortingQ companion object provides shortcuts for calling methods from the SortingQ class.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortingQ
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def imedian(a: Array[Rational], k: Int): Rational

    Indirectly find the median value in the array.

    Indirectly find the median value in the array.

    a

    the array to be examined

  2. def iqsort(a: Array[Rational]): Array[Int]

    Fast, ascending, unstable indirect sort.

    Fast, ascending, unstable indirect sort.

    a

    the array to be sorted

  3. def iselsort(a: Array[Rational]): Array[Int]

    Slow, ascending, stable indirect sort.

    Slow, ascending, stable indirect sort.

    a

    the array to be sorted

  4. def iselsort2(a: Array[Rational]): Array[Int]

    Slow, descending, stable indirect sort.

    Slow, descending, stable indirect sort.

    a

    the array to be sorted

  5. def median(a: Array[Rational], k: Int): Rational

    Find the median value in the array.

    Find the median value in the array.

    a

    the array to be examined

  6. def qsort(a: Array[Rational]): Unit

    Fast, ascending, unstable sort.

    Fast, ascending, unstable sort.

    a

    the array to be sorted

  7. def qsort2(a: Array[Rational]): Unit

    Fast, descending, unstable sort.

    Fast, descending, unstable sort.

    a

    the array to be sorted

  8. def selsort(a: Array[Rational]): Unit

    Slow, ascending, stable sort.

    Slow, ascending, stable sort.

    a

    the array to be sorted

  9. def selsort2(a: Array[Rational]): Unit

    Slow, descending, stable sort.

    Slow, descending, stable sort.

    a

    the array to be sorted