diff --git a/d2/d6d/bubble__sort__2_8c.html b/d2/d6d/bubble__sort__2_8c.html new file mode 100644 index 00000000..b89e8f3c --- /dev/null +++ b/d2/d6d/bubble__sort__2_8c.html @@ -0,0 +1,311 @@ + + +
+ + + + +
+ Algorithms_in_C
+ 1.0.0
+
+ Set of algorithms implemented in C.
+ |
+
implementation of Bubble sort algorithm +More...
+#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
+Macros | |
#define | MAX 20 |
for rand() calls for assert(<expr>) More... | |
+Functions | |
void | bubble_sort (int *array_sort) |
Bubble sort implementation. More... | |
static void | test () |
Test implementations. More... | |
int | main () |
Main function. More... | |
implementation of Bubble sort algorithm
+worst-case: O(n^2) best-case: O(n) average-complexity: O(n^2)
+ +#define MAX 20 | +
for rand() calls for assert(<expr>)
+for boolean values: true, false
+
void bubble_sort | +( | +int * | +array_sort | ) | ++ |
Bubble sort implementation.
+array_sort | the array to be sorted |
int main | +( | +void | +) | ++ |
+
|
+ +static | +
Test implementations.
+