Done
This commit is contained in:
parent
a04a66c509
commit
add23e123e
23 changed files with 1041 additions and 107 deletions
|
|
@ -1,12 +1,12 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding
|
||||
* ---------------------------------------------------------
|
||||
* Exercise Number: S07
|
||||
* Exercise Number: S05
|
||||
* Title: Insertion sort
|
||||
* Author: */<your name>;/*
|
||||
* Author: Marc Tismonar
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Implements the insertion sort algorithm
|
||||
* Implements the insertion sort strategy
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
#ifndef ___INSERTION_SORT_H
|
||||
|
|
@ -18,22 +18,22 @@
|
|||
/* NOTE: Either list or array variant is required! */
|
||||
|
||||
/**
|
||||
* Sorts the given list according to the insertion sort algorithm.
|
||||
* Sorts the given list according to the insertion sort strategy.
|
||||
*
|
||||
* @param list The list to be sorted.
|
||||
* @param criterion The pointer to the function that implements the sorting criterion.
|
||||
* That function accepts two integer parameters and returns a boolean value.
|
||||
*/
|
||||
void insertion_sort_list(<params>);
|
||||
void insertion_sort_list(IntList list, criterion_fn criterion);
|
||||
|
||||
/**
|
||||
* Sorts the given array according to the insertion sort algorithm.
|
||||
* Sorts the given array according to the insertion sort strategy.
|
||||
*
|
||||
* @param array The array to be sorted.
|
||||
* @param length The length of the array.
|
||||
* @param criterion The pointer to the function that implements the sorting criterion.
|
||||
* That function accepts two integer parameters and returns a boolean value.
|
||||
*/
|
||||
void insertion_sort_array(<params>);
|
||||
void insertion_sort_array(int array[], int length, criterion_fn criterion);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue