From 473ab0a164ba097327ede3985fb7c9b96897fd9d Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:49:33 +0000 Subject: [PATCH] Documentation for e6b17203c7944e456ffda6882ae982e97e78aa57 --- d0/d76/binary__insertion__sort_8cpp__incl.map | 7 + d0/d76/binary__insertion__sort_8cpp__incl.md5 | 1 + d0/d76/binary__insertion__sort_8cpp__incl.svg | 83 ++++ d0/db6/non__recursive__merge__sort_8cpp.html | 2 +- d1/d21/quick__sort_8cpp.html | 2 +- d1/daa/random__pivot__quick__sort_8cpp.html | 2 +- d1/dcc/wiggle__sort_8cpp.html | 2 +- d2/d21/gnome__sort_8cpp.html | 2 +- d2/d26/count__inversions_8cpp.html | 2 +- d2/d66/binary__search_8cpp__incl.map | 4 - d2/d66/binary__search_8cpp__incl.md5 | 1 - d2/d66/binary__search_8cpp__incl.svg | 37 -- d3/d4c/quick__sort__3_8cpp.html | 2 +- .../brute__force__string__searching_8cpp.html | 15 +- d3/d92/pancake__sort_8cpp.html | 2 +- d3/df9/recursive__bubble__sort_8cpp.html | 2 +- d4/d7a/shell__sort2_8cpp.html | 2 +- d4/d9f/selection__sort__recursive_8cpp.html | 2 +- d5/d4c/group__sorting.html | 2 +- d5/d88/md__d_i_r_e_c_t_o_r_y.html | 1 + d5/d91/namespacesorting.html | 150 ++++++- ...34d8b276518a902962e87d3158b64fd_cgraph.map | 3 + ...34d8b276518a902962e87d3158b64fd_cgraph.md5 | 1 + ...34d8b276518a902962e87d3158b64fd_cgraph.svg | 28 ++ ...f4bc75cca6dd8294af2d0e328006c68_cgraph.map | 5 + ...f4bc75cca6dd8294af2d0e328006c68_cgraph.md5 | 1 + ...f4bc75cca6dd8294af2d0e328006c68_cgraph.svg | 59 +++ ...ta__structures_1_1list__array_1_1list.html | 2 +- d5/ddb/bogo__sort_8cpp.html | 2 +- d6/d1a/dnf__sort_8cpp.html | 2 +- d8/d61/radix__sort2_8cpp.html | 2 +- d8/dcc/binary__insertion__sort_8cpp.html | 285 +++++++++++++ d8/dcc/binary__insertion__sort_8cpp.js | 7 + ...8dca7b867074164d5f45b0f3851269d_cgraph.map | 10 + ...8dca7b867074164d5f45b0f3851269d_cgraph.md5 | 1 + ...8dca7b867074164d5f45b0f3851269d_cgraph.svg | 134 ++++++ ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map | 11 + ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 1 + ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg | 149 +++++++ d9/dca/namespacesearch.html | 2 +- db/d3f/wave__sort_8cpp.html | 2 +- dc/dd9/strand__sort_8cpp.html | 2 +- dd/d0d/insertion__sort_8cpp.html | 2 +- dd/da8/pigeonhole__sort_8cpp.html | 2 +- ...us_2sorting_2wiggle_sort_8cpp-example.html | 2 +- de/d07/cycle__sort_8cpp.html | 2 +- de/d7b/merge__insertion__sort_8cpp.html | 2 +- df/dd5/binary__search_8cpp.html | 254 ----------- df/dd5/binary__search_8cpp.js | 5 - ...f9e6b7e6f15df4b525a2e7705ba3089_cgraph.map | 5 - ...f9e6b7e6f15df4b525a2e7705ba3089_cgraph.md5 | 1 - ...f9e6b7e6f15df4b525a2e7705ba3089_cgraph.svg | 52 --- dir_19b2bf9199a15c634a08b1ede1dd896a.html | 3 - dir_19b2bf9199a15c634a08b1ede1dd896a.js | 1 - dir_bb1b521853a9c46347182a9d10420771.html | 3 + dir_bb1b521853a9c46347182a9d10420771.js | 1 + files.html | 74 ++-- globals_b.html | 1 - globals_func_b.html | 1 - globals_func_m.html | 2 +- globals_func_s.html | 2 +- globals_func_t.html | 2 +- globals_i.html | 2 +- globals_m.html | 2 +- globals_s.html | 2 +- globals_t.html | 2 +- namespacemembers.html | 4 +- namespacemembers_func.html | 4 +- namespaces.html | 2 +- namespaces_dup.js | 2 + navtreedata.js | 18 +- navtreeindex0.js | 54 +-- navtreeindex1.js | 36 +- navtreeindex10.js | 72 ++-- navtreeindex11.js | 58 +-- navtreeindex12.js | 134 +++--- navtreeindex13.js | 102 ++--- navtreeindex14.js | 44 +- navtreeindex15.js | 68 +-- navtreeindex2.js | 66 +-- navtreeindex3.js | 114 ++--- navtreeindex4.js | 116 ++--- navtreeindex5.js | 92 ++-- navtreeindex6.js | 130 +++--- navtreeindex7.js | 56 +-- navtreeindex8.js | 78 ++-- navtreeindex9.js | 76 ++-- search/all_12.js | 4 +- search/all_14.js | 8 +- search/all_15.js | 6 +- search/all_3.js | 8 +- search/all_8.js | 4 +- search/all_a.js | 397 +++++++++--------- search/all_e.js | 6 +- search/files_2.js | 2 +- search/functions_11.js | 4 +- search/functions_13.js | 8 +- search/functions_14.js | 4 +- search/functions_2.js | 2 +- search/functions_7.js | 4 +- search/functions_9.js | 179 ++++---- search/functions_d.js | 2 +- 102 files changed, 2003 insertions(+), 1418 deletions(-) create mode 100644 d0/d76/binary__insertion__sort_8cpp__incl.map create mode 100644 d0/d76/binary__insertion__sort_8cpp__incl.md5 create mode 100644 d0/d76/binary__insertion__sort_8cpp__incl.svg delete mode 100644 d2/d66/binary__search_8cpp__incl.map delete mode 100644 d2/d66/binary__search_8cpp__incl.md5 delete mode 100644 d2/d66/binary__search_8cpp__incl.svg create mode 100644 d5/d91/namespacesorting_a034d8b276518a902962e87d3158b64fd_cgraph.map create mode 100644 d5/d91/namespacesorting_a034d8b276518a902962e87d3158b64fd_cgraph.md5 create mode 100644 d5/d91/namespacesorting_a034d8b276518a902962e87d3158b64fd_cgraph.svg create mode 100644 d5/d91/namespacesorting_a5f4bc75cca6dd8294af2d0e328006c68_cgraph.map create mode 100644 d5/d91/namespacesorting_a5f4bc75cca6dd8294af2d0e328006c68_cgraph.md5 create mode 100644 d5/d91/namespacesorting_a5f4bc75cca6dd8294af2d0e328006c68_cgraph.svg create mode 100644 d8/dcc/binary__insertion__sort_8cpp.html create mode 100644 d8/dcc/binary__insertion__sort_8cpp.js create mode 100644 d8/dcc/binary__insertion__sort_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.map create mode 100644 d8/dcc/binary__insertion__sort_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.md5 create mode 100644 d8/dcc/binary__insertion__sort_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg create mode 100644 d8/dcc/binary__insertion__sort_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map create mode 100644 d8/dcc/binary__insertion__sort_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 create mode 100644 d8/dcc/binary__insertion__sort_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg delete mode 100644 df/dd5/binary__search_8cpp.html delete mode 100644 df/dd5/binary__search_8cpp.js delete mode 100644 df/dd5/binary__search_8cpp_abf9e6b7e6f15df4b525a2e7705ba3089_cgraph.map delete mode 100644 df/dd5/binary__search_8cpp_abf9e6b7e6f15df4b525a2e7705ba3089_cgraph.md5 delete mode 100644 df/dd5/binary__search_8cpp_abf9e6b7e6f15df4b525a2e7705ba3089_cgraph.svg diff --git a/d0/d76/binary__insertion__sort_8cpp__incl.map b/d0/d76/binary__insertion__sort_8cpp__incl.map new file mode 100644 index 000000000..32be6d8af --- /dev/null +++ b/d0/d76/binary__insertion__sort_8cpp__incl.map @@ -0,0 +1,7 @@ + diff --git a/d0/d76/binary__insertion__sort_8cpp__incl.md5 b/d0/d76/binary__insertion__sort_8cpp__incl.md5 new file mode 100644 index 000000000..609fe1cb2 --- /dev/null +++ b/d0/d76/binary__insertion__sort_8cpp__incl.md5 @@ -0,0 +1 @@ +9813ec6f6f24a4182906193337e1bc5a \ No newline at end of file diff --git a/d0/d76/binary__insertion__sort_8cpp__incl.svg b/d0/d76/binary__insertion__sort_8cpp__incl.svg new file mode 100644 index 000000000..5159deb29 --- /dev/null +++ b/d0/d76/binary__insertion__sort_8cpp__incl.svg @@ -0,0 +1,83 @@ + + + + + diff --git a/d0/db6/non__recursive__merge__sort_8cpp.html b/d0/db6/non__recursive__merge__sort_8cpp.html index 4aad70564..5f26bca6d 100644 --- a/d0/db6/non__recursive__merge__sort_8cpp.html +++ b/d0/db6/non__recursive__merge__sort_8cpp.html @@ -109,7 +109,7 @@ Include dependency graph for non_recursive_merge_sort.cpp:
diff --git a/d1/d21/quick__sort_8cpp.html b/d1/d21/quick__sort_8cpp.html
index 1ac19d7e7..8b5b570b2 100644
--- a/d1/d21/quick__sort_8cpp.html
+++ b/d1/d21/quick__sort_8cpp.html
@@ -111,7 +111,7 @@ Include dependency graph for quick_sort.cpp:
Namespaces | for working with vectors | | | ||||||||
diff --git a/d1/daa/random__pivot__quick__sort_8cpp.html b/d1/daa/random__pivot__quick__sort_8cpp.html index 5bdb81c79..11cd06d3f 100644 --- a/d1/daa/random__pivot__quick__sort_8cpp.html +++ b/d1/daa/random__pivot__quick__sort_8cpp.html @@ -122,7 +122,7 @@ Classes | |
Namespaces | |
| namespace | sorting |
| Sorting algorithms. | |
| for working with vectors | |
| namespace | random_pivot_quick_sort |
| Functions for the Random Pivot Quick Sort implementation. | |
Namespaces | |
| namespace | sorting |
| Sorting algorithms. | |
| for working with vectors | |
| namespace | wiggle_sort |
| Functions for Wiggle Sort algorithm. | |
Namespaces | |
| namespace | sorting |
| Sorting algorithms. | |
| for working with vectors | |
diff --git a/d2/d26/count__inversions_8cpp.html b/d2/d26/count__inversions_8cpp.html
index 9a74f14d1..2e0f01571 100644
--- a/d2/d26/count__inversions_8cpp.html
+++ b/d2/d26/count__inversions_8cpp.html
@@ -113,7 +113,7 @@ Include dependency graph for count_inversions.cpp:
Namespaces | for working with vectors | | namespace | inversion | Namespaces | for working with vectors | | | |||||||||||||||||
diff --git a/d3/d7d/brute__force__string__searching_8cpp.html b/d3/d7d/brute__force__string__searching_8cpp.html index 4b96421d8..4d31adb72 100644 --- a/d3/d7d/brute__force__string__searching_8cpp.html +++ b/d3/d7d/brute__force__string__searching_8cpp.html @@ -148,16 +148,17 @@ Variables | |
Namespaces | |
| namespace | sorting |
| Sorting algorithms. | |
| for working with vectors | |
| namespace | pancake_sort |
| Functions for Pancake sort algorithm. | |
Namespaces | |
| namespace | sorting |
| Sorting algorithms. | |
| for working with vectors | |
diff --git a/d4/d7a/shell__sort2_8cpp.html b/d4/d7a/shell__sort2_8cpp.html
index 92c4aeeac..9e5123951 100644
--- a/d4/d7a/shell__sort2_8cpp.html
+++ b/d4/d7a/shell__sort2_8cpp.html
@@ -115,7 +115,7 @@ Include dependency graph for shell_sort2.cpp:
Namespaces | for working with vectors | | | ||||||||
diff --git a/d4/d9f/selection__sort__recursive_8cpp.html b/d4/d9f/selection__sort__recursive_8cpp.html
index 671df2afc..ab04b4970 100644
--- a/d4/d9f/selection__sort__recursive_8cpp.html
+++ b/d4/d9f/selection__sort__recursive_8cpp.html
@@ -113,7 +113,7 @@ Include dependency graph for selection_sort_recursive.cpp:
Namespaces | for working with vectors | | namespace | selection_sort_recursive | | ||||||||||
Namespaces | |||||||||||||||
| namespace | sorting | ||||||||||||||
| Sorting algorithms. | |||||||||||||||
| for working with vectors | |||||||||||||||
diff --git a/d5/d88/md__d_i_r_e_c_t_o_r_y.html b/d5/d88/md__d_i_r_e_c_t_o_r_y.html
index af704afef..faa529cbe 100644
--- a/d5/d88/md__d_i_r_e_c_t_o_r_y.html
+++ b/d5/d88/md__d_i_r_e_c_t_o_r_y.html
@@ -458,6 +458,7 @@ Search
Sorting
- Sorting algorithms. + for working with vectors More...
Detailed Description-Sorting algorithms. +for working with vectors for io operations for std::is_sorted for returning multiple values form a function at once Sorting Algorithms. for std::vector +Sorting algorithms. +for algorithm functions for assert for IO operations +Sorting algorithms for assert for typedef datatype uint64_t for IO operations Sorting algorithms for std::is_sorted, std::swap for assert for io operations @@ -191,6 +202,86 @@ Functions | |||||||||||||||||||||||||||
| int64_t sorting::binary_search | +( | +std::vector< T > & | +arr, | +
| + | + | T | +val, | +
| + | + | int64_t | +low, | +
| + | + | int64_t | +high | +
| + | ) | ++ |
Binary search function to find the most suitable pace for an element.
+| T | The generic data type. |
| arr | The actual vector in which we are searching a suitable place for the element. |
| val | The value for which suitable place is to be found. |
| low | The lower bound of the range we are searching in. |
| high | The upper bound of the range we are searching in. |
| void sorting::insertionSort_binsrch | +( | +std::vector< T > & | +arr | ) | ++ |
Insertion sort function to sort the vector.
+| T | The generic data type. |
| arr | The actual vector to sort. |
diff --git a/d6/d1a/dnf__sort_8cpp.html b/d6/d1a/dnf__sort_8cpp.html
index 181b9ffdb..1e436859b 100644
--- a/d6/d1a/dnf__sort_8cpp.html
+++ b/d6/d1a/dnf__sort_8cpp.html
@@ -113,7 +113,7 @@ Include dependency graph for dnf_sort.cpp:
Namespaces | for working with vectors | | namespace | dnf_sort | Namespaces | for working with vectors | | namespace | radix_sort | for std::vector Search algorithms. +for std::sort function for std::assert for IO operations for assert for IO operations Search algorithms -for std::sort function for std::assert for IO operations for assert for io operations, and std::pair Algorithms for searching for assert for IO operations diff --git a/db/d3f/wave__sort_8cpp.html b/db/d3f/wave__sort_8cpp.html index e1f337ac7..fb1c8319e 100644 --- a/db/d3f/wave__sort_8cpp.html +++ b/db/d3f/wave__sort_8cpp.html @@ -113,7 +113,7 @@ Include dependency graph for wave_sort.cpp:Namespaces | for working with vectors | | namespace | wave_sort | Namespaces | for working with vectors | | namespace | strand | Namespaces | for working with vectors | | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
+ Algorithms_in_C++ 1.0.0
+
+ Set of algorithms implemented in C++.
+ |
+
Binary Insertion Sort Algorithm (Insertion Sort) +More...
+#include <algorithm>#include <cassert>#include <iostream>#include <vector>+Namespaces | |
| namespace | sorting |
| for working with vectors | |
+Functions | |
| template<class T > | |
| int64_t | sorting::binary_search (std::vector< T > &arr, T val, int64_t low, int64_t high) |
| Binary search function to find the most suitable pace for an element. More... | |
| template<typename T > | |
| void | sorting::insertionSort_binsrch (std::vector< T > &arr) |
| Insertion sort function to sort the vector. More... | |
| static void | test () |
| Self-test implementations. More... | |
| int | main () |
| Main function. More... | |
Binary Insertion Sort Algorithm (Insertion Sort)
+If the cost of comparisons exceeds the cost of swaps, as is the case for example with string keys stored by reference or with human interaction (such as choosing one of a pair displayed side-by-side), then using binary insertion sort may yield better performance. Binary insertion sort employs a binary search to determine the correct location to insert new elements, and therefore performs ⌈log2 n⌉ comparisons in the worst case. When each element in the array is searched for and inserted this is O(n log n). The algorithm as a whole still has a running time of O(n2) on average because of the series
Example execution steps:
+\begin{bmatrix}40 &30 &20 &50 &10\end{bmatrix} +
++\begin{bmatrix}30 &40 &20 &50 &10\end{bmatrix} +
++\begin{bmatrix}20 &30 &40 &50 &10\end{bmatrix} +
++\begin{bmatrix}10 &20 &30 &40 &50\end{bmatrix} +
+| int main | +( | +void | +) | ++ |
+
|
+ +static | +
Self-test implementations.
+
diff --git a/dd/da8/pigeonhole__sort_8cpp.html b/dd/da8/pigeonhole__sort_8cpp.html
index 040491461..eaede3455 100644
--- a/dd/da8/pigeonhole__sort_8cpp.html
+++ b/dd/da8/pigeonhole__sort_8cpp.html
@@ -113,7 +113,7 @@ Include dependency graph for pigeonhole_sort.cpp:
Namespaces | for working with vectors | | | ||||||||
diff --git a/dd/db0/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2sorting_2wiggle_sort_8cpp-example.html b/dd/db0/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2sorting_2wiggle_sort_8cpp-example.html
index a7bed5671..96632816f 100644
--- a/dd/db0/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2sorting_2wiggle_sort_8cpp-example.html
+++ b/dd/db0/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2sorting_2wiggle_sort_8cpp-example.html
@@ -230,7 +230,7 @@ $(document).ready(function(){initNavTree('dd/db0/_2_users_2runner_2work_2_c-_plu
T endl(T... args) for working with vectors Functions for Wiggle Sort algorithm. Namespaces | for working with vectors | | namespace | cycle_sort | Namespaces | for working with vectors | | namespace | merge_insertion |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- Algorithms_in_C++ 1.0.0
-
- Set of algorithms implemented in C++.
- |
-
Binary search algorithm -More...
-#include <iostream>-Functions | |
| int | binary_search (int a[], int r, int key) |
| int | main (int argc, char const *argv[]) |
| int binary_search | -( | -int | -a[], | -
| - | - | int | -r, | -
| - | - | int | -key | -
| - | ) | -- |
binary_search function
| [in] | a | array to sort |
| [in] | r | right hand limit = \(n-1\) |
| [in] | key | value to find |
| int main | -( | -int | -argc, | -
| - | - | char const * | -argv[] | -
| - | ) | -- |
main function
-