Sorting/PointerBased/selectionSort.c File Reference

Contains Selection Sort implementation. Straight Selection Sort implementation. More...

#include "report.h"

Functions

static int selectMax (void **ar, int left, int right, int(*cmp)(const void *, const void *))
 Select maximum from ar[left,right] to be used in Selection Sort.
void sortPointers (void **ar, int n, int(*cmp)(const void *, const void *))
 Sort using Selection Sort.


Detailed Description

Contains Selection Sort implementation. Straight Selection Sort implementation.

Author:
George Heineman
Date:
6/15/08

Function Documentation

static int selectMax ( void **  ar,
int  left,
int  right,
int(*)(const void *, const void *)  cmp 
) [static]

Select maximum from ar[left,right] to be used in Selection Sort.

void sortPointers ( void **  ar,
int  n,
int(*)(const void *, const void *)  cmp 
)

Sort using Selection Sort.

Algorithm Development Kit 1.0