Crossfire JXClient, Trunk
QSortAlgorithm Class Reference
+ Inheritance diagram for QSortAlgorithm:
+ Collaboration diagram for QSortAlgorithm:

Public Member Functions

void sort (int a[]) throws Exception
 

Private Member Functions

boolean pauseTrue (int lo, int hi) throws Exception
 
void swap (int a[], int i, int j)
 

Detailed Description

A quick sort demonstration algorithm SortAlgorithm.java

Author
James Gosling
Kevin A. Smith

Definition at line 49 of file QSortAlgorithm.java.

Member Function Documentation

◆ pauseTrue()

boolean QSortAlgorithm.pauseTrue ( int  lo,
int  hi 
) throws Exception
private

A version of pause() that makes it easier to ensure that we pause exactly the right number of times.

Definition at line 55 of file QSortAlgorithm.java.

◆ sort()

void QSortAlgorithm.sort ( int  a[]) throws Exception

Definition at line 136 of file QSortAlgorithm.java.

◆ swap()

void QSortAlgorithm.swap ( int  a[],
int  i,
int  j 
)
private

Definition at line 127 of file QSortAlgorithm.java.


The documentation for this class was generated from the following file: