From 2d5dfb6d5470262e502e7ff545938e2e44d461a9 Mon Sep 17 00:00:00 2001
From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Date: Mon, 17 Aug 2020 13:40:42 +0000
Subject: [PATCH] Documentation for 3741b41a8a68c0ddc71a40f37e51a5df088a565d
---
...espaceshortest__common__supersequence.html | 114 +++++
d4/d86/large__number_8h_source.html | 11 +-
...test__common__supersequence_8cpp__incl.map | 8 +
...test__common__supersequence_8cpp__incl.md5 | 1 +
...test__common__supersequence_8cpp__incl.svg | 98 ++++
d5/d88/md__d_i_r_e_c_t_o_r_y.html | 1 +
.../shortest__common__supersequence_8cpp.html | 388 +++++++++++++++
.../shortest__common__supersequence_8cpp.js | 6 +
...2ee8d7e67da9f6eb85146b08dad95e6_cgraph.map | 9 +
...2ee8d7e67da9f6eb85146b08dad95e6_cgraph.md5 | 1 +
...2ee8d7e67da9f6eb85146b08dad95e6_cgraph.svg | 119 +++++
...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map | 5 +
...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 1 +
...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg | 52 ++
dd/d24/namespacedynamic__programming.html | 114 +++++
dir_8a20dd5bfd5341a725342bf72b6b686f.html | 7 +
dir_8a20dd5bfd5341a725342bf72b6b686f.js | 4 +
files.html | 250 +++++-----
files_dup.js | 1 +
globals_func_i.html | 6 +-
globals_func_m.html | 37 +-
globals_func_t.html | 57 +--
globals_i.html | 6 +-
globals_m.html | 69 +--
globals_t.html | 53 ++-
namespacemembers.html | 11 +-
namespacemembers_func.html | 11 +-
namespaces.html | 34 +-
namespaces_dup.js | 2 +
navtreedata.js | 10 +-
navtreeindex0.js | 232 ++++-----
navtreeindex1.js | 256 +++++-----
navtreeindex2.js | 280 +++++------
navtreeindex3.js | 256 +++++-----
navtreeindex4.js | 284 +++++------
navtreeindex5.js | 9 +-
search/all_10.js | 202 ++++----
search/all_11.js | 42 +-
search/all_12.js | 204 ++++----
search/all_13.js | 445 +++++++++---------
search/all_14.js | 188 ++++----
search/all_15.js | 122 ++---
search/all_16.js | 78 +--
search/all_17.js | 158 +++----
search/all_18.js | 12 +-
search/all_19.js | 8 +-
search/all_1a.js | 4 +-
search/all_1b.js | 182 +++----
search/all_4.js | 3 +-
search/all_5.js | 130 ++---
search/all_6.js | 240 +++++-----
search/all_7.js | 144 +++---
search/all_8.js | 64 +--
search/all_9.js | 366 +++++++-------
search/all_a.js | 14 +-
search/all_b.js | 28 +-
search/all_c.js | 140 +++---
search/all_d.js | 222 ++++-----
search/all_e.js | 128 ++---
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 | 88 ++--
search/classes_13.js | 44 +-
search/classes_14.js | 64 +--
search/classes_15.js | 28 +-
search/classes_16.js | 62 +--
search/classes_17.js | 4 +-
search/classes_18.js | 2 +-
search/classes_2.js | 70 +--
search/classes_3.js | 30 +-
search/classes_4.js | 34 +-
search/classes_5.js | 34 +-
search/classes_6.js | 12 +-
search/classes_7.js | 14 +-
search/classes_8.js | 196 ++++----
search/classes_9.js | 2 +-
search/classes_a.js | 4 +-
search/classes_b.js | 32 +-
search/classes_c.js | 74 +--
search/classes_d.js | 34 +-
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 | 6 +-
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 | 29 +-
search/files_13.js | 8 +-
search/files_14.js | 4 +-
search/files_15.js | 2 +-
search/files_2.js | 14 +-
search/files_3.js | 16 +-
search/files_4.js | 6 +-
search/files_5.js | 18 +-
search/files_6.js | 14 +-
search/files_7.js | 10 +-
search/files_8.js | 8 +-
search/files_9.js | 4 +-
search/files_a.js | 8 +-
search/files_b.js | 22 +-
search/files_c.js | 12 +-
search/files_d.js | 8 +-
search/files_e.js | 8 +-
search/files_f.js | 18 +-
search/functions_0.js | 4 +-
search/functions_1.js | 160 +++----
search/functions_10.js | 154 +++---
search/functions_11.js | 16 +-
search/functions_12.js | 152 +++---
search/functions_13.js | 355 +++++++-------
search/functions_14.js | 150 +++---
search/functions_15.js | 80 ++--
search/functions_16.js | 44 +-
search/functions_17.js | 146 +++---
search/functions_18.js | 6 +-
search/functions_19.js | 2 +-
search/functions_1a.js | 2 +-
search/functions_1b.js | 182 +++----
search/functions_2.js | 114 ++---
search/functions_3.js | 146 +++---
search/functions_4.js | 162 +++----
search/functions_5.js | 106 ++---
search/functions_6.js | 204 ++++----
search/functions_7.js | 122 ++---
search/functions_8.js | 34 +-
search/functions_9.js | 180 +++----
search/functions_a.js | 6 +-
search/functions_b.js | 16 +-
search/functions_c.js | 92 ++--
search/functions_d.js | 160 +++----
search/functions_e.js | 98 ++--
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 | 4 +-
search/namespaces_2.js | 5 +-
search/namespaces_3.js | 4 +-
search/namespaces_4.js | 2 +-
search/namespaces_5.js | 2 +-
search/namespaces_6.js | 2 +-
search/namespaces_7.js | 2 +-
search/namespaces_8.js | 2 +-
search/namespaces_9.js | 4 +-
search/namespaces_a.js | 21 +-
search/namespaces_b.js | 2 +-
search/namespaces_c.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/typedefs_0.js | 2 +-
search/typedefs_1.js | 2 +-
search/typedefs_2.js | 2 +-
search/variables_0.js | 4 +-
search/variables_1.js | 6 +-
search/variables_10.js | 4 +-
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 | 6 +-
search/variables_6.js | 10 +-
search/variables_7.js | 2 +-
search/variables_8.js | 2 +-
search/variables_9.js | 2 +-
search/variables_a.js | 10 +-
search/variables_b.js | 6 +-
search/variables_c.js | 8 +-
search/variables_d.js | 4 +-
search/variables_e.js | 2 +-
search/variables_f.js | 12 +-
188 files changed, 5793 insertions(+), 4840 deletions(-)
create mode 100644 d3/deb/namespaceshortest__common__supersequence.html
create mode 100644 d5/d48/shortest__common__supersequence_8cpp__incl.map
create mode 100644 d5/d48/shortest__common__supersequence_8cpp__incl.md5
create mode 100644 d5/d48/shortest__common__supersequence_8cpp__incl.svg
create mode 100644 d7/d65/shortest__common__supersequence_8cpp.html
create mode 100644 d7/d65/shortest__common__supersequence_8cpp.js
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.map
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.md5
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.svg
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5
create mode 100644 d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg
create mode 100644 dd/d24/namespacedynamic__programming.html
create mode 100644 dir_8a20dd5bfd5341a725342bf72b6b686f.js
diff --git a/d3/deb/namespaceshortest__common__supersequence.html b/d3/deb/namespaceshortest__common__supersequence.html
new file mode 100644
index 000000000..49b09f8e0
--- /dev/null
+++ b/d3/deb/namespaceshortest__common__supersequence.html
@@ -0,0 +1,114 @@
+
+
+
+
diff --git a/d7/d65/shortest__common__supersequence_8cpp.html b/d7/d65/shortest__common__supersequence_8cpp.html
new file mode 100644
index 000000000..b7a808499
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp.html
@@ -0,0 +1,388 @@
+
+
+
+
+
+
+
+Algorithms_in_C++: dynamic_programming/shortest_common_supersequence.cpp File Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Algorithms_in_C++
+ 1.0.0
+
+ Set of algorithms implemented in C++.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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).
+More...
+
#include <iostream>
+#include <string>
+#include <vector>
+#include <algorithm>
+#include <cassert>
+
+
+
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).
+
The idea is to use lookup table method as used in LCS. For example: example 1:- X: 'ABCXYZ', Y: 'ABZ' then Z will be 'ABCXYZ' (y is not continuous but in order)
+
For example: example 2:- X: 'AGGTAB', Y: 'GXTXAYB' then Z will be 'AGGXTXAYB'
Author Ridhish Jain
+
See also more on SCS
+
+related problem Leetcode
+
+
+
◆ main()
+
+
+
+
+
+ int main
+ (
+ )
+
+
+
+
+
Main function (driver code)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
◆ scs()
+
+
+
+
Function implementing Shortest Common Super-Sequence algorithm using look-up table method.
Parameters
+
+ str1 first string 'X'
+ str2 second string 'Y'
+
+
+
+
Returns string 'Z', superSequence of X and Y
+
+
+
+
+
+
+
+
49 else if (str1.
empty ()) {
+
+
+
52 else if (str2.
empty ()) {
+
+
+
+
+
+
+
59 for (
int i=1; i <= str1.
length (); i++) {
+
60 for (
int j=1; j <= str2.
length (); j++) {
+
61 if (str1[i-1] == str2[j-1]) {
+
62 lookup[i][j] = lookup[i-1][j-1] + 1;
+
+
+
65 lookup[i][j] =
std::max (lookup[i-1][j], lookup[i][j-1]);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
81 if (str1[i-1] == str2[j-1]) {
+
+
+
+
+
+
+
88 if (lookup[i-1][j] > lookup[i][j-1]) {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
◆ test()
+
+
+
+
+
+
+
+
+ static void test
+ (
+ )
+
+
+
+
+
+static
+
+
+
+
Test Function
Returns void
+
+
+
+
+
+
129 {
"AGGTAB" ,
"GXTXAYB" },
+
+
+
+
+
+
+
136 for (
auto & scsString : scsStrings) {
+
+
+
139 scsString[0], scsString[1]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
155 for (
int i=0; i < scsStrings.size(); i++) {
+
156 assert(expectedOutput[i] == calculatedOutput[i]);
+
+
+
159 std::cout <<
"All tests passed successfully!\n" ;
+
+
+
+
+
+
+
+static void test()
Definition: shortest_common_supersequence.cpp:124
+
+
+
+ll ans(ll n)
Definition: matrix_exponentiation.cpp:91
+std::string scs(const std::string &str1, const std::string &str2)
Definition: shortest_common_supersequence.cpp:42
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/d7/d65/shortest__common__supersequence_8cpp.js b/d7/d65/shortest__common__supersequence_8cpp.js
new file mode 100644
index 000000000..33ba5a46f
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp.js
@@ -0,0 +1,6 @@
+var shortest__common__supersequence_8cpp =
+[
+ [ "main", "d7/d65/shortest__common__supersequence_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
+ [ "scs", "d7/d65/shortest__common__supersequence_8cpp.html#ad2ee8d7e67da9f6eb85146b08dad95e6", null ],
+ [ "test", "d7/d65/shortest__common__supersequence_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
+];
\ No newline at end of file
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.map b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.map
new file mode 100644
index 000000000..6913f2cbb
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.map
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.md5 b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.md5
new file mode 100644
index 000000000..d7ca30718
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.md5
@@ -0,0 +1 @@
+b4c7d49b3bc64c1ca692a24ced9df2fc
\ No newline at end of file
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.svg b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.svg
new file mode 100644
index 000000000..8f409c783
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ad2ee8d7e67da9f6eb85146b08dad95e6_cgraph.svg
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+dynamic_programming::shortest_common_supersequence::scs
+
+
+
+Node1
+
+
+dynamic_programming
+::shortest_common_supersequence::scs
+
+
+
+
+
+Node1->Node1
+
+
+
+
+
+Node2
+
+
+std::string::begin
+
+
+
+
+
+Node1->Node2
+
+
+
+
+
+Node3
+
+
+std::string::empty
+
+
+
+
+
+Node1->Node3
+
+
+
+
+
+Node4
+
+
+std::string::end
+
+
+
+
+
+Node1->Node4
+
+
+
+
+
+Node5
+
+
+std::string::length
+
+
+
+
+
+Node1->Node5
+
+
+
+
+
+Node6
+
+
+std::max
+
+
+
+
+
+Node1->Node6
+
+
+
+
+
+Node7
+
+
+std::string::push_back
+
+
+
+
+
+Node1->Node7
+
+
+
+
+
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map
new file mode 100644
index 000000000..7f3e1aade
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5
new file mode 100644
index 000000000..45e630a6c
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5
@@ -0,0 +1 @@
+aece6f73ec351bc85257dc5f7251476d
\ No newline at end of file
diff --git a/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg
new file mode 100644
index 000000000..f17d66b26
--- /dev/null
+++ b/d7/d65/shortest__common__supersequence_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+main
+
+
+
+Node1
+
+
+main
+
+
+
+
+
+Node2
+
+
+ans
+
+
+
+
+
+Node1->Node2
+
+
+
+
+
+Node3
+
+
+test
+
+
+
+
+
+Node1->Node3
+
+
+
+
+
diff --git a/dd/d24/namespacedynamic__programming.html b/dd/d24/namespacedynamic__programming.html
new file mode 100644
index 000000000..d237f24ea
--- /dev/null
+++ b/dd/d24/namespacedynamic__programming.html
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+Algorithms_in_C++: dynamic_programming Namespace Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Algorithms_in_C++
+ 1.0.0
+
+ Set of algorithms implemented in C++.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Dynamic Programming algorithms.
+More...
+
+
Dynamic Programming algorithms.
+
+
+
+
+
+
diff --git a/dir_8a20dd5bfd5341a725342bf72b6b686f.html b/dir_8a20dd5bfd5341a725342bf72b6b686f.html
index dfabf0fdb..50b00aef8 100644
--- a/dir_8a20dd5bfd5341a725342bf72b6b686f.html
+++ b/dir_8a20dd5bfd5341a725342bf72b6b686f.html
@@ -94,6 +94,13 @@ $(document).ready(function(){initNavTree('dir_8a20dd5bfd5341a725342bf72b6b686f.h
dynamic_programming Directory Reference
+
+
+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).
+
+
diff --git a/dir_8a20dd5bfd5341a725342bf72b6b686f.js b/dir_8a20dd5bfd5341a725342bf72b6b686f.js
new file mode 100644
index 000000000..5d70b07ec
--- /dev/null
+++ b/dir_8a20dd5bfd5341a725342bf72b6b686f.js
@@ -0,0 +1,4 @@
+var dir_8a20dd5bfd5341a725342bf72b6b686f =
+[
+ [ "shortest_common_supersequence.cpp", "d7/d65/shortest__common__supersequence_8cpp.html", "d7/d65/shortest__common__supersequence_8cpp" ]
+];
\ No newline at end of file
diff --git a/files.html b/files.html
index 424a00a4d..5c7df7bd6 100644
--- a/files.html
+++ b/files.html
@@ -121,130 +121,132 @@ $(document).ready(function(){initNavTree('files.html',''); initResizable(); });
skip_list.cpp Data structure for fast searching and insertion in \(O(\log n)\) time
stack.h This class specifies the basic operation on a stack as a linked list
trie_modern.cpp A basic implementation of trie class to store only lower-case strings
- ► geometry
- jarvis_algorithm.cpp Implementation of Jarvis’s algorithm
- line_segment_intersection.cpp Check whether two line segments intersect each other or not
- ► graph
- breadth_first_search.cpp Breadth First Search Algorithm (Breadth First Search)
- connected_components.cpp Graph Connected Components (Connected Components)
- dijkstra.cpp Graph Dijkstras Shortest Path Algorithm (Dijkstra's Shortest Path)
- hamiltons_cycle.cpp The implementation of Hamilton's cycle dynamic solution for vertices number less than 20
- is_graph_bipartite.cpp Algorithm to check whether a graph is bipartite
- lowest_common_ancestor.cpp Data structure for finding the lowest common ancestor of two vertices in a rooted tree using binary lifting
- ► graphics
- spirograph.cpp Implementation of Spirograph
- ► hashing
- chaining.cpp Implementation of hash chains
- double_hash_hash_table.cpp Storage mechanism using double-hashed keys
- linear_probing_hash_table.cpp Storage mechanism using linear probing hash keys
- quadratic_probing_hash_table.cpp Storage mechanism using quadratic probing hash keys
- ► machine_learning
- adaline_learning.cpp Adaptive Linear Neuron (ADALINE) implementation
- kohonen_som_topology.cpp Kohonen self organizing map (topological map)
- kohonen_som_trace.cpp Kohonen self organizing map (data tracing)
- ordinary_least_squares_regressor.cpp Linear regression example using Ordinary least squares
- ► math
- armstrong_number.cpp Program to check if a number is an Armstrong/Narcissistic number in decimal system
- binary_exponent.cpp C++ Program to find Binary Exponent Iteratively and Recursively
- check_amicable_pair.cpp A C++ Program to check whether a pair of number is amicable pair or not
- check_prime.cpp Reduced all possibilities of a number which cannot be prime. Eg: No even number, except 2 can be a prime number, hence we will increment our loop with i+2 jumping on all odd numbers only. If number is <= 1 or if it is even except 2, break the loop and return false telling number is not prime
- complex_numbers.cpp An implementation of Complex Number as Objects
- double_factorial.cpp Compute double factorial : \(n!!\)
- eulers_totient_function.cpp C++ Program to find Euler's Totient function
- extended_euclid_algorithm.cpp GCD using extended Euclid's algorithm
- factorial.cpp C++ program to find factorial of given number
- fast_power.cpp Faster computation for \(a^b\)
- fibonacci.cpp Generate fibonacci sequence
- fibonacci_fast.cpp Faster computation of Fibonacci series
- fibonacci_large.cpp Computes N^th Fibonacci number given as input argument. Uses custom build arbitrary integers library to perform additions and other operations
- gcd_iterative_euclidean.cpp Compute the greatest common denominator of two integers using iterative form of Euclidean algorithm
- gcd_of_n_numbers.cpp This program aims at calculating the GCD of n numbers by division method
- gcd_recursive_euclidean.cpp Compute the greatest common denominator of two integers using recursive form of Euclidean algorithm
- large_factorial.cpp Compute factorial of any arbitratily large number/
- large_number.h Library to perform arithmatic operations on arbitrarily large numbers
- least_common_multiple.cpp
- miller_rabin.cpp
- modular_inverse_fermat_little_theorem.cpp C++ Program to find the modular inverse using Fermat's Little Theorem
- number_of_positive_divisors.cpp C++ Program to calculate the number of positive divisors
- power_for_huge_numbers.cpp Compute powers of large numbers
- prime_factorization.cpp Prime factorization of positive integers
- prime_numbers.cpp Get list of prime numbers
- primes_up_to_billion.cpp Compute prime numbers upto 1 billion
- realtime_stats.cpp Compute statistics for data entered in rreal-time
- sieve_of_eratosthenes.cpp Get list of prime numbers using Sieve of Eratosthenes
- sqrt_double.cpp Calculate the square root of any positive real number in \(O(\log N)\) time, with precision fixed using bisection method of root-finding
- string_fibonacci.cpp This Programme returns the Nth fibonacci as a string
- sum_of_digits.cpp A C++ Program to find the Sum of Digits of input integer
- ► numerical_methods
- bisection_method.cpp Solve the equation \(f(x)=0\) using bisection method
- brent_method_extrema.cpp Find real extrema of a univariate real function in a given interval using Brent's method
- durand_kerner_roots.cpp Compute all possible approximate roots of any given polynomial using Durand Kerner algorithm
- false_position.cpp Solve the equation \(f(x)=0\) using false position method , also known as the Secant method
- gaussian_elimination.cpp Gaussian elimination method
- golden_search_extrema.cpp Find extrema of a univariate real function in a given interval using golden section search algorithm
- lu_decompose.cpp LU decomposition of a square matrix
- lu_decomposition.h Functions associated with LU Decomposition of a square matrix
- newton_raphson_method.cpp Solve the equation \(f(x)=0\) using Newton-Raphson method for both real and complex solutions
- ode_forward_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using forward Euler method
- ode_midpoint_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using midpoint Euler method
- ode_semi_implicit_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using semi implicit Euler method
- qr_decompose.h Library functions to compute QR decomposition of a given matrix
- qr_decomposition.cpp Program to compute the QR decomposition of a given matrix
- qr_eigen_values.cpp Compute real eigen values and eigen vectors of a symmetric matrix using QR decomposition method
- successive_approximation.cpp Method of successive approximations using fixed-point iteration method
- ► others
- buzz_number.cpp A buzz number is a number that is either divisible by 7 or has last digit as 7
- decimal_to_binary.cpp Function to convert decimal number to binary representation
- decimal_to_hexadecimal.cpp Convert decimal number to hexadecimal representation
- decimal_to_roman_numeral.cpp This Programme Converts a given decimal number in the range [0,4000) to both Lower case and Upper case Roman Numeral
- fast_interger_input.cpp Read integers from stdin continuously as they are entered without waiting for the \n character
- happy_number.cpp A happy number is a number whose sum of digits is calculated until the sum is a single digit, and this sum turns out to be 1
- matrix_exponentiation.cpp Matrix Exponentiation
- palindrome_of_number.cpp Check if a number is palindrome or not
- paranthesis_matching.cpp Perform paranthesis matching
- pascal_triangle.cpp Pascal's triangle implementation
- primality_test.cpp Primality test implementation
- smallest_circle.cpp Get centre and radius of the smallest circle that circumscribes given set of points
- sparse_matrix.cpp
- spiral_print.cpp Print the elements of a matrix traversing it spirally
- stairs_pattern.cpp This program is use to print the following pattern
- tower_of_hanoi.cpp Solve the Tower of Hanoi problem
- vector_important_functions.cpp A C++ program to demonstrate working of std::sort() , std::reverse()
- ► probability
- addition_rule.cpp Addition rule of probabilities
- bayes_theorem.cpp Bayes' theorem
- binomial_dist.cpp Binomial distribution example
- poisson_dist.cpp Poisson statistics
- ► range_queries
- fenwick_tree.cpp Fenwick tree
- ► search
- binary_search.cpp Binary search algorithm
- exponential_search.cpp Exponential search algorithm
- fibonacci_search.cpp Fibonacci search algorithm
- hash_search.cpp Hash Search Algorithm - Best Time Complexity Ω(1)
- interpolation_search.cpp Interpolation search algorithm
- interpolation_search2.cpp Interpolation search algorithm
- jump_search.cpp C++ program to implement Jump Search
- linear_search.cpp Linear search algorithm
- median_search.cpp Median search algorithm
- ternary_search.cpp Ternary search algorithm
- text_search.cpp Search for words in a long textual paragraph
- ► sorting
- bogo_sort.cpp Implementation of Bogosort algorithm
- bubble_sort.cpp Bubble sort algorithm
- comb_sort.cpp Comb Sort Algorithm (Comb Sort)
- gnome_sort.cpp Implementation of gnome sort algorithm
- heap_sort.cpp Heap Sort Algorithm (heap sort) implementation
- insertion_sort.cpp Insertion Sort Algorithm (Insertion Sort)
- merge_sort.cpp Merege Sort Algorithm (MEREGE SORT) implementation
- non_recursive_merge_sort.cpp
- quick_sort.cpp Quick sort algorithm
- quick_sort_3.cpp Implementation Details
- shell_sort2.cpp Shell sort algorithm
- ► strings
- brute_force_string_searching.cpp String pattern search - brute force
- knuth_morris_pratt.cpp The Knuth-Morris-Pratt Algorithm for finding a pattern within a piece of text with complexity O(n + m)
- rabin_karp.cpp The Rabin-Karp Algorithm for finding a pattern within a piece of text with complexity O(n + m)
+ ► dynamic_programming
+ 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)
+ ► geometry
+ jarvis_algorithm.cpp Implementation of Jarvis’s algorithm
+ line_segment_intersection.cpp Check whether two line segments intersect each other or not
+ ► graph
+ breadth_first_search.cpp Breadth First Search Algorithm (Breadth First Search)
+ connected_components.cpp Graph Connected Components (Connected Components)
+ dijkstra.cpp Graph Dijkstras Shortest Path Algorithm (Dijkstra's Shortest Path)
+ hamiltons_cycle.cpp The implementation of Hamilton's cycle dynamic solution for vertices number less than 20
+ is_graph_bipartite.cpp Algorithm to check whether a graph is bipartite
+ lowest_common_ancestor.cpp Data structure for finding the lowest common ancestor of two vertices in a rooted tree using binary lifting
+ ► graphics
+ spirograph.cpp Implementation of Spirograph
+ ► hashing
+ chaining.cpp Implementation of hash chains
+ double_hash_hash_table.cpp Storage mechanism using double-hashed keys
+ linear_probing_hash_table.cpp Storage mechanism using linear probing hash keys
+ quadratic_probing_hash_table.cpp Storage mechanism using quadratic probing hash keys
+ ► machine_learning
+ adaline_learning.cpp Adaptive Linear Neuron (ADALINE) implementation
+ kohonen_som_topology.cpp Kohonen self organizing map (topological map)
+ kohonen_som_trace.cpp Kohonen self organizing map (data tracing)
+ ordinary_least_squares_regressor.cpp Linear regression example using Ordinary least squares
+ ► math
+ armstrong_number.cpp Program to check if a number is an Armstrong/Narcissistic number in decimal system
+ binary_exponent.cpp C++ Program to find Binary Exponent Iteratively and Recursively
+ check_amicable_pair.cpp A C++ Program to check whether a pair of number is amicable pair or not
+ check_prime.cpp Reduced all possibilities of a number which cannot be prime. Eg: No even number, except 2 can be a prime number, hence we will increment our loop with i+2 jumping on all odd numbers only. If number is <= 1 or if it is even except 2, break the loop and return false telling number is not prime
+ complex_numbers.cpp An implementation of Complex Number as Objects
+ double_factorial.cpp Compute double factorial : \(n!!\)
+ eulers_totient_function.cpp C++ Program to find Euler's Totient function
+ extended_euclid_algorithm.cpp GCD using extended Euclid's algorithm
+ factorial.cpp C++ program to find factorial of given number
+ fast_power.cpp Faster computation for \(a^b\)
+ fibonacci.cpp Generate fibonacci sequence
+ fibonacci_fast.cpp Faster computation of Fibonacci series
+ fibonacci_large.cpp Computes N^th Fibonacci number given as input argument. Uses custom build arbitrary integers library to perform additions and other operations
+ gcd_iterative_euclidean.cpp Compute the greatest common denominator of two integers using iterative form of Euclidean algorithm
+ gcd_of_n_numbers.cpp This program aims at calculating the GCD of n numbers by division method
+ gcd_recursive_euclidean.cpp Compute the greatest common denominator of two integers using recursive form of Euclidean algorithm
+ large_factorial.cpp Compute factorial of any arbitratily large number/
+ large_number.h Library to perform arithmatic operations on arbitrarily large numbers
+ least_common_multiple.cpp
+ miller_rabin.cpp
+ modular_inverse_fermat_little_theorem.cpp C++ Program to find the modular inverse using Fermat's Little Theorem
+ number_of_positive_divisors.cpp C++ Program to calculate the number of positive divisors
+ power_for_huge_numbers.cpp Compute powers of large numbers
+ prime_factorization.cpp Prime factorization of positive integers
+ prime_numbers.cpp Get list of prime numbers
+ primes_up_to_billion.cpp Compute prime numbers upto 1 billion
+ realtime_stats.cpp Compute statistics for data entered in rreal-time
+ sieve_of_eratosthenes.cpp Get list of prime numbers using Sieve of Eratosthenes
+ sqrt_double.cpp Calculate the square root of any positive real number in \(O(\log N)\) time, with precision fixed using bisection method of root-finding
+ string_fibonacci.cpp This Programme returns the Nth fibonacci as a string
+ sum_of_digits.cpp A C++ Program to find the Sum of Digits of input integer
+ ► numerical_methods
+ bisection_method.cpp Solve the equation \(f(x)=0\) using bisection method
+ brent_method_extrema.cpp Find real extrema of a univariate real function in a given interval using Brent's method
+ durand_kerner_roots.cpp Compute all possible approximate roots of any given polynomial using Durand Kerner algorithm
+ false_position.cpp Solve the equation \(f(x)=0\) using false position method , also known as the Secant method
+ gaussian_elimination.cpp Gaussian elimination method
+ golden_search_extrema.cpp Find extrema of a univariate real function in a given interval using golden section search algorithm
+ lu_decompose.cpp LU decomposition of a square matrix
+ lu_decomposition.h Functions associated with LU Decomposition of a square matrix
+ newton_raphson_method.cpp Solve the equation \(f(x)=0\) using Newton-Raphson method for both real and complex solutions
+ ode_forward_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using forward Euler method
+ ode_midpoint_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using midpoint Euler method
+ ode_semi_implicit_euler.cpp Solve a multivariable first order ordinary differential equation (ODEs) using semi implicit Euler method
+ qr_decompose.h Library functions to compute QR decomposition of a given matrix
+ qr_decomposition.cpp Program to compute the QR decomposition of a given matrix
+ qr_eigen_values.cpp Compute real eigen values and eigen vectors of a symmetric matrix using QR decomposition method
+ successive_approximation.cpp Method of successive approximations using fixed-point iteration method
+ ► others
+ buzz_number.cpp A buzz number is a number that is either divisible by 7 or has last digit as 7
+ decimal_to_binary.cpp Function to convert decimal number to binary representation
+ decimal_to_hexadecimal.cpp Convert decimal number to hexadecimal representation
+ decimal_to_roman_numeral.cpp This Programme Converts a given decimal number in the range [0,4000) to both Lower case and Upper case Roman Numeral
+ fast_interger_input.cpp Read integers from stdin continuously as they are entered without waiting for the \n character
+ happy_number.cpp A happy number is a number whose sum of digits is calculated until the sum is a single digit, and this sum turns out to be 1
+ matrix_exponentiation.cpp Matrix Exponentiation
+ palindrome_of_number.cpp Check if a number is palindrome or not
+ paranthesis_matching.cpp Perform paranthesis matching
+ pascal_triangle.cpp Pascal's triangle implementation
+ primality_test.cpp Primality test implementation
+ smallest_circle.cpp Get centre and radius of the smallest circle that circumscribes given set of points
+ sparse_matrix.cpp
+ spiral_print.cpp Print the elements of a matrix traversing it spirally
+ stairs_pattern.cpp This program is use to print the following pattern
+ tower_of_hanoi.cpp Solve the Tower of Hanoi problem
+ vector_important_functions.cpp A C++ program to demonstrate working of std::sort() , std::reverse()
+ ► probability
+ addition_rule.cpp Addition rule of probabilities
+ bayes_theorem.cpp Bayes' theorem
+ binomial_dist.cpp Binomial distribution example
+ poisson_dist.cpp Poisson statistics
+ ► range_queries
+ fenwick_tree.cpp Fenwick tree
+ ► search
+ binary_search.cpp Binary search algorithm
+ exponential_search.cpp Exponential search algorithm
+ fibonacci_search.cpp Fibonacci search algorithm
+ hash_search.cpp Hash Search Algorithm - Best Time Complexity Ω(1)
+ interpolation_search.cpp Interpolation search algorithm
+ interpolation_search2.cpp Interpolation search algorithm
+ jump_search.cpp C++ program to implement Jump Search
+ linear_search.cpp Linear search algorithm
+ median_search.cpp Median search algorithm
+ ternary_search.cpp Ternary search algorithm
+ text_search.cpp Search for words in a long textual paragraph
+ ► sorting
+ bogo_sort.cpp Implementation of Bogosort algorithm
+ bubble_sort.cpp Bubble sort algorithm
+ comb_sort.cpp Comb Sort Algorithm (Comb Sort)
+ gnome_sort.cpp Implementation of gnome sort algorithm
+ heap_sort.cpp Heap Sort Algorithm (heap sort) implementation
+ insertion_sort.cpp Insertion Sort Algorithm (Insertion Sort)
+ merge_sort.cpp Merege Sort Algorithm (MEREGE SORT) implementation
+ non_recursive_merge_sort.cpp
+ quick_sort.cpp Quick sort algorithm
+ quick_sort_3.cpp Implementation Details
+ shell_sort2.cpp Shell sort algorithm
+ ► strings
+ brute_force_string_searching.cpp String pattern search - brute force
+ knuth_morris_pratt.cpp The Knuth-Morris-Pratt Algorithm for finding a pattern within a piece of text with complexity O(n + m)
+ rabin_karp.cpp The Rabin-Karp Algorithm for finding a pattern within a piece of text with complexity O(n + m)
diff --git a/files_dup.js b/files_dup.js
index b78ffc979..e8a73a323 100644
--- a/files_dup.js
+++ b/files_dup.js
@@ -3,6 +3,7 @@ var files_dup =
[ "backtracking", "dir_c11585dfcef32a26e29098facab6c144.html", "dir_c11585dfcef32a26e29098facab6c144" ],
[ "ciphers", "dir_4d6e05837bf820fb089a8a8cdf2f42b7.html", "dir_4d6e05837bf820fb089a8a8cdf2f42b7" ],
[ "data_structures", "dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html", "dir_2e746e9d06bf2d8ff842208bcc6ebcfc" ],
+ [ "dynamic_programming", "dir_8a20dd5bfd5341a725342bf72b6b686f.html", "dir_8a20dd5bfd5341a725342bf72b6b686f" ],
[ "geometry", "dir_e3380d2178455503f266746fb14246a5.html", "dir_e3380d2178455503f266746fb14246a5" ],
[ "graph", "dir_12552d7fa429bf94a2e32e5cf39f7e69.html", "dir_12552d7fa429bf94a2e32e5cf39f7e69" ],
[ "graphics", "dir_e79632891301b850df87e9c0030293fa.html", "dir_e79632891301b850df87e9c0030293fa" ],
diff --git a/globals_func_i.html b/globals_func_i.html
index 4203fa9e3..d5748cd0f 100644
--- a/globals_func_i.html
+++ b/globals_func_i.html
@@ -120,12 +120,12 @@ $(document).ready(function(){initNavTree('globals_func_i.html',''); initResizabl