From df75c6e4840f96c469436098402992ffd1cd95dc Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Wed, 23 Sep 2020 18:44:54 +0000 Subject: [PATCH] Documentation for 7f7b2b0e68bea40a25a54e0e4531ed16e5152296 --- d4/d8d/jarvis__algorithm_8cpp.html | 2 +- d5/ddb/bogo__sort_8cpp.html | 2 +- d6/d74/namespacekadane.html | 112 ++++ d8/d58/kadane2_8cpp__incl.map | 6 + d8/d58/kadane2_8cpp__incl.md5 | 1 + d8/d58/kadane2_8cpp__incl.svg | 68 +++ d8/d95/vector__ops_8hpp_source.html | 3 + db/dca/kadane2_8cpp.html | 242 +++++++++ db/dca/kadane2_8cpp.js | 5 + ...3029007a422a914a85c0b0122f1c7b4_cgraph.map | 4 + ...3029007a422a914a85c0b0122f1c7b4_cgraph.md5 | 1 + ...3029007a422a914a85c0b0122f1c7b4_cgraph.svg | 44 ++ dir_8a20dd5bfd5341a725342bf72b6b686f.html | 3 + dir_8a20dd5bfd5341a725342bf72b6b686f.js | 1 + files.html | 3 +- globals_func_i.html | 6 +- globals_func_m.html | 29 +- globals_func_s.html | 6 +- globals_i.html | 6 +- globals_m.html | 59 +-- globals_s.html | 6 +- index.html | 8 +- namespacemembers.html | 12 +- namespacemembers_func.html | 12 +- namespaces.html | 47 +- namespaces_dup.js | 1 + navtreedata.js | 16 +- navtreeindex0.js | 8 +- navtreeindex1.js | 12 +- navtreeindex2.js | 18 +- navtreeindex3.js | 14 +- navtreeindex4.js | 14 +- navtreeindex5.js | 22 +- navtreeindex6.js | 22 +- search/all_10.js | 212 ++++---- search/all_11.js | 42 +- search/all_12.js | 208 ++++---- search/all_13.js | 480 +++++++++--------- search/all_14.js | 216 ++++---- search/all_15.js | 128 ++--- search/all_16.js | 92 ++-- search/all_17.js | 158 +++--- search/all_18.js | 12 +- search/all_19.js | 8 +- search/all_1a.js | 6 +- search/all_1b.js | 186 +++---- search/all_9.js | 8 +- search/all_b.js | 30 +- search/all_c.js | 158 +++--- search/all_d.js | 231 ++++----- search/all_e.js | 140 ++--- search/all_f.js | 136 ++--- search/classes_0.js | 36 +- search/classes_1.js | 78 +-- search/classes_10.js | 6 +- search/classes_11.js | 80 +-- search/classes_12.js | 96 ++-- search/classes_13.js | 46 +- search/classes_14.js | 64 +-- search/classes_15.js | 38 +- search/classes_16.js | 62 +-- search/classes_17.js | 4 +- search/classes_18.js | 2 +- search/classes_2.js | 70 +-- search/classes_3.js | 32 +- search/classes_4.js | 34 +- search/classes_5.js | 34 +- search/classes_6.js | 12 +- search/classes_7.js | 16 +- search/classes_8.js | 196 +++---- search/classes_9.js | 2 +- search/classes_a.js | 4 +- search/classes_b.js | 36 +- search/classes_c.js | 74 +-- search/classes_d.js | 36 +- search/classes_e.js | 24 +- search/classes_f.js | 34 +- search/defines_0.js | 4 +- search/defines_1.js | 4 +- search/defines_2.js | 4 +- search/defines_3.js | 2 +- search/defines_4.js | 4 +- search/defines_5.js | 4 +- search/defines_6.js | 4 +- search/files_0.js | 8 +- search/files_1.js | 26 +- search/files_10.js | 14 +- search/files_11.js | 4 +- search/files_12.js | 30 +- search/files_13.js | 10 +- search/files_14.js | 6 +- search/files_15.js | 2 +- search/files_2.js | 14 +- search/files_3.js | 18 +- search/files_4.js | 6 +- search/files_5.js | 18 +- search/files_6.js | 14 +- search/files_7.js | 14 +- search/files_8.js | 8 +- search/files_9.js | 4 +- search/files_a.js | 9 +- search/files_b.js | 24 +- search/files_c.js | 14 +- search/files_d.js | 12 +- search/files_e.js | 8 +- search/files_f.js | 20 +- search/functions_0.js | 6 +- search/functions_1.js | 166 +++--- search/functions_10.js | 158 +++--- search/functions_11.js | 18 +- search/functions_12.js | 154 +++--- search/functions_13.js | 374 +++++++------- search/functions_14.js | 160 +++--- search/functions_15.js | 84 +-- search/functions_16.js | 46 +- search/functions_17.js | 146 +++--- search/functions_18.js | 6 +- search/functions_19.js | 2 +- search/functions_1a.js | 4 +- search/functions_1b.js | 186 +++---- search/functions_2.js | 116 ++--- search/functions_3.js | 152 +++--- search/functions_4.js | 184 +++---- search/functions_5.js | 112 ++-- search/functions_6.js | 208 ++++---- search/functions_7.js | 126 ++--- search/functions_8.js | 40 +- search/functions_9.js | 186 +++---- search/functions_a.js | 6 +- search/functions_b.js | 18 +- search/functions_c.js | 100 ++-- search/functions_d.js | 165 +++--- search/functions_e.js | 102 ++-- search/functions_f.js | 116 ++--- search/groups_0.js | 2 +- search/groups_1.js | 4 +- search/groups_2.js | 2 +- search/namespaces_0.js | 2 +- search/namespaces_1.js | 2 +- search/namespaces_10.js | 2 +- search/namespaces_11.html | 36 ++ search/namespaces_11.js | 4 + search/namespaces_2.js | 4 +- search/namespaces_3.js | 6 +- search/namespaces_4.js | 4 +- search/namespaces_5.js | 4 +- search/namespaces_6.js | 2 +- search/namespaces_7.js | 2 +- search/namespaces_8.js | 4 +- search/namespaces_9.js | 6 +- search/namespaces_a.js | 6 +- search/namespaces_b.js | 5 +- search/namespaces_c.js | 3 +- search/namespaces_d.js | 14 +- search/namespaces_e.js | 14 +- search/namespaces_f.js | 2 +- search/pages_0.js | 2 +- search/pages_1.js | 2 +- search/pages_2.js | 2 +- search/pages_3.js | 4 +- search/related_0.js | 10 +- search/searchdata.js | 2 +- search/typedefs_0.js | 2 +- search/typedefs_1.js | 2 +- search/typedefs_2.js | 2 +- search/typedefs_3.js | 2 +- search/variables_0.js | 4 +- search/variables_1.js | 8 +- search/variables_10.js | 20 +- search/variables_11.js | 2 +- search/variables_12.js | 4 +- search/variables_13.js | 2 +- search/variables_14.js | 2 +- search/variables_15.js | 2 +- search/variables_2.js | 2 +- search/variables_3.js | 2 +- search/variables_4.js | 4 +- search/variables_5.js | 8 +- search/variables_6.js | 16 +- search/variables_7.js | 4 +- search/variables_8.js | 2 +- search/variables_9.js | 6 +- search/variables_a.js | 10 +- search/variables_b.js | 8 +- search/variables_c.js | 12 +- search/variables_d.js | 4 +- search/variables_e.js | 2 +- search/variables_f.js | 18 +- 188 files changed, 4339 insertions(+), 3795 deletions(-) create mode 100644 d6/d74/namespacekadane.html create mode 100644 d8/d58/kadane2_8cpp__incl.map create mode 100644 d8/d58/kadane2_8cpp__incl.md5 create mode 100644 d8/d58/kadane2_8cpp__incl.svg create mode 100644 db/dca/kadane2_8cpp.html create mode 100644 db/dca/kadane2_8cpp.js create mode 100644 db/dca/kadane2_8cpp_af3029007a422a914a85c0b0122f1c7b4_cgraph.map create mode 100644 db/dca/kadane2_8cpp_af3029007a422a914a85c0b0122f1c7b4_cgraph.md5 create mode 100644 db/dca/kadane2_8cpp_af3029007a422a914a85c0b0122f1c7b4_cgraph.svg create mode 100644 search/namespaces_11.html create mode 100644 search/namespaces_11.js diff --git a/d4/d8d/jarvis__algorithm_8cpp.html b/d4/d8d/jarvis__algorithm_8cpp.html index 02f3fba64..174e13886 100644 --- a/d4/d8d/jarvis__algorithm_8cpp.html +++ b/d4/d8d/jarvis__algorithm_8cpp.html @@ -137,7 +137,7 @@ Functions
Implementation of Jarvis’s algorithm.
Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of it.
-The idea of Jarvis’s Algorithm is simple, we start from the leftmost point (or point with minimum x coordinate value) and we keep wrapping points in counterclockwise direction.
The idea is to use orientation() here. Next point is selected as the point that beats all other points at counterclockwise orientation, i.e., next point is q if for any other point r, we have “orientation(p, q, r) = counterclockwise”.
diff --git a/d5/ddb/bogo__sort_8cpp.html b/d5/ddb/bogo__sort_8cpp.html index 11c0003db..0e77020a3 100644 --- a/d5/ddb/bogo__sort_8cpp.html +++ b/d5/ddb/bogo__sort_8cpp.html @@ -136,7 +136,7 @@ FunctionsImplementation of Bogosort algorithm
In computer science, bogosort (also known as permutation sort, stupid sort, slowsort, shotgun sort, random sort, monkey sort, bobosort or shuffle sort) is a highly inefficient sorting algorithm based on the generate and test paradigm. Two versions of this algorithm exist: a deterministic version that enumerates all permutations until it hits a sorted one, and a randomized version that randomly permutes its input.Randomized version is implemented here.
-Shuffle the array untill array is sorted.
diff --git a/d6/d74/namespacekadane.html b/d6/d74/namespacekadane.html new file mode 100644 index 000000000..0ec42305d --- /dev/null +++ b/d6/d74/namespacekadane.html @@ -0,0 +1,112 @@ + + + + + + + +|
+ Algorithms_in_C++
+ 1.0.0
+
+ Set of algorithms implemented in C++.
+ |
+
|
+ Algorithms_in_C++
+ 1.0.0
+
+ Set of algorithms implemented in C++.
+ |
+
Implementation of Kadane Algorithm +More...
+#include <array>#include <climits>#include <iostream>+Namespaces | |
| dynamic_programming | |
| Dynamic Programming algorithms. | |
| kadane | |
| Functions for Kadane algorithm. | |
+Functions | |
| template<size_t N> | |
| int | dynamic_programming::kadane::maxSubArray (const std::array< int, N > &n) |
| maxSubArray function is used to calculate the maximum sum subarray and returns the value of maximum sum which is stored in the variable max_sum More... | |
| int | main () |
| Main function. More... | |
Implementation of Kadane Algorithm
+Kadane algorithm is used to find the maximum sum subarray in an array and maximum sum subarray problem is the task of finding a contiguous subarray with the largest sum
+The simple idea of the algorithm is to search for all positive contiguous segments of the array and keep track of maximum sum contiguous segment among all positive segments(curr_sum is used for this) Each time we get a positive sum we compare it with max_sum and update max_sum if it is greater than curr_sum
+ +| int main | +( | +void | +) | ++ |
Main function.
+| int dynamic_programming::kadane::maxSubArray | +( | +const std::array< int, N > & | +n | ) | ++ |
maxSubArray function is used to calculate the maximum sum subarray and returns the value of maximum sum which is stored in the variable max_sum
+| N | number of array size |
| n | array where numbers are saved |
Files | |
| file | kadane2.cpp |
| Implementation of Kadane Algorithm | |
| file | shortest_common_supersequence.cpp |
| SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z, but order is maintained). | |
| ► dynamic_programming | |
| ► geometry | |
| Nhorspool | Functions for Horspool's algorithm |
| Nis_graph_bipartite | Functions for checking whether a graph is bipartite or not |
| Njarvis | Functions for Jarvis’s algorithm |
| Nlayers | This namespace contains layers used in MLP |
| Nlinear_probing | An implementation of hash table using linear probing algorithm |
| Nlinked_list | Functions for singly linked list algorithm |
| Nmachine_learning | Machine learning algorithms |
| Nmedian_search | Functions for Median search algorithm |
| Nmerge_insertion | Combined Intersion-Merge sorting algorithm |
| Nn_queens | Functions for Eight Queens puzzle |
| Nn_queens_all_solutions | Functions for Eight Queens puzzle with all solutions |
| Nneural_network | Neural Network or Multilayer Perceptron |
| Nqr_algorithm | Functions to compute QR decomposition of any rectangular matrix |
| Nquadratic_probing | An implementation of hash table using quadratic probing algorithm |
| Nrange_queries | Algorithms and Data Structures that support range queries and updates |
| Nsearch | Search algorithms |
| Nshortest_common_supersequence | Shortest Common Super Sequence algorithm |
| Nsorting | Sorting algorithms |
| Nspirograph | |
| Nstatistics | Statistical algorithms |
| Nstd | STL namespace |
| Nstring_search | String search algorithms |
| Nstrings | Algorithms with strings |
| Nutil_functions | Various utility functions used in Neural network |
| Nvigenere | Functions for vigenère cipher algorithm |
| NXOR | Functions for XOR cipher algorithm |
| Nkadane | Functions for Kadane algorithm |
| Nlayers | This namespace contains layers used in MLP |
| Nlinear_probing | An implementation of hash table using linear probing algorithm |
| Nlinked_list | Functions for singly linked list algorithm |
| Nmachine_learning | Machine learning algorithms |
| Nmedian_search | Functions for Median search algorithm |
| Nmerge_insertion | Combined Intersion-Merge sorting algorithm |
| Nn_queens | Functions for Eight Queens puzzle |
| Nn_queens_all_solutions | Functions for Eight Queens puzzle with all solutions |
| Nneural_network | Neural Network or Multilayer Perceptron |
| Nqr_algorithm | Functions to compute QR decomposition of any rectangular matrix |
| Nquadratic_probing | An implementation of hash table using quadratic probing algorithm |
| Nrange_queries | Algorithms and Data Structures that support range queries and updates |
| Nsearch | Search algorithms |
| Nshortest_common_supersequence | Shortest Common Super Sequence algorithm |
| Nsorting | Sorting algorithms |
| Nspirograph | |
| Nstatistics | Statistical algorithms |
| Nstd | STL namespace |
| Nstring_search | String search algorithms |
| Nstrings | Algorithms with strings |
| Nutil_functions | Various utility functions used in Neural network |
| Nvigenere | Functions for vigenère cipher algorithm |
| NXOR | Functions for XOR cipher algorithm |