sorting.SelectionSort Class Reference

The SelectionSort class extends the Sort class and sorts arrays with the selectionsort algorithm. More...

Inherits sorting.Sort.

Inheritance diagram for sorting.SelectionSort:

Inheritance graph
[legend]
Collaboration diagram for sorting.SelectionSort:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

void doSort ()
 This is the sorting algorithm.

Private Member Functions

int minimum (int[] array, int anfang, int ende)
 This function is used to locate the minimum value in a array of integers.

Detailed Description

The SelectionSort class extends the Sort class and sorts arrays with the selectionsort algorithm.

The used selectionsort code is adapted from http://de.wikipedia.org/wiki/Selectionsort.

Definition at line 22 of file SelectionSort.java.


Member Function Documentation

void sorting.SelectionSort.doSort  )  [protected]
 

This is the sorting algorithm.

The used selectionsort code is adapted from http://de.wikipedia.org/wiki/Selectionsort.

Reimplemented from sorting.Sort.

Definition at line 30 of file SelectionSort.java.

References sorting.Sort.calcRuntime(), sorting.SelectionSort.minimum(), and sorting.Sort.theArray.

Here is the call graph for this function:

int sorting.SelectionSort.minimum int[]  array,
int  anfang,
int  ende
[private]
 

This function is used to locate the minimum value in a array of integers.

Definition at line 45 of file SelectionSort.java.

Referenced by sorting.SelectionSort.doSort().


The documentation for this class was generated from the following file:
Generated on Thu Jun 22 19:07:32 2006 for Doxygen Example (Java) by  doxygen 1.4.5