Documentation for b30bdd30bf

This commit is contained in:
realstealthninja
2025-08-17 21:49:33 +00:00
parent 534053f7c4
commit 64028e7a13
42 changed files with 1091 additions and 161 deletions

View File

@@ -0,0 +1,291 @@
<!-- HTML header for doxygen 1.12.0-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TheAlgorithms/C++: graph/number_of_paths.cpp File Reference</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
window.MathJax = {
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/ams']
},
tex: {
macros: {},
packages: ['base','configmacros','ams']
}
};
</script>
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
<td id="projectalign">
<div id="projectname">TheAlgorithms/C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">All the algorithms implemented in C++</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('../../',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(function(){initNavTree('d2/d32/number__of__paths_8cpp.html','../../',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">number_of_paths.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Algorithm to count paths between two nodes in a directed graph using DFS.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;vector&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for number_of_paths.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="../../df/d20/number__of__paths_8cpp__incl.svg" width="336" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<p><a href="../../d2/d32/number__of__paths_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-namespaces" class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:graph" id="r_graph"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dce/namespacegraph.html">graph</a></td></tr>
<tr class="memdesc:df/dce/namespacegraph"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="../../dc/d61/classgraph_1_1_graph.html">Graph</a> Algorithms. <br /></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af99fccdd19e8f223e8749561589a762b" id="r_af99fccdd19e8f223e8749561589a762b"><td class="memItemLeft" align="right" valign="top">std::uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">graph::count_paths_dfs</a> (const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n, std::vector&lt; bool &gt; &amp;visited)</td></tr>
<tr class="memdesc:af99fccdd19e8f223e8749561589a762b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function to perform DFS and count the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> <br /></td></tr>
<tr class="memitem:a7c3adb1551bc527a7aa93f331b1c0987" id="r_a7c3adb1551bc527a7aa93f331b1c0987"><td class="memItemLeft" align="right" valign="top">std::uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a> (const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n)</td></tr>
<tr class="memdesc:a7c3adb1551bc527a7aa93f331b1c0987"><td class="mdescLeft">&#160;</td><td class="mdescRight">Counts the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> in a directed graph using Depth First Search (DFS) <br /></td></tr>
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d" id="r_aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Self-test implementations. <br /></td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Algorithm to count paths between two nodes in a directed graph using DFS. </p>
<p>This algorithm implements Depth First Search (DFS) to count the number of possible paths between two nodes in a directed graph. It is represented using an adjacency matrix. The algorithm recursively traverses the graph to find all paths from the source node <span class="tt">u</span> to the destination node <span class="tt">v</span>.</p>
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/adi776borate" target="_blank">Aditya Borate</a> </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Path_(graph_theory)">https://en.wikipedia.org/wiki/Path_(graph_theory)</a> </dd></dl>
<p class="definition">Definition in file <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html">number_of_paths.cpp</a>.</p>
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html#l00148">148</a> of file <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html">number_of_paths.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 148</span> {</div>
<div class="line"><span class="lineno"> 149</span> <a class="code hl_function" href="#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// Run self-test implementations</span></div>
<div class="line"><span class="lineno"> 150</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 151</span>}</div>
<div class="ttc" id="anumber__of__paths_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d32/number__of__paths_8cpp_source.html#l00086">number_of_paths.cpp:86</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aa8dca7b867074164d5f45b0f3851269d" name="aa8dca7b867074164d5f45b0f3851269d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8dca7b867074164d5f45b0f3851269d">&#9670;&#160;</a></span>test()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void test </td>
<td>(</td>
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Self-test implementations. </p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html#l00086">86</a> of file <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html">number_of_paths.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 86</span> {</div>
<div class="line"><span class="lineno"> 87</span> <span class="comment">// Test case 1: Simple directed graph with multiple paths</span></div>
<div class="line"><span class="lineno"> 88</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph1 = {</div>
<div class="line"><span class="lineno"> 89</span> {0, 1, 0, 1, 0}, </div>
<div class="line"><span class="lineno"> 90</span> {0, 0, 1, 0, 1}, </div>
<div class="line"><span class="lineno"> 91</span> {0, 0, 0, 0, 1}, </div>
<div class="line"><span class="lineno"> 92</span> {0, 0, 1, 0, 0}, </div>
<div class="line"><span class="lineno"> 93</span> {0, 0, 0, 0, 0} </div>
<div class="line"><span class="lineno"> 94</span> };</div>
<div class="line"><span class="lineno"> 95</span> std::uint32_t n1 = 5, u1 = 0, v1 = 4;</div>
<div class="line"><span class="lineno"> 96</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph1, u1, v1, n1) == 3); <span class="comment">// There are 3 paths from node 0 to 4</span></div>
<div class="line"><span class="lineno"> 97</span> </div>
<div class="line"><span class="lineno"> 98</span> <span class="comment">// Test case 2: No possible path (disconnected graph)</span></div>
<div class="line"><span class="lineno"> 99</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph2 = {</div>
<div class="line"><span class="lineno"> 100</span> {0, 1, 0, 0, 0}, </div>
<div class="line"><span class="lineno"> 101</span> {0, 0, 0, 0, 0}, </div>
<div class="line"><span class="lineno"> 102</span> {0, 0, 0, 0, 1}, </div>
<div class="line"><span class="lineno"> 103</span> {0, 0, 1, 0, 0}, </div>
<div class="line"><span class="lineno"> 104</span> {0, 0, 0, 0, 0} </div>
<div class="line"><span class="lineno"> 105</span> };</div>
<div class="line"><span class="lineno"> 106</span> std::uint32_t n2 = 5, u2 = 0, v2 = 4;</div>
<div class="line"><span class="lineno"> 107</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph2, u2, v2, n2) == 0); <span class="comment">// No path from node 0 to 4</span></div>
<div class="line"><span class="lineno"> 108</span> </div>
<div class="line"><span class="lineno"> 109</span> <span class="comment">// Test case 3: Cyclic graph with multiple paths</span></div>
<div class="line"><span class="lineno"> 110</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph3 = {</div>
<div class="line"><span class="lineno"> 111</span> {0, 1, 0, 0, 0}, </div>
<div class="line"><span class="lineno"> 112</span> {0, 0, 1, 1, 0}, </div>
<div class="line"><span class="lineno"> 113</span> {1, 0, 0, 0, 1}, </div>
<div class="line"><span class="lineno"> 114</span> {0, 0, 1, 0, 1}, </div>
<div class="line"><span class="lineno"> 115</span> {0, 0, 0, 0, 0} </div>
<div class="line"><span class="lineno"> 116</span> };</div>
<div class="line"><span class="lineno"> 117</span> std::uint32_t n3 = 5, u3 = 0, v3 = 4;</div>
<div class="line"><span class="lineno"> 118</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph3, u3, v3, n3) == 3); <span class="comment">// There are 3 paths from node 0 to 4</span></div>
<div class="line"><span class="lineno"> 119</span> </div>
<div class="line"><span class="lineno"> 120</span> <span class="comment">// Test case 4: Single node graph (self-loop)</span></div>
<div class="line"><span class="lineno"> 121</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph4 = {</div>
<div class="line"><span class="lineno"> 122</span> {0}</div>
<div class="line"><span class="lineno"> 123</span> };</div>
<div class="line"><span class="lineno"> 124</span> std::uint32_t n4 = 1, u4 = 0, v4 = 0;</div>
<div class="line"><span class="lineno"> 125</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph4, u4, v4, n4) == 1); <span class="comment">// There is self-loop, so 1 path from node 0 to 0</span></div>
<div class="line"><span class="lineno"> 126</span> </div>
<div class="line"><span class="lineno"> 127</span> <span class="comment">// Test case 5: Empty graph (no nodes, no paths)</span></div>
<div class="line"><span class="lineno"> 128</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph5 = {{}};</div>
<div class="line"><span class="lineno"> 129</span> <span class="keywordtype">int</span> n5 = 0, u5 = 0, v5 = 0;</div>
<div class="line"><span class="lineno"> 130</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph5, u5, v5, n5) == 0); <span class="comment">// There are no paths in an empty graph</span></div>
<div class="line"><span class="lineno"> 131</span> </div>
<div class="line"><span class="lineno"> 132</span> <span class="comment">// Test case 6: Invalid nodes (out of bounds)</span></div>
<div class="line"><span class="lineno"> 133</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph6 = {</div>
<div class="line"><span class="lineno"> 134</span> {0, 1, 0}, </div>
<div class="line"><span class="lineno"> 135</span> {0, 0, 1}, </div>
<div class="line"><span class="lineno"> 136</span> {0, 0, 0}</div>
<div class="line"><span class="lineno"> 137</span> };</div>
<div class="line"><span class="lineno"> 138</span> <span class="keywordtype">int</span> n6 = 3, u6 = 0, v6 = 5; <span class="comment">// Node `v` is out of bounds (n = 3, so valid indices are 0, 1, 2)</span></div>
<div class="line"><span class="lineno"> 139</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph6, u6, v6, n6) == 0); <span class="comment">// Should return 0 because `v = 5` is invalid</span></div>
<div class="line"><span class="lineno"> 140</span> </div>
<div class="line"><span class="lineno"> 141</span> std::cout &lt;&lt; <span class="stringliteral">&quot;All tests have successfully passed!\n&quot;</span>;</div>
<div class="line"><span class="lineno"> 142</span>}</div>
<div class="ttc" id="anamespacegraph_html_a7c3adb1551bc527a7aa93f331b1c0987"><div class="ttname"><a href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a></div><div class="ttdeci">std::uint32_t count_paths(const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n)</div><div class="ttdoc">Counts the number of paths from node u to node v in a directed graph using Depth First Search (DFS)</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d32/number__of__paths_8cpp_source.html#l00067">number_of_paths.cpp:67</a></div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a href="../../dir_12552d7fa429bf94a2e32e5cf39f7e69.html">graph</a></li><li class="navelem"><a href="../../d2/d32/number__of__paths_8cpp.html">number_of_paths.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
</ul>
</div>
</body>
</html>

7
d2/d32/number__of__paths_8cpp.js vendored Normal file
View File

