Salad
1.0.15
|
Functions | |
void | sld_sort_bubble (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type) |
A simple sorting algorithm that sorts by swapping pairs of data and works well for small sets of data. More... | |
void | sld_sort_insertion (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type) |
A simple sorting algorithm that sorts by inserting data that is out of order and works well for small sets of data. More... | |
void | sld_sort_selection (void *data_structure, SLD_DATA_STRUCTURE data_structure_type, SLD_DATA_TYPE data_type) |
A simple sorting algorithm that sorts by swapping data that is out of order and suffices for small sets of data. More... | |
Implement sld_sort functionality!
This module contains functions related to sorting data.
void sld_sort_bubble | ( | void * | data_structure, |
SLD_DATA_STRUCTURE | data_structure_type, | ||
SLD_DATA_TYPE | data_type | ||
) |
A simple sorting algorithm that sorts by swapping pairs of data and works well for small sets of data.
data_structure | a sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector |
data_structure_type | any type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example |
data_type | any type defined by SLD_DATA_TYPE such as sld_data_type_int for example |
void sld_sort_insertion | ( | void * | data_structure, |
SLD_DATA_STRUCTURE | data_structure_type, | ||
SLD_DATA_TYPE | data_type | ||
) |
A simple sorting algorithm that sorts by inserting data that is out of order and works well for small sets of data.
data_structure | a sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector |
data_structure_type | any type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example |
data_type | any type defined by SLD_DATA_TYPE such as sld_data_type_int for example |
void sld_sort_selection | ( | void * | data_structure, |
SLD_DATA_STRUCTURE | data_structure_type, | ||
SLD_DATA_TYPE | data_type | ||
) |
A simple sorting algorithm that sorts by swapping data that is out of order and suffices for small sets of data.
data_structure | a sld_list, sld_map, sld_queue, sld_stack, sld_tree, or sld_vector |
data_structure_type | any type defined by SLD_DATA_STRUCTURE such as sld_data_structure_vector for example |
data_type | any type defined by SLD_DATA_TYPE such as sld_data_type_int for example |