Sorting/PointerBased/bubblePtr.c File Reference

Contain Bubble Sort implementation

Though the book never refers to Bubble Sort (for which we are proud), we had to just include the code for that ill-fated algorithm to show just how bad some sorting algorithms can be. More...

#include "report.h"

Functions

void sortPointers (char **vals, int total_elems, int(*cmp)(const void *, const void *))
 Sort by using Bubble Sort.


Detailed Description

Contain Bubble Sort implementation

Though the book never refers to Bubble Sort (for which we are proud), we had to just include the code for that ill-fated algorithm to show just how bad some sorting algorithms can be.

Author:
George Heineman
Date:
6/15/08

Function Documentation

void sortPointers ( char **  vals,
int  total_elems,
int(*)(const void *, const void *)  cmp 
)

Sort by using Bubble Sort.

Only included to show just how bad some sorting algorithms can be.

Algorithm Development Kit 1.0