@@ -0,0 +1,7 @@
var number__of__paths_8cpp =
[
[ "graph::count_paths", "df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987", null ],
[ "graph::count_paths_dfs", "df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b", null ],
[ "main", "d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "test", "d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d", null ]
];

View File

@@ -0,0 +1,252 @@
<!-- HTML header for doxygen 1.12.0-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TheAlgorithms/C++: graph/number_of_paths.cpp Source File</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
<script type="text/javascript">
DoxygenAwesomeDarkModeToggle.init()
</script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
window.MathJax = {
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/ams']
},
tex: {
macros: {},
packages: ['base','configmacros','ams']
}
};
</script>
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
<td id="projectalign">
<div id="projectname">TheAlgorithms/C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">All the algorithms implemented in C++</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('../../',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(function(){initNavTree('d2/d32/number__of__paths_8cpp_source.html','../../',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">number_of_paths.cpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d2/d32/number__of__paths_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &lt;vector&gt;</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &lt;iostream&gt;</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &lt;cassert&gt;</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;cstdint&gt;</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/dce/namespacegraph.html">graph</a> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span></div>
<div class="foldopen" id="foldopen00034" data-start="{" data-end="}">
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b"> 34</a></span> std::uint32_t <a class="code hl_function" href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a>(<span class="keyword">const</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt;&amp; A, </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> std::uint32_t u, </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> std::uint32_t v, </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> std::uint32_t n, </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> std::vector&lt;bool&gt;&amp; visited) {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">if</span> (u == v) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span> 1; <span class="comment">// Base case: Reached the destination node</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> visited[u] = <span class="keyword">true</span>; <span class="comment">// Mark the current node as visited</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> std::uint32_t path_count = 0; <span class="comment">// Count of all paths from `u` to `v`</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">for</span> (std::uint32_t i = 0; i &lt; n; i++) {</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">if</span> (A[u][i] == 1 &amp;&amp; !visited[i]) { <span class="comment">// Check if there is an edge and the node is not visited</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> path_count += <a class="code hl_function" href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a>(A, i, v, n, visited); <span class="comment">// Recursively explore paths from `i` to `v`</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> }</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> visited[u] = <span class="keyword">false</span>; <span class="comment">// Unmark the current node as visited (backtracking)</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> path_count;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span></div>
<div class="foldopen" id="foldopen00067" data-start="{" data-end="}">
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987"> 67</a></span> std::uint32_t <a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">count_paths</a>(<span class="keyword">const</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt;&amp; A, </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> std::uint32_t u, </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> std::uint32_t v, </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> std::uint32_t n) {</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// Check for invalid nodes or empty graph</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">if</span> (u &gt;= n || v &gt;= n || A.empty() || A[0].empty()) {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> 0; <span class="comment">// No valid paths if graph is empty or nodes are out of bounds</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> std::vector&lt;bool&gt; visited(n, <span class="keyword">false</span>); <span class="comment">// Initialize a visited vector for tracking nodes</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a>(A, u, v, n, visited); <span class="comment">// Start DFS</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>} <span class="comment">// namespace graph</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span></div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d"> 86</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>() {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// Test case 1: Simple directed graph with multiple paths</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph1 = {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> {0, 1, 0, 1, 0}, </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> {0, 0, 1, 0, 1}, </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> {0, 0, 0, 0, 1}, </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> {0, 0, 1, 0, 0}, </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {0, 0, 0, 0, 0} </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> };</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> std::uint32_t n1 = 5, u1 = 0, v1 = 4;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph1, u1, v1, n1) == 3); <span class="comment">// There are 3 paths from node 0 to 4</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="comment">// Test case 2: No possible path (disconnected graph)</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph2 = {</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> {0, 1, 0, 0, 0}, </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> {0, 0, 0, 0, 0}, </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {0, 0, 0, 0, 1}, </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> {0, 0, 1, 0, 0}, </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> {0, 0, 0, 0, 0} </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> };</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> std::uint32_t n2 = 5, u2 = 0, v2 = 4;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph2, u2, v2, n2) == 0); <span class="comment">// No path from node 0 to 4</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="comment">// Test case 3: Cyclic graph with multiple paths</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph3 = {</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {0, 1, 0, 0, 0}, </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> {0, 0, 1, 1, 0}, </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> {1, 0, 0, 0, 1}, </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> {0, 0, 1, 0, 1}, </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> {0, 0, 0, 0, 0} </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> };</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> std::uint32_t n3 = 5, u3 = 0, v3 = 4;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph3, u3, v3, n3) == 3); <span class="comment">// There are 3 paths from node 0 to 4</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="comment">// Test case 4: Single node graph (self-loop)</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph4 = {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> {0}</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> };</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> std::uint32_t n4 = 1, u4 = 0, v4 = 0;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph4, u4, v4, n4) == 1); <span class="comment">// There is self-loop, so 1 path from node 0 to 0</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="comment">// Test case 5: Empty graph (no nodes, no paths)</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph5 = {{}};</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordtype">int</span> n5 = 0, u5 = 0, v5 = 0;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph5, u5, v5, n5) == 0); <span class="comment">// There are no paths in an empty graph</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="comment">// Test case 6: Invalid nodes (out of bounds)</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> std::vector&lt;std::vector&lt;std::uint32_t&gt;&gt; graph6 = {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> {0, 1, 0}, </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> {0, 0, 1}, </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> {0, 0, 0}</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> };</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">int</span> n6 = 3, u6 = 0, v6 = 5; <span class="comment">// Node `v` is out of bounds (n = 3, so valid indices are 0, 1, 2)</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> assert(<a class="code hl_function" href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a>(graph6, u6, v6, n6) == 0); <span class="comment">// Should return 0 because `v = 5` is invalid</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> std::cout &lt;&lt; <span class="stringliteral">&quot;All tests have successfully passed!\n&quot;</span>;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span>}</div>
</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span></div>
<div class="foldopen" id="foldopen00148" data-start="{" data-end="}">
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="../../d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 148</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_function" href="../../d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// Run self-test implementations</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>}</div>
</div>
<div class="ttc" id="anamespacegraph_html"><div class="ttname"><a href="../../df/dce/namespacegraph.html">graph</a></div><div class="ttdoc">Graph Algorithms.</div></div>
<div class="ttc" id="anamespacegraph_html_a7c3adb1551bc527a7aa93f331b1c0987"><div class="ttname"><a href="../../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph::count_paths</a></div><div class="ttdeci">std::uint32_t count_paths(const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n)</div><div class="ttdoc">Counts the number of paths from node u to node v in a directed graph using Depth First Search (DFS)</div><div class="ttdef"><b>Definition</b> <a href="#l00067">number_of_paths.cpp:67</a></div></div>
<div class="ttc" id="anamespacegraph_html_af99fccdd19e8f223e8749561589a762b"><div class="ttname"><a href="../../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">graph::count_paths_dfs</a></div><div class="ttdeci">std::uint32_t count_paths_dfs(const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n, std::vector&lt; bool &gt; &amp;visited)</div><div class="ttdoc">Helper function to perform DFS and count the number of paths from node u to node v</div><div class="ttdef"><b>Definition</b> <a href="#l00034">number_of_paths.cpp:34</a></div></div>
<div class="ttc" id="anumber__of__paths_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="../../d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> <a href="#l00086">number_of_paths.cpp:86</a></div></div>
<div class="ttc" id="anumber__of__paths_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdoc">Main function.</div><div class="ttdef"><b>Definition</b> <a href="#l00148">number_of_paths.cpp:148</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a href="../../dir_12552d7fa429bf94a2e32e5cf39f7e69.html">graph</a></li><li class="navelem"><a href="../../d2/d32/number__of__paths_8cpp.html">number_of_paths.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<map id="graph/number_of_paths.cpp" name="graph/number_of_paths.cpp">
<area shape="rect" id="Node000001" title="Algorithm to count paths between two nodes in a directed graph using DFS." alt="" coords="76,5,258,31"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,63,105"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="146,34,71,74,69,69,143,29"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="86,79,158,105"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="162,33,140,67,135,64,158,30"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="182,79,246,105"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="177,30,200,64,196,67,173,33"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="270,79,331,105"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="191,29,266,69,263,74,189,34"/>
</map>

View File

@@ -0,0 +1 @@
249df2cc955071ab2823b7bd52f29a09

View File

@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 13.1.2 (20250808.2320)
-->
<!-- Title: graph/number_of_paths.cpp Pages: 1 -->
<svg width="252pt" height="83pt"
viewBox="0.00 0.00 252.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 78.5)">
<title>graph/number_of_paths.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Algorithm to count paths between two nodes in a directed graph using DFS.">
<polygon fill="#999999" stroke="#666666" points="189.88,-74.5 53.12,-74.5 53.12,-55.25 189.88,-55.25 189.88,-74.5"/>
<text xml:space="preserve" text-anchor="middle" x="121.5" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">graph/number_of_paths.cpp</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="43,-19.25 0,-19.25 0,0 43,0 43,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="21.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.54,-54.84C89.24,-46.69 66.47,-34.57 48.64,-25.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.35,-22.02 39.88,-20.41 47.06,-28.2 50.35,-22.02"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="114.25,-19.25 60.75,-19.25 60.75,0 114.25,0 114.25,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="87.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M115.89,-55.08C111.38,-48.03 104.91,-37.9 99.29,-29.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.38,-27.43 94.05,-20.88 96.48,-31.2 102.38,-27.43"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="180.62,-19.25 132.38,-19.25 132.38,0 180.62,0 180.62,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="156.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M127.28,-55.08C131.91,-48.03 138.57,-37.9 144.37,-29.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="147.2,-31.15 149.76,-20.87 141.35,-27.31 147.2,-31.15"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="244.12,-19.25 198.88,-19.25 198.88,0 244.12,0 244.12,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="221.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M138.46,-54.84C153.76,-46.69 176.53,-34.57 194.36,-25.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="195.94,-28.2 203.12,-20.41 192.65,-22.02 195.94,-28.2"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 13.1.2 (20250808.2320)
-->
<!-- Title: graph/number_of_paths.cpp Pages: 1 -->
<svg width="252pt" height="83pt"
viewBox="0.00 0.00 252.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 78.5)">
<title>graph/number_of_paths.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Algorithm to count paths between two nodes in a directed graph using DFS.">
<polygon fill="#999999" stroke="#666666" points="189.88,-74.5 53.12,-74.5 53.12,-55.25 189.88,-55.25 189.88,-74.5"/>
<text xml:space="preserve" text-anchor="middle" x="121.5" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">graph/number_of_paths.cpp</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="43,-19.25 0,-19.25 0,0 43,0 43,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="21.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.54,-54.84C89.24,-46.69 66.47,-34.57 48.64,-25.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.35,-22.02 39.88,-20.41 47.06,-28.2 50.35,-22.02"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="114.25,-19.25 60.75,-19.25 60.75,0 114.25,0 114.25,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="87.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M115.89,-55.08C111.38,-48.03 104.91,-37.9 99.29,-29.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.38,-27.43 94.05,-20.88 96.48,-31.2 102.38,-27.43"/>
</a>
</g>
</g>
<!-- Node4 -->
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="180.62,-19.25 132.38,-19.25 132.38,0 180.62,0 180.62,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="156.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M127.28,-55.08C131.91,-48.03 138.57,-37.9 144.37,-29.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="147.2,-31.15 149.76,-20.87 141.35,-27.31 147.2,-31.15"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="244.12,-19.25 198.88,-19.25 198.88,0 244.12,0 244.12,-19.25"/>
<text xml:space="preserve" text-anchor="middle" x="221.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M138.46,-54.84C153.76,-46.69 176.53,-34.57 194.36,-25.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="195.94,-28.2 203.12,-20.41 192.65,-22.02 195.94,-28.2"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -150,6 +150,10 @@ Functions</h2></td></tr>
<tr class="memdesc:a8e1b547cd407c0774e63f0dc95cda9e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">function to check whether the passed graph is bipartite or not <br /></td></tr>
<tr class="memitem:a84b0551489c613a681cc83b34450da4b" id="r_a84b0551489c613a681cc83b34450da4b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a84b0551489c613a681cc83b34450da4b">isBipartite</a> (const std::vector&lt; std::vector&lt; int64_t &gt; &gt; &amp;graph)</td></tr>
<tr class="memdesc:a84b0551489c613a681cc83b34450da4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true if the given graph is bipartite else returns false <br /></td></tr>
<tr class="memitem:af99fccdd19e8f223e8749561589a762b" id="r_af99fccdd19e8f223e8749561589a762b"><td class="memItemLeft" align="right" valign="top">std::uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a> (const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n, std::vector&lt; bool &gt; &amp;visited)</td></tr>
<tr class="memdesc:af99fccdd19e8f223e8749561589a762b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function to perform DFS and count the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> <br /></td></tr>
<tr class="memitem:a7c3adb1551bc527a7aa93f331b1c0987" id="r_a7c3adb1551bc527a7aa93f331b1c0987"><td class="memItemLeft" align="right" valign="top">std::uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7c3adb1551bc527a7aa93f331b1c0987">count_paths</a> (const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n)</td></tr>
<tr class="memdesc:a7c3adb1551bc527a7aa93f331b1c0987"><td class="mdescLeft">&#160;</td><td class="mdescRight">Counts the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> in a directed graph using Depth First Search (DFS) <br /></td></tr>
<tr class="memitem:ab7706341d006e20d1ae58274187a3346" id="r_ab7706341d006e20d1ae58274187a3346"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab7706341d006e20d1ae58274187a3346">TravellingSalesmanProblem</a> (std::vector&lt; std::vector&lt; uint32_t &gt; &gt; *cities, int32_t src, uint32_t V)</td></tr>
<tr class="memdesc:ab7706341d006e20d1ae58274187a3346"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function calculates the minimum path distance that will cover all the cities starting from the source. <br /></td></tr>
</table>
@@ -164,6 +168,7 @@ Functions</h2></td></tr>
<p>A bipartite graph is the one whose nodes can be divided into two disjoint sets in such a way that the nodes in a set are not connected to each other at all, i.e. no intra-set connections. The only connections that exist are that of inter-set, i.e. the nodes from one set are connected to a subset of nodes in the other set. In this implementation, using a graph in the form of adjacency list, check whether the given graph is a bipartite or not.</p>
<p>References used: <a href="https://www.geeksforgeeks.org/bipartite-graph/" target="_blank">GeeksForGeeks</a> </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/tushar2407" target="_blank">tushar2407</a> for assert for IO operations for queue data structure for vector data structure</dd></dl>
<p>Graphical algorithms</p>
<p>for std::vector for IO operations for assert for fixed-size integer types (e.g., std::uint32_t)</p>
<p>for std::min for IO operations for limits of integral types for std::vector</p>
<p><a class="el" href="../../dc/d61/classgraph_1_1_graph.html">Graph</a> Algorithms </p>
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
@@ -379,6 +384,129 @@ Functions</h2></td></tr>
</div><!-- fragment -->
</div>
</div>
<a id="a7c3adb1551bc527a7aa93f331b1c0987" name="a7c3adb1551bc527a7aa93f331b1c0987"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c3adb1551bc527a7aa93f331b1c0987">&#9670;&#160;</a></span>count_paths()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::uint32_t graph::count_paths </td>
<td>(</td>
<td class="paramtype">const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;</td> <td class="paramname"><span class="paramname"><em>A</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>u</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>v</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>n</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Counts the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> in a directed graph using Depth First Search (DFS) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">A</td><td>adjacency matrix representing the graph (1: edge exists, 0: no edge) </td></tr>
<tr><td class="paramname">u</td><td>the starting node </td></tr>
<tr><td class="paramname">v</td><td>the destination node </td></tr>
<tr><td class="paramname">n</td><td>the number of nodes in the graph </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html#l00067">67</a> of file <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html">number_of_paths.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 70</span> {</div>
<div class="line"><span class="lineno"> 71</span> <span class="comment">// Check for invalid nodes or empty graph</span></div>
<div class="line"><span class="lineno"> 72</span> <span class="keywordflow">if</span> (u &gt;= n || v &gt;= n || A.empty() || A[0].empty()) {</div>
<div class="line"><span class="lineno"> 73</span> <span class="keywordflow">return</span> 0; <span class="comment">// No valid paths if graph is empty or nodes are out of bounds</span></div>
<div class="line"><span class="lineno"> 74</span> }</div>
<div class="line"><span class="lineno"> 75</span> </div>
<div class="line"><span class="lineno"> 76</span> std::vector&lt;bool&gt; visited(n, <span class="keyword">false</span>); <span class="comment">// Initialize a visited vector for tracking nodes</span></div>
<div class="line"><span class="lineno"> 77</span> <span class="keywordflow">return</span> <a class="code hl_function" href="#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a>(A, u, v, n, visited); <span class="comment">// Start DFS</span></div>
<div class="line"><span class="lineno"> 78</span> }</div>
<div class="ttc" id="anamespacegraph_html_af99fccdd19e8f223e8749561589a762b"><div class="ttname"><a href="#af99fccdd19e8f223e8749561589a762b">graph::count_paths_dfs</a></div><div class="ttdeci">std::uint32_t count_paths_dfs(const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;A, std::uint32_t u, std::uint32_t v, std::uint32_t n, std::vector&lt; bool &gt; &amp;visited)</div><div class="ttdoc">Helper function to perform DFS and count the number of paths from node u to node v</div><div class="ttdef"><b>Definition</b> <a href="../../d2/d32/number__of__paths_8cpp_source.html#l00034">number_of_paths.cpp:34</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="af99fccdd19e8f223e8749561589a762b" name="af99fccdd19e8f223e8749561589a762b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af99fccdd19e8f223e8749561589a762b">&#9670;&#160;</a></span>count_paths_dfs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::uint32_t graph::count_paths_dfs </td>
<td>(</td>
<td class="paramtype">const std::vector&lt; std::vector&lt; std::uint32_t &gt; &gt; &amp;</td> <td class="paramname"><span class="paramname"><em>A</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>u</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>v</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::uint32_t</td> <td class="paramname"><span class="paramname"><em>n</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; bool &gt; &amp;</td> <td class="paramname"><span class="paramname"><em>visited</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Helper function to perform DFS and count the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">A</td><td>adjacency matrix representing the graph (1: edge exists, 0: no edge) </td></tr>
<tr><td class="paramname">u</td><td>the starting node </td></tr>
<tr><td class="paramname">v</td><td>the destination node </td></tr>
<tr><td class="paramname">n</td><td>the number of nodes in the graph </td></tr>
<tr><td class="paramname">visited</td><td>a vector to keep track of visited nodes in the current DFS path </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of paths from node <span class="tt">u</span> to node <span class="tt">v</span> </dd></dl>
<p class="definition">Definition at line <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html#l00034">34</a> of file <a class="el" href="../../d2/d32/number__of__paths_8cpp_source.html">number_of_paths.cpp</a>.</p>
<div class="fragment"><div class="line"><span class="lineno"> 38</span> {</div>
<div class="line"><span class="lineno"> 39</span> <span class="keywordflow">if</span> (u == v) {</div>
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">return</span> 1; <span class="comment">// Base case: Reached the destination node</span></div>
<div class="line"><span class="lineno"> 41</span> }</div>
<div class="line"><span class="lineno"> 42</span> </div>
<div class="line"><span class="lineno"> 43</span> visited[u] = <span class="keyword">true</span>; <span class="comment">// Mark the current node as visited</span></div>
<div class="line"><span class="lineno"> 44</span> std::uint32_t path_count = 0; <span class="comment">// Count of all paths from `u` to `v`</span></div>
<div class="line"><span class="lineno"> 45</span> </div>
<div class="line"><span class="lineno"> 46</span> <span class="keywordflow">for</span> (std::uint32_t i = 0; i &lt; n; i++) {</div>
<div class="line"><span class="lineno"> 47</span> <span class="keywordflow">if</span> (A[u][i] == 1 &amp;&amp; !visited[i]) { <span class="comment">// Check if there is an edge and the node is not visited</span></div>
<div class="line"><span class="lineno"> 48</span> path_count += <a class="code hl_function" href="#af99fccdd19e8f223e8749561589a762b">count_paths_dfs</a>(A, i, v, n, visited); <span class="comment">// Recursively explore paths from `i` to `v`</span></div>
<div class="line"><span class="lineno"> 49</span> }</div>
<div class="line"><span class="lineno"> 50</span> }</div>
<div class="line"><span class="lineno"> 51</span> </div>
<div class="line"><span class="lineno"> 52</span> visited[u] = <span class="keyword">false</span>; <span class="comment">// Unmark the current node as visited (backtracking)</span></div>
<div class="line"><span class="lineno"> 53</span> <span class="keywordflow">return</span> path_count;</div>
<div class="line"><span class="lineno"> 54</span> }</div>
</div><!-- fragment -->
</div>
</div>
<a id="ab5428a3519267a28bba4b4310cfbb6ae" name="ab5428a3519267a28bba4b4310cfbb6ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5428a3519267a28bba4b4310cfbb6ae">&#9670;&#160;</a></span>depth_first_search()</h2>

View File

@@ -8,6 +8,8 @@ var namespacegraph =
[ "addEdge", "df/dce/namespacegraph.html#ad4016cfc80485a43748895a2c26c7d08", null ],
[ "addEdge", "df/dce/namespacegraph.html#a0e30e0dca68cb6e4f671440819b35b6a", null ],
[ "checkBipartite", "df/dce/namespacegraph.html#a8e1b547cd407c0774e63f0dc95cda9e7", null ],
[ "count_paths", "df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987", null ],
[ "count_paths_dfs", "df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b", null ],
[ "depth_first_search", "df/dce/namespacegraph.html#ab5428a3519267a28bba4b4310cfbb6ae", null ],
[ "dijkstra", "df/dce/namespacegraph.html#adc68cbc8ba09eb1142265935c0d45b84", null ],
[ "explore", "df/dce/namespacegraph.html#a3ae80bc4c6a79d041b4f3a6589eb7fb8", null ],

View File

@@ -147,6 +147,8 @@ Files</h2></td></tr>
<tr class="memitem:lowest_5Fcommon_5Fancestor_2Ecpp" id="r_lowest_5Fcommon_5Fancestor_2Ecpp"><td class="memItemLeft" align="right" valign="top"><a href="de/dde/lowest__common__ancestor_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="de/dde/lowest__common__ancestor_8cpp.html">lowest_common_ancestor.cpp</a></td></tr>
<tr class="memdesc:de/dde/lowest__common__ancestor_8cpp"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data structure for finding the lowest common ancestor of two vertices in a rooted tree using binary lifting. <br /></td></tr>
<tr class="memitem:max_5Fflow_5Fwith_5Fford_5Ffulkerson_5Fand_5Fedmond_5Fkarp_5Falgo_2Ecpp" id="r_max_5Fflow_5Fwith_5Fford_5Ffulkerson_5Fand_5Fedmond_5Fkarp_5Falgo_2Ecpp"><td class="memItemLeft" align="right" valign="top"><a href="d2/d48/max__flow__with__ford__fulkerson__and__edmond__karp__algo_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a>&#160;</td><td class="memItemRight" valign="bottom"><b>max_flow_with_ford_fulkerson_and_edmond_karp_algo.cpp</b></td></tr>
<tr class="memitem:number_5Fof_5Fpaths_2Ecpp" id="r_number_5Fof_5Fpaths_2Ecpp"><td class="memItemLeft" align="right" valign="top"><a href="d2/d32/number__of__paths_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="d2/d32/number__of__paths_8cpp.html">number_of_paths.cpp</a></td></tr>
<tr class="memdesc:d2/d32/number__of__paths_8cpp"><td class="mdescLeft">&#160;</td><td class="mdescRight">Algorithm to count paths between two nodes in a directed graph using DFS. <br /></td></tr>
<tr class="memitem:prim_2Ecpp" id="r_prim_2Ecpp"><td class="memItemLeft" align="right" valign="top"><a href="da/d27/prim_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a>&#160;</td><td class="memItemRight" valign="bottom"><b>prim.cpp</b></td></tr>
<tr class="memitem:topological_5Fsort_2Ecpp" id="r_topological_5Fsort_2Ecpp"><td class="memItemLeft" align="right" valign="top"><a href="d8/db9/topological__sort_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="d8/db9/topological__sort_8cpp.html">topological_sort.cpp</a></td></tr>
<tr class="memdesc:d8/db9/topological__sort_8cpp"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a href="https://en.wikipedia.org/wiki/Topological_sorting" target="_blank">Topological Sort Algorithm</a> <br /></td></tr>

View File

@@ -17,6 +17,7 @@ var dir_12552d7fa429bf94a2e32e5cf39f7e69 =
[ "kruskal.cpp", "d9/d1c/kruskal_8cpp_source.html", null ],
[ "lowest_common_ancestor.cpp", "de/dde/lowest__common__ancestor_8cpp.html", "de/dde/lowest__common__ancestor_8cpp" ],
[ "max_flow_with_ford_fulkerson_and_edmond_karp_algo.cpp", "d2/d48/max__flow__with__ford__fulkerson__and__edmond__karp__algo_8cpp_source.html", null ],
[ "number_of_paths.cpp", "d2/d32/number__of__paths_8cpp.html", "d2/d32/number__of__paths_8cpp" ],
[ "prim.cpp", "da/d27/prim_8cpp_source.html", null ],
[ "topological_sort.cpp", "d8/db9/topological__sort_8cpp.html", "d8/db9/topological__sort_8cpp" ],
[ "topological_sort_by_kahns_algo.cpp", "d1/d1b/topological__sort__by__kahns__algo_8cpp_source.html", null ],

View File

@@ -423,6 +423,10 @@
<a href="d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#a7341d7c76a6145e991cdd231f689fca8"/>
<a href="d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#af6cb29ca6dc5771439f6ea7262058a71"/>
<a href="d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#af915876d0ca33cc71a6a6191a8cd3ccd"/>
<a href="d2/d32/number__of__paths_8cpp.html"/>
<a href="d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d"/>
<a href="d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"/>
<a href="d2/d32/number__of__paths_8cpp_source.html"/>
<a href="d2/d36/structgeometry_1_1jarvis_1_1_point-members.html"/>
<a href="d2/d3b/namespaceqr__algorithm.html"/>
<a href="d2/d3b/namespaceqr__algorithm.html#a257425cb2365359da51c6fe6741834d8"/>
@@ -3274,6 +3278,7 @@
<a href="df/dce/namespacegraph.html#a0e30e0dca68cb6e4f671440819b35b6a"/>
<a href="df/dce/namespacegraph.html#a3ae80bc4c6a79d041b4f3a6589eb7fb8"/>
<a href="df/dce/namespacegraph.html#a64c1db5aad7502c6f08e4652f6edd463"/>
<a href="df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987"/>
<a href="df/dce/namespacegraph.html#a83ab16e96cec644109a58dfc9329bc2b"/>
<a href="df/dce/namespacegraph.html#a84b0551489c613a681cc83b34450da4b"/>
<a href="df/dce/namespacegraph.html#a8e1b547cd407c0774e63f0dc95cda9e7"/>
@@ -3282,6 +3287,7 @@
<a href="df/dce/namespacegraph.html#ab7706341d006e20d1ae58274187a3346"/>
<a href="df/dce/namespacegraph.html#ad4016cfc80485a43748895a2c26c7d08"/>
<a href="df/dce/namespacegraph.html#adc68cbc8ba09eb1142265935c0d45b84"/>
<a href="df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b"/>
<a href="df/dd0/queue__using__two__stacks_8cpp.html"/>
<a href="df/dd0/queue__using__two__stacks_8cpp.html#a831ded10ecad88c14a8e22b96f4c1863"/>
<a href="df/dd0/queue__using__two__stacks_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"/>

View File

@@ -264,10 +264,11 @@ solve-a-rat-in-a-maze-c-java-pytho/" target="_blank">Rat in a Maze</a> algorithm
<tr id="row_9_14_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d9/d1c/kruskal_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>kruskal.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_15_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="de/dde/lowest__common__ancestor_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="de/dde/lowest__common__ancestor_8cpp.html" target="_self">lowest_common_ancestor.cpp</a></td><td class="desc">Data structure for finding the lowest common ancestor of two vertices in a rooted tree using binary lifting </td></tr>
<tr id="row_9_16_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d2/d48/max__flow__with__ford__fulkerson__and__edmond__karp__algo_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>max_flow_with_ford_fulkerson_and_edmond_karp_algo.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_17_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="da/d27/prim_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>prim.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_18_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d8/db9/topological__sort_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="d8/db9/topological__sort_8cpp.html" target="_self">topological_sort.cpp</a></td><td class="desc"><a href="https://en.wikipedia.org/wiki/Topological_sorting" target="_blank">Topological Sort Algorithm</a> </td></tr>
<tr id="row_9_19_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d1/d1b/topological__sort__by__kahns__algo_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>topological_sort_by_kahns_algo.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_20_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="de/d88/travelling__salesman__problem_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="de/d88/travelling__salesman__problem_8cpp.html" target="_self">travelling_salesman_problem.cpp</a></td><td class="desc">[Travelling Salesman Problem] (<a href="https://en.wikipedia.org/wiki/Travelling_salesman_problem">https://en.wikipedia.org/wiki/Travelling_salesman_problem</a>) implementation </td></tr>
<tr id="row_9_17_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d2/d32/number__of__paths_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="d2/d32/number__of__paths_8cpp.html" target="_self">number_of_paths.cpp</a></td><td class="desc">Algorithm to count paths between two nodes in a directed graph using DFS </td></tr>
<tr id="row_9_18_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="da/d27/prim_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>prim.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_19_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d8/db9/topological__sort_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="d8/db9/topological__sort_8cpp.html" target="_self">topological_sort.cpp</a></td><td class="desc"><a href="https://en.wikipedia.org/wiki/Topological_sorting" target="_blank">Topological Sort Algorithm</a> </td></tr>
<tr id="row_9_20_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="d1/d1b/topological__sort__by__kahns__algo_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><b>topological_sort_by_kahns_algo.cpp</b></td><td class="desc"></td></tr>
<tr id="row_9_21_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="de/d88/travelling__salesman__problem_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="de/d88/travelling__salesman__problem_8cpp.html" target="_self">travelling_salesman_problem.cpp</a></td><td class="desc">[Travelling Salesman Problem] (<a href="https://en.wikipedia.org/wiki/Travelling_salesman_problem">https://en.wikipedia.org/wiki/Travelling_salesman_problem</a>) implementation </td></tr>
<tr id="row_10_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_10_" class="arrow" onclick="dynsection.toggleFolder('10_')"><span class="arrowhead closed"></span></span><span id="img_10_" class="iconfolder" onclick="dynsection.toggleFolder('10_')"><div class="folder-icon"></div></span><a class="el" href="dir_e79632891301b850df87e9c0030293fa.html" target="_self">graphics</a></td><td class="desc"></td></tr>
<tr id="row_10_0_" class="odd" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="da/d77/spirograph_8cpp_source.html"><span class="icondoc"><div class="doc-icon"></div></span></a><a class="el" href="da/d77/spirograph_8cpp.html" target="_self">spirograph.cpp</a></td><td class="desc">Implementation of <a href="https://en.wikipedia.org/wiki/Spirograph" target="_blank">Spirograph</a> </td></tr>
<tr id="row_11_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_11_" class="arrow" onclick="dynsection.toggleFolder('11_')"><span class="arrowhead closed"></span></span><span id="img_11_" class="iconfolder" onclick="dynsection.toggleFolder('11_')"><div class="folder-icon"></div></span><a class="el" href="dir_0eaa691bd54ab0922ca7f50599de6d22.html" target="_self">greedy_algorithms</a></td><td class="desc"></td></tr>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -122,6 +122,8 @@ $(function(){initNavTree('namespacemembers_c.html','',''); });
<li>circle_area()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a40e36c67da78d2131408c57ee091ad75">math</a></li>
<li>circle_perimeter()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953">math</a></li>
<li>cone_volume()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">math</a></li>
<li>count_paths()&#160;:&#160;<a class="el" href="df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph</a></li>
<li>count_paths_dfs()&#160;:&#160;<a class="el" href="df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">graph</a></li>
<li>create_hash()&#160;:&#160;<a class="el" href="d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8">string_search</a></li>
<li>cube_surface_area()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c">math</a></li>
<li>cube_surface_perimeter()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b">math</a></li>

View File

@@ -122,6 +122,8 @@ $(function(){initNavTree('namespacemembers_func_c.html','',''); });
<li>circle_area()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a40e36c67da78d2131408c57ee091ad75">math</a></li>
<li>circle_perimeter()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953">math</a></li>
<li>cone_volume()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a3fe35440c27758ecc2287e08217d63a7">math</a></li>
<li>count_paths()&#160;:&#160;<a class="el" href="df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987">graph</a></li>
<li>count_paths_dfs()&#160;:&#160;<a class="el" href="df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b">graph</a></li>
<li>create_hash()&#160;:&#160;<a class="el" href="d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8">string_search</a></li>
<li>cube_surface_area()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c">math</a></li>
<li>cube_surface_perimeter()&#160;:&#160;<a class="el" href="dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b">math</a></li>

View File

@@ -137,18 +137,18 @@ var NAVTREEINDEX =
[
"annotated.html",
"d1/d83/classuint256__t.html#af2193ff0d0e93143fb71f4847df16028",
"d3/d22/quick__sort__iterative_8cpp.html",
"d4/d90/classdata__structures_1_1_skip_list.html#a40a4042bdf0b6683b5f21ae7854de8a9",
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f",
"d6/db0/binomial__dist_8cpp.html#a19ae0a6a2bd200fd1eb0e31b2bf4cc76",
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ad022d494b40f82417340b113445e79a4",
"d9/d00/factorial_8cpp_source.html",
"da/d18/quadratic__equations__complex__numbers_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4",
"db/d6b/kelvin__to__celsius_8cpp_source.html",
"dc/d53/classtests_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d",
"dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11",
"de/dcf/binary__exponent_8cpp.html#a31dbf5f7ceb9c9eec831ef9f7782291f",
"functions_e.html"
"d3/d17/namespaceutil__functions.html",
"d4/d90/classdata__structures_1_1_skip_list.html",
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a32db3ba3b2630943faacd27b2ecd1b04",
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933",
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab8b6a6aa95db678596bc2a49e864683e",
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#aeb01a65e51df1e3bc5296cde8477c352",
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1",
"db/d66/struct_item.html",
"dc/d53/classtests_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2",
"dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4",
"de/dcd/kadanes3_8cpp.html#aa8dca7b867074164d5f45b0f3851269d",
"functions.html"
];
var SYNCONMSG = 'click to disable panel synchronization';

View File

@@ -135,7 +135,7 @@ var NAVTREEINDEX0 =
"d1/d12/tree_8cpp_source.html":[10,0,4,35],
"d1/d1b/classpriority__queue.html":[9,0,52],
"d1/d1b/classpriority__queue.html#a4df2ae826d2b2caf4a6755adbd34a836":[9,0,52,0],
"d1/d1b/topological__sort__by__kahns__algo_8cpp_source.html":[10,0,9,19],
"d1/d1b/topological__sort__by__kahns__algo_8cpp_source.html":[10,0,9,20],
"d1/d1c/base64__encoding_8cpp_source.html":[10,0,2,2],
"d1/d21/quick__sort_8cpp.html":[10,0,23,25],
"d1/d21/quick__sort_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,23,25,5],

View File

@@ -137,6 +137,10 @@ var NAVTREEINDEX1 =
"d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#a7341d7c76a6145e991cdd231f689fca8":[8,0,42,0,3],
"d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#af6cb29ca6dc5771439f6ea7262058a71":[8,0,42,0,2],
"d2/d2f/namespacegreedy__algorithms_1_1dijkstra.html#af915876d0ca33cc71a6a6191a8cd3ccd":[8,0,42,0,1],
"d2/d32/number__of__paths_8cpp.html":[10,0,9,17],
"d2/d32/number__of__paths_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,9,17,3],
"d2/d32/number__of__paths_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,9,17,2],
"d2/d32/number__of__paths_8cpp_source.html":[10,0,9,17],
"d2/d3b/namespaceqr__algorithm.html":[8,0,95],
"d2/d3b/namespaceqr__algorithm.html#a257425cb2365359da51c6fe6741834d8":[8,0,95,2],
"d2/d3b/namespaceqr__algorithm.html#a28e2fa3e803abaea6c568dc45d69d8cc":[8,0,95,0],
@@ -245,9 +249,5 @@ var NAVTREEINDEX1 =
"d3/d06/ode__semi__implicit__euler_8cpp.html#af3adf7b092a87868917ee5fb4255192b":[10,0,15,17,0],
"d3/d06/ode__semi__implicit__euler_8cpp_source.html":[10,0,15,17],
"d3/d09/node_8hpp.html":[10,0,4,15],
"d3/d09/node_8hpp_source.html":[10,0,4,15],
"d3/d17/namespaceutil__functions.html":[8,0,134],
"d3/d19/sparse__matrix_8cpp.html":[10,0,17,22],
"d3/d19/sparse__matrix_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,22,0],
"d3/d19/sparse__matrix_8cpp_source.html":[10,0,17,22]
"d3/d09/node_8hpp_source.html":[10,0,4,15]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX10 =
{
"dc/d53/classtests_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2":[9,0,21,0,2],
"dc/d53/classtests_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592":[8,0,128,0,10],
"dc/d53/classtests_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592":[9,0,21,0,10],
"dc/d53/classtests_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d":[8,0,128,0,5],
"dc/d53/classtests_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d":[9,0,21,0,5],
"dc/d5a/rat__maze_8cpp.html":[10,0,0,8],
"dc/d5a/rat__maze_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,0,8,2],
@@ -245,9 +249,5 @@ var NAVTREEINDEX10 =
"dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca":[8,0,69,13],
"dd/d47/namespacemath.html#abf7f2a6d91f1ca6c89698792aea3f188":[8,0,69,2],
"dd/d47/namespacemath.html#ac37d3ba52eb296597d7a024ba8c4a5a5":[8,0,69,27],
"dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864":[8,0,69,11],
"dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4":[8,0,69,30],
"dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953":[8,0,69,6],
"dd/d47/namespacemath.html#ae1ca505751f5a6d3977b86372cfe75ea":[8,0,69,4],
"dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725":[8,0,69,10]
"dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864":[8,0,69,11]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX11 =
{
"dd/d47/namespacemath.html#ad09d59850865012a6fd95d89954c82e4":[8,0,69,30],
"dd/d47/namespacemath.html#ad0acf82b7bc920182bf8322d1e103953":[8,0,69,6],
"dd/d47/namespacemath.html#ae1ca505751f5a6d3977b86372cfe75ea":[8,0,69,4],
"dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725":[8,0,69,10],
"dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11":[8,0,69,16],
"dd/d47/namespacemath.html#af05567415a9ea36c254b54e3d5a2152a":[8,0,69,41],
"dd/d47/namespacemath.html#afa39ec943a4836c878e1614fd89b146f":[8,0,69,20],
@@ -202,10 +206,10 @@ var NAVTREEINDEX11 =
"de/d85/decimal__to__roman__numeral_8cpp.html#a88203bd297e8405160c132faa1187780":[10,0,17,3,0],
"de/d85/decimal__to__roman__numeral_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,3,1],
"de/d85/decimal__to__roman__numeral_8cpp_source.html":[10,0,17,3],
"de/d88/travelling__salesman__problem_8cpp.html":[10,0,9,20],
"de/d88/travelling__salesman__problem_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,9,20,1],
"de/d88/travelling__salesman__problem_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,9,20,0],
"de/d88/travelling__salesman__problem_8cpp_source.html":[10,0,9,20],
"de/d88/travelling__salesman__problem_8cpp.html":[10,0,9,21],
"de/d88/travelling__salesman__problem_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,9,21,1],
"de/d88/travelling__salesman__problem_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,9,21,0],
"de/d88/travelling__salesman__problem_8cpp_source.html":[10,0,9,21],
"de/d89/graham__scan__functions_8hpp_source.html":[10,0,8,1],
"de/d8c/partition__problem_8cpp_source.html":[10,0,6,23],
"de/d95/namespace_subsets.html":[8,0,126],
@@ -245,9 +249,5 @@ var NAVTREEINDEX11 =
"de/dc5/intersection__of__two__arrays_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,16,6,2],
"de/dc5/intersection__of__two__arrays_8cpp_source.html":[10,0,16,6],
"de/dcd/kadanes3_8cpp.html":[10,0,17,8],
"de/dcd/kadanes3_8cpp.html#a338439a04148ae89f695595acfa5c147":[10,0,17,8,1],
"de/dcd/kadanes3_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,17,8,2],
"de/dcd/kadanes3_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,8,0],
"de/dcd/kadanes3_8cpp_source.html":[10,0,17,8],
"de/dcf/binary__exponent_8cpp.html":[10,0,14,4]
"de/dcd/kadanes3_8cpp.html#a338439a04148ae89f695595acfa5c147":[10,0,17,8,1]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX12 =
{
"de/dcd/kadanes3_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,17,8,2],
"de/dcd/kadanes3_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,8,0],
"de/dcd/kadanes3_8cpp_source.html":[10,0,17,8],
"de/dcf/binary__exponent_8cpp.html":[10,0,14,4],
"de/dcf/binary__exponent_8cpp.html#a31dbf5f7ceb9c9eec831ef9f7782291f":[10,0,14,4,1],
"de/dcf/binary__exponent_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,4,2],
"de/dcf/binary__exponent_8cpp.html#aeb48dce0725e63d19147944f41843c73":[10,0,14,4,0],
@@ -166,16 +170,18 @@ var NAVTREEINDEX12 =
"df/dcd/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2math_2quadratic_equations_complex_numbers_8cpp-example.html":[11,2],
"df/dce/namespacegraph.html":[8,0,39],
"df/dce/namespacegraph.html#a0e30e0dca68cb6e4f671440819b35b6a":[8,0,39,6],
"df/dce/namespacegraph.html#a3ae80bc4c6a79d041b4f3a6589eb7fb8":[8,0,39,10],
"df/dce/namespacegraph.html#a64c1db5aad7502c6f08e4652f6edd463":[8,0,39,11],
"df/dce/namespacegraph.html#a83ab16e96cec644109a58dfc9329bc2b":[8,0,39,12],
"df/dce/namespacegraph.html#a84b0551489c613a681cc83b34450da4b":[8,0,39,13],
"df/dce/namespacegraph.html#a3ae80bc4c6a79d041b4f3a6589eb7fb8":[8,0,39,12],
"df/dce/namespacegraph.html#a64c1db5aad7502c6f08e4652f6edd463":[8,0,39,13],
"df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987":[8,0,39,8],
"df/dce/namespacegraph.html#a83ab16e96cec644109a58dfc9329bc2b":[8,0,39,14],
"df/dce/namespacegraph.html#a84b0551489c613a681cc83b34450da4b":[8,0,39,15],
"df/dce/namespacegraph.html#a8e1b547cd407c0774e63f0dc95cda9e7":[8,0,39,7],
"df/dce/namespacegraph.html#a9125ceb66bfbec3093bba64c2c1e99e2":[8,0,39,4],
"df/dce/namespacegraph.html#ab5428a3519267a28bba4b4310cfbb6ae":[8,0,39,8],
"df/dce/namespacegraph.html#ab7706341d006e20d1ae58274187a3346":[8,0,39,14],
"df/dce/namespacegraph.html#ab5428a3519267a28bba4b4310cfbb6ae":[8,0,39,10],
"df/dce/namespacegraph.html#ab7706341d006e20d1ae58274187a3346":[8,0,39,16],
"df/dce/namespacegraph.html#ad4016cfc80485a43748895a2c26c7d08":[8,0,39,5],
"df/dce/namespacegraph.html#adc68cbc8ba09eb1142265935c0d45b84":[8,0,39,9],
"df/dce/namespacegraph.html#adc68cbc8ba09eb1142265935c0d45b84":[8,0,39,11],
"df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b":[8,0,39,9],
"df/dd0/queue__using__two__stacks_8cpp.html":[10,0,4,21],
"df/dd0/queue__using__two__stacks_8cpp.html#a831ded10ecad88c14a8e22b96f4c1863":[10,0,4,21,1],
"df/dd0/queue__using__two__stacks_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,4,21,0],
@@ -243,11 +249,5 @@ var NAVTREEINDEX12 =
"dir_f1797d0c2a0a12033e7d74efffeb14e1.html":[10,0,4,0],
"dir_f3c4fbc4e901afa0a54d0623c5574aa7.html":[10,0,1],
"examples.html":[11],
"files.html":[10,0],
"functions.html":[9,3,0],
"functions.html":[9,3,0,0],
"functions_a.html":[9,3,0,1],
"functions_b.html":[9,3,0,2],
"functions_c.html":[9,3,0,3],
"functions_d.html":[9,3,0,4]
"files.html":[10,0]
};

View File

@@ -1,5 +1,11 @@
var NAVTREEINDEX13 =
{
"functions.html":[9,3,0],
"functions.html":[9,3,0,0],
"functions_a.html":[9,3,0,1],
"functions_b.html":[9,3,0,2],
"functions_c.html":[9,3,0,3],
"functions_d.html":[9,3,0,4],
"functions_e.html":[9,3,0,5],
"functions_f.html":[9,3,0,6],
"functions_func.html":[9,3,1],

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX2 =
{
"d3/d17/namespaceutil__functions.html":[8,0,134],
"d3/d19/sparse__matrix_8cpp.html":[10,0,17,22],
"d3/d19/sparse__matrix_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,22,0],
"d3/d19/sparse__matrix_8cpp_source.html":[10,0,17,22],
"d3/d22/quick__sort__iterative_8cpp.html":[10,0,23,27],
"d3/d22/quick__sort__iterative_8cpp.html#a88ec9ad42717780d6caaff9d3d6977f9":[10,0,23,27,3],
"d3/d22/quick__sort__iterative_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,23,27,1],
@@ -245,9 +249,5 @@ var NAVTREEINDEX2 =
"d4/d8f/travelling__salesman__using__bit__manipulation_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,1,9,1],
"d4/d8f/travelling__salesman__using__bit__manipulation_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,1,9,0],
"d4/d8f/travelling__salesman__using__bit__manipulation_8cpp_source.html":[10,0,1,9],
"d4/d90/classdata__structures_1_1_skip_list.html":[8,0,21,5],
"d4/d90/classdata__structures_1_1_skip_list.html":[9,0,2,12],
"d4/d90/classdata__structures_1_1_skip_list.html#a3e249c2c35a8b7f5ffd2d77fee60d650":[8,0,21,5,7],
"d4/d90/classdata__structures_1_1_skip_list.html#a3e249c2c35a8b7f5ffd2d77fee60d650":[9,0,2,12,7],
"d4/d90/classdata__structures_1_1_skip_list.html#a40a4042bdf0b6683b5f21ae7854de8a9":[8,0,21,5,3]
"d4/d90/classdata__structures_1_1_skip_list.html":[8,0,21,5]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX3 =
{
"d4/d90/classdata__structures_1_1_skip_list.html":[9,0,2,12],
"d4/d90/classdata__structures_1_1_skip_list.html#a3e249c2c35a8b7f5ffd2d77fee60d650":[8,0,21,5,7],
"d4/d90/classdata__structures_1_1_skip_list.html#a3e249c2c35a8b7f5ffd2d77fee60d650":[9,0,2,12,7],
"d4/d90/classdata__structures_1_1_skip_list.html#a40a4042bdf0b6683b5f21ae7854de8a9":[8,0,21,5,3],
"d4/d90/classdata__structures_1_1_skip_list.html#a40a4042bdf0b6683b5f21ae7854de8a9":[9,0,2,12,3],
"d4/d90/classdata__structures_1_1_skip_list.html#a7ffc3688725b9d1ec6e5bb881a6e2ae4":[8,0,21,5,0],
"d4/d90/classdata__structures_1_1_skip_list.html#a7ffc3688725b9d1ec6e5bb881a6e2ae4":[9,0,2,12,0],
@@ -245,9 +249,5 @@ var NAVTREEINDEX3 =
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a1ab082fe0aa95a238bbbc68ab6a72425":[9,0,2,5,0,19],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a3081969b2714a8101f7df28b1ce5ed2c":[8,0,21,0,0,17],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a3081969b2714a8101f7df28b1ce5ed2c":[9,0,2,5,0,17],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a32db3ba3b2630943faacd27b2ecd1b04":[8,0,21,0,0,15],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a32db3ba3b2630943faacd27b2ecd1b04":[9,0,2,5,0,15],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5d200493aeaa02a269f6b6deda39a683":[8,0,21,0,0,0],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5d200493aeaa02a269f6b6deda39a683":[9,0,2,5,0,0],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f":[8,0,21,0,0,10]
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a32db3ba3b2630943faacd27b2ecd1b04":[8,0,21,0,0,15]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX4 =
{
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a32db3ba3b2630943faacd27b2ecd1b04":[9,0,2,5,0,15],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5d200493aeaa02a269f6b6deda39a683":[8,0,21,0,0,0],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5d200493aeaa02a269f6b6deda39a683":[9,0,2,5,0,0],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f":[8,0,21,0,0,10],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f":[9,0,2,5,0,10],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a6a023a4f0c42fb8ed5b3368fba1a5f2c":[8,0,21,0,0,4],
"d5/d95/structdata__structures_1_1treap_1_1_treap.html#a6a023a4f0c42fb8ed5b3368fba1a5f2c":[9,0,2,5,0,4],
@@ -245,9 +249,5 @@ var NAVTREEINDEX4 =
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a41c9b6f1693b8a316cc4a2d8c9149ba4":[9,0,13,2,0,0],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a5f33913e7ddfbb38062362e7bd859154":[9,0,13,2,0,6],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a78be932dac71c90f485a67d4fda877e2":[9,0,13,2,0,3],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602":[9,0,13,2,0,4],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933":[9,0,13,2,0,2],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa4d6db56109af196ffc7e5f72bc9907c":[9,0,13,2,0,9],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aad506b1c1a3cd5b93cc7e497626bfb53":[9,0,13,2,0,1],
"d6/db0/binomial__dist_8cpp.html":[10,0,19,2]
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#a7dbf04bf7e1472c48639694f0b110602":[9,0,13,2,0,4]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX5 =
{
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa24a141455b9fbcbec22392c28d04933":[9,0,13,2,0,2],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aa4d6db56109af196ffc7e5f72bc9907c":[9,0,13,2,0,9],
"d6/dae/classothers_1_1lru__cache_1_1_l_r_u_cache.html#aad506b1c1a3cd5b93cc7e497626bfb53":[9,0,13,2,0,1],
"d6/db0/binomial__dist_8cpp.html":[10,0,19,2],
"d6/db0/binomial__dist_8cpp.html#a19ae0a6a2bd200fd1eb0e31b2bf4cc76":[10,0,19,2,4],
"d6/db0/binomial__dist_8cpp.html#a4416a7bc7fa87201883c54cdc4c82813":[10,0,19,2,0],
"d6/db0/binomial__dist_8cpp.html#a76ed6ce71415fb400b65f0656cef3d25":[10,0,19,2,1],
@@ -245,9 +249,5 @@ var NAVTREEINDEX5 =
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#a8dab0f69410484f772946befd24cc3c5":[9,0,13,0,2,12],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab211a4be58491bf11834cae88a0c44f7":[8,0,88,0,2,6],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab211a4be58491bf11834cae88a0c44f7":[9,0,13,0,2,6],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab8b6a6aa95db678596bc2a49e864683e":[8,0,88,0,2,3],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab8b6a6aa95db678596bc2a49e864683e":[9,0,13,0,2,3],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ac1be0357ecc7c34144f3d9a63c6cb3ea":[8,0,88,0,2,4],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ac1be0357ecc7c34144f3d9a63c6cb3ea":[9,0,13,0,2,4],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ad022d494b40f82417340b113445e79a4":[8,0,88,0,2,5]
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab8b6a6aa95db678596bc2a49e864683e":[8,0,88,0,2,3]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX6 =
{
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ab8b6a6aa95db678596bc2a49e864683e":[9,0,13,0,2,3],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ac1be0357ecc7c34144f3d9a63c6cb3ea":[8,0,88,0,2,4],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ac1be0357ecc7c34144f3d9a63c6cb3ea":[9,0,13,0,2,4],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ad022d494b40f82417340b113445e79a4":[8,0,88,0,2,5],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#ad022d494b40f82417340b113445e79a4":[9,0,13,0,2,5],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#af34bb8b8eaa34cc499b4fed30b9d05fc":[8,0,88,0,2,10],
"d8/d2e/classothers_1_1_cache_1_1_l_r_u_cache.html#af34bb8b8eaa34cc499b4fed30b9d05fc":[9,0,13,0,2,10],
@@ -185,10 +189,10 @@ var NAVTREEINDEX6 =
"d8/db1/binomial__calculate_8cpp.html#ac0f2228420376f4db7e1274f2b41667c":[10,0,14,5,1],
"d8/db1/binomial__calculate_8cpp_source.html":[10,0,14,5],
"d8/db7/queue__using__linked__list_8cpp_source.html":[10,0,4,19],
"d8/db9/topological__sort_8cpp.html":[10,0,9,18],
"d8/db9/topological__sort_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,9,18,3],
"d8/db9/topological__sort_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,9,18,2],
"d8/db9/topological__sort_8cpp_source.html":[10,0,9,18],
"d8/db9/topological__sort_8cpp.html":[10,0,9,19],
"d8/db9/topological__sort_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,9,19,3],
"d8/db9/topological__sort_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,9,19,2],
"d8/db9/topological__sort_8cpp_source.html":[10,0,9,19],
"d8/dc6/namespacemanacher.html":[8,0,68],
"d8/dc8/struct_point.html":[9,0,51],
"d8/dc8/struct_point.html#a2e1b5fb2b2a83571f5c0bc0f66a73cf7":[9,0,51,2],
@@ -245,9 +249,5 @@ var NAVTREEINDEX6 =
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html":[9,0,12,2,1],
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#a15dd7a0a7d9b1e8b2012c5161aecd6e3":[9,0,12,2,1,0],
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#ab13a4dd92d54c11eca86edde3ef32256":[9,0,12,2,1,3],
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#ae54953a75091532303bb08d55087077f":[9,0,12,2,1,1],
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#aeb01a65e51df1e3bc5296cde8477c352":[9,0,12,2,1,2],
"d9/d00/factorial_8cpp.html":[10,0,14,14],
"d9/d00/factorial_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,14,14,2],
"d9/d00/factorial_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,14,1]
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#ae54953a75091532303bb08d55087077f":[9,0,12,2,1,1]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX7 =
{
"d8/dfd/structoperations__on__datastructures_1_1reverse__binary__tree_1_1_node.html#aeb01a65e51df1e3bc5296cde8477c352":[9,0,12,2,1,2],
"d9/d00/factorial_8cpp.html":[10,0,14,14],
"d9/d00/factorial_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,14,14,2],
"d9/d00/factorial_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,14,1],
"d9/d00/factorial_8cpp_source.html":[10,0,14,14],
"d9/d02/linear__search_8cpp.html":[10,0,22,8],
"d9/d02/linear__search_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,22,8,2],
@@ -245,9 +249,5 @@ var NAVTREEINDEX7 =
"da/d0d/longest__common__string_8cpp_source.html":[10,0,6,14],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html":[9,0,12,0,1],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a005dc56b0c58350a13f4796b9b30b6c5":[9,0,12,0,1,0],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a12a06eef5ccaf667f319506eee655d95":[9,0,12,0,1,1],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1":[9,0,12,0,1,2],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77":[9,0,12,0,1,3],
"da/d18/quadratic__equations__complex__numbers_8cpp.html":[10,0,14,51],
"da/d18/quadratic__equations__complex__numbers_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,14,51,3]
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a12a06eef5ccaf667f319506eee655d95":[9,0,12,0,1,1]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX8 =
{
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7461292b8b91aed86404d0ab019dfdd1":[9,0,12,0,1,2],
"da/d16/structoperations__on__datastructures_1_1circular__linked__list_1_1_node.html#a7c867b8e1034a6f5da490c8b8c09cb77":[9,0,12,0,1,3],
"da/d18/quadratic__equations__complex__numbers_8cpp.html":[10,0,14,51],
"da/d18/quadratic__equations__complex__numbers_8cpp.html#aa8dca7b867074164d5f45b0f3851269d":[10,0,14,51,3],
"da/d18/quadratic__equations__complex__numbers_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,51,1],
"da/d18/quadratic__equations__complex__numbers_8cpp.html#af7a6d4e3dc85a6288c8f1f7094830c5a":[10,0,14,51,0],
"da/d18/quadratic__equations__complex__numbers_8cpp_source.html":[10,0,14,51],
@@ -24,7 +28,7 @@ var NAVTREEINDEX8 =
"da/d24/sqrt__double_8cpp.html#ae662282ad0740d2063ac404ca3bd74fc":[10,0,14,54,1],
"da/d24/sqrt__double_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,14,54,0],
"da/d24/sqrt__double_8cpp_source.html":[10,0,14,54],
"da/d27/prim_8cpp_source.html":[10,0,9,17],
"da/d27/prim_8cpp_source.html":[10,0,9,18],
"da/d37/structdata__structures_1_1sparse__table_1_1_sparse__table.html":[9,0,2,3,0],
"da/d37/structdata__structures_1_1sparse__table_1_1_sparse__table.html#a0c8cbe7239232863f104793c08273039":[9,0,2,3,0,0],
"da/d37/structdata__structures_1_1sparse__table_1_1_sparse__table.html#a6cf72f93b1551f0d943c585b4f173be3":[9,0,2,3,0,2],
@@ -245,9 +249,5 @@ var NAVTREEINDEX8 =
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#ac0ddec9ab8f778dad23ec446d7a77b39":[9,0,2,4,0,2],
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#acf8ca54d5dd6676f255fff3dedacc7c6":[9,0,2,4,0,6],
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#af04a8f3536a52d8c9916086b656eefc2":[9,0,2,4,0,1],
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#afdfd2f4418c70b1bda50f2c3e416d80b":[9,0,2,4,0,5],
"db/d66/struct_item.html":[9,0,40],
"db/d6b/kelvin__to__celsius_8cpp.html":[10,0,17,9],
"db/d6b/kelvin__to__celsius_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,17,9,3],
"db/d6b/kelvin__to__celsius_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,9,2]
"db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#afdfd2f4418c70b1bda50f2c3e416d80b":[9,0,2,4,0,5]
};

View File

@@ -1,5 +1,9 @@
var NAVTREEINDEX9 =
{
"db/d66/struct_item.html":[9,0,40],
"db/d6b/kelvin__to__celsius_8cpp.html":[10,0,17,9],
"db/d6b/kelvin__to__celsius_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e":[10,0,17,9,3],
"db/d6b/kelvin__to__celsius_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4":[10,0,17,9,2],
"db/d6b/kelvin__to__celsius_8cpp_source.html":[10,0,17,9],
"db/d6f/namespaceheavy__light__decomposition.html":[8,0,46],
"db/d71/quadratic__probing__hash__table_8cpp.html":[10,0,12,4],
@@ -245,9 +249,5 @@ var NAVTREEINDEX9 =
"dc/d53/classtests_1_1_circular_linked_list.html#aa704319924f97fedfb41caf193a00888":[9,0,21,0,0],
"dc/d53/classtests_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208":[8,0,128,0,14],
"dc/d53/classtests_1_1_circular_linked_list.html#ab682f854f39582a20c9c4102f0482208":[9,0,21,0,14],
"dc/d53/classtests_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2":[8,0,128,0,2],
"dc/d53/classtests_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2":[9,0,21,0,2],
"dc/d53/classtests_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592":[8,0,128,0,10],
"dc/d53/classtests_1_1_circular_linked_list.html#ac341901e926b3fa3a796c64ca572f592":[9,0,21,0,10],
"dc/d53/classtests_1_1_circular_linked_list.html#ac38565472a07d07f63ec0d2fd8a69d4d":[8,0,128,0,5]
"dc/d53/classtests_1_1_circular_linked_list.html#abde75f6ee432b0378d264da8c7c64db2":[8,0,128,0,2]
};

File diff suppressed because one or more lines are too long

View File

@@ -51,12 +51,13 @@ var searchData=
['nqueensol_48',['NQueenSol',['../da/dac/n__queens__all__solution__optimised_8cpp.html#a23c0547e4fd1708e6fb643b08327a60f',1,'backtracking::n_queens_optimized::NQueenSol()'],['../d7/d24/nqueen__print__all__solutions_8cpp.html#acc809c055f335011de0d9030034c7108',1,'backtracking::n_queens_all_solutions::NQueenSol()']]],
['num_5fchars_49',['NUM_CHARS',['../d0/d3e/classdata__structures_1_1trie.html#a4bfac4be6ed1a34c7159eddb42469191',1,'data_structures::trie']]],
['num_5fdigits_50',['num_digits',['../db/d82/classlarge__number.html#ac09a05ec4aafb4d9e0b4440d6f0e2a93',1,'large_number']]],
['number_5fof_5fpositive_5fdivisors_51',['number_of_positive_divisors',['../d0/da2/number__of__positive__divisors_8cpp.html#ad89ccced8504b5116046cfa03066ffeb',1,'number_of_positive_divisors.cpp']]],
['number_5fof_5fpositive_5fdivisors_2ecpp_52',['number_of_positive_divisors.cpp',['../d0/da2/number__of__positive__divisors_8cpp.html',1,'']]],
['number_5fof_5fsubsets_53',['number_of_subsets',['../d2/d5a/subset__sum_8cpp.html#a7cb50d36a59427a33f64a266dac83d99',1,'backtracking::subset_sum']]],
['number_5fof_5fvertices_54',['number_of_vertices',['../dc/d61/classgraph_1_1_graph.html#a8930d1470d132b19e430d1c71f94c904',1,'graph::Graph']]],
['numberofchildren_55',['numberOfChildren',['../d0/d5f/classoperations__on__datastructures_1_1trie__operations_1_1_tnode.html#afca808362c13273ca8c8ae7d58e8eee0',1,'operations_on_datastructures::trie_operations::Tnode']]],
['numberofciphersinfactorialn_56',['numberOfCiphersInFactorialN',['../da/d50/count__of__trailing__ciphers__in__factorial__n_8cpp.html#a0d5e1d651d0d30bd682f176d8f2b83d0',1,'bit_manipulation::count_of_trailing_ciphers_in_factorial_n']]],
['numerical_20methods_57',['Numerical Methods',['../d5/d88/md__d_i_r_e_c_t_o_r_y.html#autotoc_md60',1,'']]],
['numerical_5fmethods_58',['numerical_methods',['../d1/de0/namespacenumerical__methods.html',1,'']]]
['number_5fof_5fpaths_2ecpp_51',['number_of_paths.cpp',['../d2/d32/number__of__paths_8cpp.html',1,'']]],
['number_5fof_5fpositive_5fdivisors_52',['number_of_positive_divisors',['../d0/da2/number__of__positive__divisors_8cpp.html#ad89ccced8504b5116046cfa03066ffeb',1,'number_of_positive_divisors.cpp']]],
['number_5fof_5fpositive_5fdivisors_2ecpp_53',['number_of_positive_divisors.cpp',['../d0/da2/number__of__positive__divisors_8cpp.html',1,'']]],
['number_5fof_5fsubsets_54',['number_of_subsets',['../d2/d5a/subset__sum_8cpp.html#a7cb50d36a59427a33f64a266dac83d99',1,'backtracking::subset_sum']]],
['number_5fof_5fvertices_55',['number_of_vertices',['../dc/d61/classgraph_1_1_graph.html#a8930d1470d132b19e430d1c71f94c904',1,'graph::Graph']]],
['numberofchildren_56',['numberOfChildren',['../d0/d5f/classoperations__on__datastructures_1_1trie__operations_1_1_tnode.html#afca808362c13273ca8c8ae7d58e8eee0',1,'operations_on_datastructures::trie_operations::Tnode']]],
['numberofciphersinfactorialn_57',['numberOfCiphersInFactorialN',['../da/d50/count__of__trailing__ciphers__in__factorial__n_8cpp.html#a0d5e1d651d0d30bd682f176d8f2b83d0',1,'bit_manipulation::count_of_trailing_ciphers_in_factorial_n']]],
['numerical_20methods_58',['Numerical Methods',['../d5/d88/md__d_i_r_e_c_t_o_r_y.html#autotoc_md60',1,'']]],
['numerical_5fmethods_59',['numerical_methods',['../d1/de0/namespacenumerical__methods.html',1,'']]]
];

File diff suppressed because one or more lines are too long

View File

@@ -103,33 +103,35 @@ var searchData=
['count_5fof_5fset_5fbits_2ecpp_100',['count_of_set_bits.cpp',['../da/db8/count__of__set__bits_8cpp.html',1,'']]],
['count_5fof_5ftrailing_5fciphers_5fin_5ffactorial_5fn_101',['count_of_trailing_ciphers_in_factorial_n',['../dc/d2f/namespacecount__of__trailing__ciphers__in__factorial__n.html',1,'']]],
['count_5fof_5ftrailing_5fciphers_5fin_5ffactorial_5fn_2ecpp_102',['count_of_trailing_ciphers_in_factorial_n.cpp',['../da/d50/count__of__trailing__ciphers__in__factorial__n_8cpp.html',1,'']]],
['countbitsflip_103',['countBitsFlip',['../d7/d56/count__bits__flip_8cpp.html#a2548486b6c3b80101e768562e687ef7b',1,'bit_manipulation::count_bits_flip']]],
['countinversion_104',['countInversion',['../d2/d26/count__inversions_8cpp.html#a3332498eabf6579ef059c0d0e9f4ec80',1,'sorting::inversion']]],
['countsetbits_105',['countSetBits',['../da/db8/count__of__set__bits_8cpp.html#a86c98dc299e4db28b73e08309d977e62',1,'bit_manipulation::count_of_set_bits']]],
['covenant_20code_20of_20conduct_106',['Contributor Covenant Code of Conduct',['../d3/dd7/md__c_o_d_e___o_f___c_o_n_d_u_c_t.html',1,'']]],
['cpu_20scheduling_20algorithms_107',['Cpu Scheduling Algorithms',['../d5/d88/md__d_i_r_e_c_t_o_r_y.html#autotoc_md48',1,'']]],
['create_5fhash_108',['create_hash',['../d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8',1,'string_search']]],
['create_5flist_109',['create_list',['../d1/df3/hash__search_8cpp.html#ad0831425f1389166a9518f422d0c6ec5',1,'hash_search.cpp']]],
['create_5fmatrix_110',['create_matrix',['../de/d75/qr__eigen__values_8cpp.html#a9bbf469d5525a816b0d6ca812119093d',1,'qr_eigen_values.cpp']]],
['create_5fmessage_5fschedule_5farray_111',['create_message_schedule_array',['../d4/d08/sha256_8cpp.html#a525531b3939ed44fbf01674e21931b3a',1,'hashing::sha256']]],
['create_5frandom_5farray_112',['create_random_array',['../dd/d0d/insertion__sort_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort.cpp'],['../dd/d89/insertion__sort__recursive_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort_recursive.cpp']]],
['createnewnode_113',['createNewNode',['../d9/d12/classothers_1_1iterative__tree__traversals_1_1_binary_tree.html#a3078a5ccf45d6a7031dcf46e43de65b6',1,'others::iterative_tree_traversals::BinaryTree::createNewNode()'],['../dd/de1/classothers_1_1recursive__tree__traversals_1_1_b_t.html#af16da5fe0f5c54d31778d71d5a042114',1,'others::recursive_tree_traversals::BT::createNewNode()']]],
['createnode_114',['createNode',['../d8/dee/avltree_8cpp.html#a48d897353aeb6a721dbc6b6c57e035e6',1,'avltree.cpp']]],
['createset_115',['CreateSet',['../de/d23/disjoint__set_8cpp.html#a010965fc5f16cca5a62506afab24e4ec',1,'disjoint_set.cpp']]],
['cross_116',['cross',['../df/d66/vector__cross__product_8cpp.html#a225732399c5c076976eae5b180a9f8c9',1,'math::vector_cross']]],
['cube_5fsurface_5farea_117',['cube_surface_area',['../dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c',1,'math']]],
['cube_5fsurface_5fperimeter_118',['cube_surface_perimeter',['../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b',1,'math']]],
['cube_5fvolume_119',['cube_volume',['../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725',1,'math']]],
['cumulative_5fdistribution_120',['cumulative_distribution',['../da/d19/classprobability_1_1geometric__dist_1_1geometric__distribution.html#a08328dc7d62188427111f176b56a105a',1,'probability::geometric_dist::geometric_distribution']]],
['current_5fsize_121',['current_size',['../db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#afdfd2f4418c70b1bda50f2c3e416d80b',1,'data_structures::stack_using_queue::Stack']]],
['cut_5frod_122',['cut_rod',['../d8/d36/namespacecut__rod.html',1,'']]],
['cut_5frod_2ecpp_123',['cut_rod.cpp',['../d6/d10/cut__rod_8cpp.html',1,'']]],
['cycle_5fdetection_124',['cycle_detection',['../da/d82/namespacecycle__detection.html',1,'']]],
['cycle_5fsort_125',['cycle_sort',['../d4/dfb/namespacecycle__sort.html',1,'']]],
['cycle_5fsort_2ecpp_126',['cycle_sort.cpp',['../de/d07/cycle__sort_8cpp.html',1,'']]],
['cyclecheck_127',['CycleCheck',['../d3/dbb/class_cycle_check.html',1,'']]],
['cyclesort_128',['cycleSort',['../de/d07/cycle__sort_8cpp.html#ae79a9d247691fce0d655fce75f1c04fa',1,'sorting::cycle_sort']]],
['cylinder_5fsurface_5farea_129',['cylinder_surface_area',['../dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864',1,'math']]],
['cylinder_5fsurface_5fperimeter_130',['cylinder_surface_perimeter',['../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73',1,'math']]],
['cylinder_5fvolume_131',['cylinder_volume',['../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca',1,'math']]]
['count_5fpaths_103',['count_paths',['../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987',1,'graph']]],
['count_5fpaths_5fdfs_104',['count_paths_dfs',['../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b',1,'graph']]],
['countbitsflip_105',['countBitsFlip',['../d7/d56/count__bits__flip_8cpp.html#a2548486b6c3b80101e768562e687ef7b',1,'bit_manipulation::count_bits_flip']]],
['countinversion_106',['countInversion',['../d2/d26/count__inversions_8cpp.html#a3332498eabf6579ef059c0d0e9f4ec80',1,'sorting::inversion']]],
['countsetbits_107',['countSetBits',['../da/db8/count__of__set__bits_8cpp.html#a86c98dc299e4db28b73e08309d977e62',1,'bit_manipulation::count_of_set_bits']]],
['covenant_20code_20of_20conduct_108',['Contributor Covenant Code of Conduct',['../d3/dd7/md__c_o_d_e___o_f___c_o_n_d_u_c_t.html',1,'']]],
['cpu_20scheduling_20algorithms_109',['Cpu Scheduling Algorithms',['../d5/d88/md__d_i_r_e_c_t_o_r_y.html#autotoc_md48',1,'']]],
['create_5fhash_110',['create_hash',['../d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8',1,'string_search']]],
['create_5flist_111',['create_list',['../d1/df3/hash__search_8cpp.html#ad0831425f1389166a9518f422d0c6ec5',1,'hash_search.cpp']]],
['create_5fmatrix_112',['create_matrix',['../de/d75/qr__eigen__values_8cpp.html#a9bbf469d5525a816b0d6ca812119093d',1,'qr_eigen_values.cpp']]],
['create_5fmessage_5fschedule_5farray_113',['create_message_schedule_array',['../d4/d08/sha256_8cpp.html#a525531b3939ed44fbf01674e21931b3a',1,'hashing::sha256']]],
['create_5frandom_5farray_114',['create_random_array',['../dd/d0d/insertion__sort_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort.cpp'],['../dd/d89/insertion__sort__recursive_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort_recursive.cpp']]],
['createnewnode_115',['createNewNode',['../d9/d12/classothers_1_1iterative__tree__traversals_1_1_binary_tree.html#a3078a5ccf45d6a7031dcf46e43de65b6',1,'others::iterative_tree_traversals::BinaryTree::createNewNode()'],['../dd/de1/classothers_1_1recursive__tree__traversals_1_1_b_t.html#af16da5fe0f5c54d31778d71d5a042114',1,'others::recursive_tree_traversals::BT::createNewNode()']]],
['createnode_116',['createNode',['../d8/dee/avltree_8cpp.html#a48d897353aeb6a721dbc6b6c57e035e6',1,'avltree.cpp']]],
['createset_117',['CreateSet',['../de/d23/disjoint__set_8cpp.html#a010965fc5f16cca5a62506afab24e4ec',1,'disjoint_set.cpp']]],
['cross_118',['cross',['../df/d66/vector__cross__product_8cpp.html#a225732399c5c076976eae5b180a9f8c9',1,'math::vector_cross']]],
['cube_5fsurface_5farea_119',['cube_surface_area',['../dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c',1,'math']]],
['cube_5fsurface_5fperimeter_120',['cube_surface_perimeter',['../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b',1,'math']]],
['cube_5fvolume_121',['cube_volume',['../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725',1,'math']]],
['cumulative_5fdistribution_122',['cumulative_distribution',['../da/d19/classprobability_1_1geometric__dist_1_1geometric__distribution.html#a08328dc7d62188427111f176b56a105a',1,'probability::geometric_dist::geometric_distribution']]],
['current_5fsize_123',['current_size',['../db/d5b/structdata__structures_1_1stack__using__queue_1_1_stack.html#afdfd2f4418c70b1bda50f2c3e416d80b',1,'data_structures::stack_using_queue::Stack']]],
['cut_5frod_124',['cut_rod',['../d8/d36/namespacecut__rod.html',1,'']]],
['cut_5frod_2ecpp_125',['cut_rod.cpp',['../d6/d10/cut__rod_8cpp.html',1,'']]],
['cycle_5fdetection_126',['cycle_detection',['../da/d82/namespacecycle__detection.html',1,'']]],
['cycle_5fsort_127',['cycle_sort',['../d4/dfb/namespacecycle__sort.html',1,'']]],
['cycle_5fsort_2ecpp_128',['cycle_sort.cpp',['../de/d07/cycle__sort_8cpp.html',1,'']]],
['cyclecheck_129',['CycleCheck',['../d3/dbb/class_cycle_check.html',1,'']]],
['cyclesort_130',['cycleSort',['../de/d07/cycle__sort_8cpp.html#ae79a9d247691fce0d655fce75f1c04fa',1,'sorting::cycle_sort']]],
['cylinder_5fsurface_5farea_131',['cylinder_surface_area',['../dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864',1,'math']]],
['cylinder_5fsurface_5fperimeter_132',['cylinder_surface_perimeter',['../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73',1,'math']]],
['cylinder_5fvolume_133',['cylinder_volume',['../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca',1,'math']]]
];

View File

@@ -12,5 +12,6 @@ var searchData=
['non_5fpreemptive_5fsjf_5fscheduling_2ecpp_9',['non_preemptive_sjf_scheduling.cpp',['../d7/d1a/non__preemptive__sjf__scheduling_8cpp.html',1,'']]],
['non_5frecursive_5fmerge_5fsort_2ecpp_10',['non_recursive_merge_sort.cpp',['../d0/db6/non__recursive__merge__sort_8cpp.html',1,'']]],
['nqueen_5fprint_5fall_5fsolutions_2ecpp_11',['nqueen_print_all_solutions.cpp',['../d7/d24/nqueen__print__all__solutions_8cpp.html',1,'']]],
['number_5fof_5fpositive_5fdivisors_2ecpp_12',['number_of_positive_divisors.cpp',['../d0/da2/number__of__positive__divisors_8cpp.html',1,'']]]
['number_5fof_5fpaths_2ecpp_12',['number_of_paths.cpp',['../d2/d32/number__of__paths_8cpp.html',1,'']]],
['number_5fof_5fpositive_5fdivisors_2ecpp_13',['number_of_positive_divisors.cpp',['../d0/da2/number__of__positive__divisors_8cpp.html',1,'']]]
];

File diff suppressed because one or more lines are too long

View File

@@ -36,24 +36,26 @@ var searchData=
['contains_33',['contains',['../d9/dde/classbinary__search__tree.html#aa4f84b2eec9b9201af1840868ddb5fb2',1,'binary_search_tree::contains(std::unique_ptr&lt; bst_node &gt; &amp;node, T value)'],['../d9/dde/classbinary__search__tree.html#a6bf5b410299df2320ddf2709dda61f63',1,'binary_search_tree::contains(T value)'],['../d9/dae/classdata__structures_1_1_bitset.html#a9ef54c7c3f6494b36ead3ae2e5cf43ac',1,'data_structures::Bitset::contains()'],['../dc/dd4/classdata__structures_1_1_bloom_filter.html#a576db259488dbfb67624a9652a5ab08b',1,'data_structures::BloomFilter::contains()']]],
['convexhull_34',['Convexhull',['../d4/dde/classgeometry_1_1jarvis_1_1_convexhull.html#a8306e48040a8570e164c58d1c530f870',1,'geometry::jarvis::Convexhull']]],
['copy_5fall_5fnodes_35',['copy_all_nodes',['../d6/d05/reverse__a__linked__list_8cpp.html#a7f80d9712cc7d77399dcacb4c2917511',1,'data_structures::linked_list']]],
['countbitsflip_36',['countBitsFlip',['../d7/d56/count__bits__flip_8cpp.html#a2548486b6c3b80101e768562e687ef7b',1,'bit_manipulation::count_bits_flip']]],
['countinversion_37',['countInversion',['../d2/d26/count__inversions_8cpp.html#a3332498eabf6579ef059c0d0e9f4ec80',1,'sorting::inversion']]],
['countsetbits_38',['countSetBits',['../da/db8/count__of__set__bits_8cpp.html#a86c98dc299e4db28b73e08309d977e62',1,'bit_manipulation::count_of_set_bits']]],
['create_5fhash_39',['create_hash',['../d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8',1,'string_search']]],
['create_5flist_40',['create_list',['../d1/df3/hash__search_8cpp.html#ad0831425f1389166a9518f422d0c6ec5',1,'hash_search.cpp']]],
['create_5fmatrix_41',['create_matrix',['../de/d75/qr__eigen__values_8cpp.html#a9bbf469d5525a816b0d6ca812119093d',1,'qr_eigen_values.cpp']]],
['create_5fmessage_5fschedule_5farray_42',['create_message_schedule_array',['../d4/d08/sha256_8cpp.html#a525531b3939ed44fbf01674e21931b3a',1,'hashing::sha256']]],
['create_5frandom_5farray_43',['create_random_array',['../dd/d0d/insertion__sort_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort.cpp'],['../dd/d89/insertion__sort__recursive_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort_recursive.cpp']]],
['createnewnode_44',['createNewNode',['../d9/d12/classothers_1_1iterative__tree__traversals_1_1_binary_tree.html#a3078a5ccf45d6a7031dcf46e43de65b6',1,'others::iterative_tree_traversals::BinaryTree::createNewNode()'],['../dd/de1/classothers_1_1recursive__tree__traversals_1_1_b_t.html#af16da5fe0f5c54d31778d71d5a042114',1,'others::recursive_tree_traversals::BT::createNewNode()']]],
['createnode_45',['createNode',['../d8/dee/avltree_8cpp.html#a48d897353aeb6a721dbc6b6c57e035e6',1,'avltree.cpp']]],
['createset_46',['CreateSet',['../de/d23/disjoint__set_8cpp.html#a010965fc5f16cca5a62506afab24e4ec',1,'disjoint_set.cpp']]],
['cross_47',['cross',['../df/d66/vector__cross__product_8cpp.html#a225732399c5c076976eae5b180a9f8c9',1,'math::vector_cross']]],
['cube_5fsurface_5farea_48',['cube_surface_area',['../dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c',1,'math']]],
['cube_5fsurface_5fperimeter_49',['cube_surface_perimeter',['../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b',1,'math']]],
['cube_5fvolume_50',['cube_volume',['../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725',1,'math']]],
['cumulative_5fdistribution_51',['cumulative_distribution',['../da/d19/classprobability_1_1geometric__dist_1_1geometric__distribution.html#a08328dc7d62188427111f176b56a105a',1,'probability::geometric_dist::geometric_distribution']]],
['cyclesort_52',['cycleSort',['../de/d07/cycle__sort_8cpp.html#ae79a9d247691fce0d655fce75f1c04fa',1,'sorting::cycle_sort']]],
['cylinder_5fsurface_5farea_53',['cylinder_surface_area',['../dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864',1,'math']]],
['cylinder_5fsurface_5fperimeter_54',['cylinder_surface_perimeter',['../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73',1,'math']]],
['cylinder_5fvolume_55',['cylinder_volume',['../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca',1,'math']]]
['count_5fpaths_36',['count_paths',['../df/dce/namespacegraph.html#a7c3adb1551bc527a7aa93f331b1c0987',1,'graph']]],
['count_5fpaths_5fdfs_37',['count_paths_dfs',['../df/dce/namespacegraph.html#af99fccdd19e8f223e8749561589a762b',1,'graph']]],
['countbitsflip_38',['countBitsFlip',['../d7/d56/count__bits__flip_8cpp.html#a2548486b6c3b80101e768562e687ef7b',1,'bit_manipulation::count_bits_flip']]],
['countinversion_39',['countInversion',['../d2/d26/count__inversions_8cpp.html#a3332498eabf6579ef059c0d0e9f4ec80',1,'sorting::inversion']]],
['countsetbits_40',['countSetBits',['../da/db8/count__of__set__bits_8cpp.html#a86c98dc299e4db28b73e08309d977e62',1,'bit_manipulation::count_of_set_bits']]],
['create_5fhash_41',['create_hash',['../d9/d03/namespacestring__search.html#a8fb0bc932ba8b582c9f4c71338d050f8',1,'string_search']]],
['create_5flist_42',['create_list',['../d1/df3/hash__search_8cpp.html#ad0831425f1389166a9518f422d0c6ec5',1,'hash_search.cpp']]],
['create_5fmatrix_43',['create_matrix',['../de/d75/qr__eigen__values_8cpp.html#a9bbf469d5525a816b0d6ca812119093d',1,'qr_eigen_values.cpp']]],
['create_5fmessage_5fschedule_5farray_44',['create_message_schedule_array',['../d4/d08/sha256_8cpp.html#a525531b3939ed44fbf01674e21931b3a',1,'hashing::sha256']]],
['create_5frandom_5farray_45',['create_random_array',['../dd/d0d/insertion__sort_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort.cpp'],['../dd/d89/insertion__sort__recursive_8cpp.html#a59914553f24088342c139645a02a8a49',1,'create_random_array(T *arr, int N):&#160;insertion_sort_recursive.cpp']]],
['createnewnode_46',['createNewNode',['../d9/d12/classothers_1_1iterative__tree__traversals_1_1_binary_tree.html#a3078a5ccf45d6a7031dcf46e43de65b6',1,'others::iterative_tree_traversals::BinaryTree::createNewNode()'],['../dd/de1/classothers_1_1recursive__tree__traversals_1_1_b_t.html#af16da5fe0f5c54d31778d71d5a042114',1,'others::recursive_tree_traversals::BT::createNewNode()']]],
['createnode_47',['createNode',['../d8/dee/avltree_8cpp.html#a48d897353aeb6a721dbc6b6c57e035e6',1,'avltree.cpp']]],
['createset_48',['CreateSet',['../de/d23/disjoint__set_8cpp.html#a010965fc5f16cca5a62506afab24e4ec',1,'disjoint_set.cpp']]],
['cross_49',['cross',['../df/d66/vector__cross__product_8cpp.html#a225732399c5c076976eae5b180a9f8c9',1,'math::vector_cross']]],
['cube_5fsurface_5farea_50',['cube_surface_area',['../dd/d47/namespacemath.html#abc46c784a297fc1d2eb8b33a327fba4c',1,'math']]],
['cube_5fsurface_5fperimeter_51',['cube_surface_perimeter',['../dd/d47/namespacemath.html#a8998ca7b1886d1d7d00aef3b457a9b1b',1,'math']]],
['cube_5fvolume_52',['cube_volume',['../dd/d47/namespacemath.html#ae413098478fa38acaac887b7654f0725',1,'math']]],
['cumulative_5fdistribution_53',['cumulative_distribution',['../da/d19/classprobability_1_1geometric__dist_1_1geometric__distribution.html#a08328dc7d62188427111f176b56a105a',1,'probability::geometric_dist::geometric_distribution']]],
['cyclesort_54',['cycleSort',['../de/d07/cycle__sort_8cpp.html#ae79a9d247691fce0d655fce75f1c04fa',1,'sorting::cycle_sort']]],
['cylinder_5fsurface_5farea_55',['cylinder_surface_area',['../dd/d47/namespacemath.html#ac5803413618fcfb922cb32c6db0fc864',1,'math']]],
['cylinder_5fsurface_5fperimeter_56',['cylinder_surface_perimeter',['../dd/d47/namespacemath.html#a1d4df7a4e43a2eac1acc0ac610487c73',1,'math']]],
['cylinder_5fvolume_57',['cylinder_volume',['../dd/d47/namespacemath.html#abde24398be43538c62e4a496968e60ca',1,'math']]]
];

File diff suppressed because one or more lines are too long