From 15c9a91d8bf9071447468689a96d4cc5716d71c7 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 20 Feb 2023 22:49:53 +0000 Subject: [PATCH] Documentation for 5bf2c42bff08f215d73a2daf8d133b39765aef37 --- d2/d57/patience__sort_8c.html | 453 ++++++++++++++++++ d2/d57/patience__sort_8c.js | 8 + ...8dca7b867074164d5f45b0f3851269d_cgraph.map | 6 + ...8dca7b867074164d5f45b0f3851269d_cgraph.md5 | 1 + ...8dca7b867074164d5f45b0f3851269d_cgraph.svg | 66 +++ ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map | 7 + ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 1 + ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg | 81 ++++ ...0cc492037e002ba5145e2e770ed0e66_cgraph.map | 5 + ...0cc492037e002ba5145e2e770ed0e66_cgraph.md5 | 1 + ...0cc492037e002ba5145e2e770ed0e66_cgraph.svg | 51 ++ d5/d88/md__d_i_r_e_c_t_o_r_y.html | 4 + da/d11/patience__sort_8c__incl.map | 6 + da/d11/patience__sort_8c__incl.md5 | 1 + da/d11/patience__sort_8c__incl.svg | 66 +++ dir_bb1b521853a9c46347182a9d10420771.html | 3 + dir_bb1b521853a9c46347182a9d10420771.js | 1 + files.html | 7 +- globals_defs.html | 2 +- globals_func_m.html | 2 +- globals_func_p.html | 2 + globals_func_t.html | 3 +- globals_m.html | 4 +- globals_p.html | 2 + globals_t.html | 3 +- navtreedata.js | 8 +- navtreeindex0.js | 14 +- navtreeindex1.js | 18 +- navtreeindex2.js | 26 +- navtreeindex3.js | 24 +- navtreeindex4.js | 10 +- search/all_12.js | 91 ++-- search/all_16.js | 21 +- search/all_f.js | 6 +- search/files_10.js | 11 +- search/functions_10.js | 62 +-- search/functions_14.js | 9 +- search/functions_d.js | 2 +- 38 files changed, 935 insertions(+), 153 deletions(-) create mode 100644 d2/d57/patience__sort_8c.html create mode 100644 d2/d57/patience__sort_8c.js create mode 100644 d2/d57/patience__sort_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.map create mode 100644 d2/d57/patience__sort_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.md5 create mode 100644 d2/d57/patience__sort_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg create mode 100644 d2/d57/patience__sort_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map create mode 100644 d2/d57/patience__sort_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 create mode 100644 d2/d57/patience__sort_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg create mode 100644 d2/d57/patience__sort_8c_af0cc492037e002ba5145e2e770ed0e66_cgraph.map create mode 100644 d2/d57/patience__sort_8c_af0cc492037e002ba5145e2e770ed0e66_cgraph.md5 create mode 100644 d2/d57/patience__sort_8c_af0cc492037e002ba5145e2e770ed0e66_cgraph.svg create mode 100644 da/d11/patience__sort_8c__incl.map create mode 100644 da/d11/patience__sort_8c__incl.md5 create mode 100644 da/d11/patience__sort_8c__incl.svg diff --git a/d2/d57/patience__sort_8c.html b/d2/d57/patience__sort_8c.html new file mode 100644 index 00000000..b7d44f52 --- /dev/null +++ b/d2/d57/patience__sort_8c.html @@ -0,0 +1,453 @@ + + +
+ + + + +
+ Algorithms_in_C 1.0.0
+
+ Set of algorithms implemented in C.
+ |
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+Functions | |
void | patienceSort (int *array, int length) |
for assertions for IO operations for memory management | |
void | printArray (int *array, int length) |
Helper function to print an array. | |
void | testArray (int *array, int length) |
Testing Helper function. | |
static void | test () |
Self-test implementations. | |
int | main () |
Main function. | |
From Wikipedia: In computer science, patience sorting is a sorting algorithm inspired by, and named after, the card game patience. Given an array of n elements from some totally ordered domain, consider this array as a collection of cards and simulate the patience sorting game. When the game is over, recover the sorted sequence by repeatedly picking off the minimum visible card; in other words, perform a k-way merge of the p piles, each of which is internally sorted.
+int main | +( | +void | +) | ++ |
void patienceSort | +( | +int * | +array, | +
+ | + | int | +length | +
+ | ) | ++ |
for assertions for IO operations for memory management
+Sorts the target array by dividing it into a variable number of internally sorted piles then merge the piles
array | pointer to the array to be sorted |
length | length of the target array |
void printArray | +( | +int * | +array, | +
+ | + | int | +length | +
+ | ) | ++ |
Helper function to print an array.
+array | pointer to the array |
length | length of the target array |
+
|
+ +static | +
Self-test implementations.
+void testArray | +( | +int * | +array, | +
+ | + | int | +length | +
+ | ) | ++ |
Testing Helper function.
+array | pointer to the array to be used for testing |
length | length of the target array |