Sorting/buildValueBasedInput.h File Reference

Define interface for sorting algorithms over value-based information. Build up a value-based array of Strings to use as a basis for testing the various sorting algorithms. More...

Go to the source code of this file.

Classes

struct  strElement
 Structure of each individual element is a fixed block of characters. More...

Defines

#define ELEMENT_SIZE   26
 Fixed element size as macro.

Functions

void sortValues (struct strElement *strings, int numElements, int size, int(*stringComp)(char *a1, char *a2))
 Interface to sort the value-based information found in strings.


Detailed Description

Define interface for sorting algorithms over value-based information. Build up a value-based array of Strings to use as a basis for testing the various sorting algorithms.

Author:
George Heineman
Date:
05/15/08

Define Documentation

#define ELEMENT_SIZE   26

Fixed element size as macro.


Function Documentation

void sortValues ( struct strElement strings,
int  numElements,
int  size,
int(*)(char *a1, char *a2)  stringComp 
)

Interface to sort the value-based information found in strings.

Parameters:
strings Array of value-based strings in memory.
numElements Number of strings in this array.
size Size of the base string in this array.
stringComp function to compare two string values.

Algorithm Development Kit 1.0