Documentation for c6af943508
@@ -1,13 +1,15 @@
|
||||
<map id="numerical_methods/fast_fourier_transform.cpp" name="numerical_methods/fast_fourier_transform.cpp">
|
||||
<area shape="rect" id="Node000001" title="A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of ..." alt="" coords="131,5,291,46"/>
|
||||
<area shape="rect" id="Node000001" title="A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of ..." alt="" coords="175,5,335,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="169,49,79,90,77,85,166,44"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="201,49,85,91,84,86,200,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,152,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="191,48,150,85,146,81,187,44"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="223,49,157,88,155,83,221,44"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="176,94,246,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="214,46,214,78,208,78,208,46"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="270,94,341,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="236,44,281,82,278,86,233,48"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="365,94,422,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="258,44,353,85,350,90,255,49"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="246,48,227,82,223,79,242,45"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="270,94,330,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="268,45,288,79,283,82,264,48"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="354,94,425,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="290,44,357,83,354,88,287,49"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="449,94,506,120"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="311,44,435,88,433,93,310,49"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
686048b0d6dfe64be6ab4e2c80508de2
|
||||
ec312679357f32a18e418e285334fcef
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: numerical_methods/fast_fourier_transform.cpp Pages: 1 -->
|
||||
<svg width="321pt" height="94pt"
|
||||
viewBox="0.00 0.00 320.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="384pt" height="94pt"
|
||||
viewBox="0.00 0.00 383.62 93.75" 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">
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of ...">
|
||||
<polygon fill="#999999" stroke="#666666" points="214.25,-85.75 94,-85.75 94,-55.25 214.25,-55.25 214.25,-85.75"/>
|
||||
<text text-anchor="start" x="102" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/fast</text>
|
||||
<text text-anchor="middle" x="154.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_fourier_transform.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="247.25,-85.75 127,-85.75 127,-55.25 247.25,-55.25 247.25,-85.75"/>
|
||||
<text text-anchor="start" x="135" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/fast</text>
|
||||
<text text-anchor="middle" x="187.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_fourier_transform.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -42,8 +42,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M121.66,-54.8C101.1,-45.48 74.69,-33.52 54.54,-24.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.99,-21.22 45.44,-20.28 53.11,-27.59 55.99,-21.22"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M146.41,-54.8C119.64,-45.12 84.94,-32.59 59.35,-23.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.66,-20.1 50.07,-20 58.28,-26.68 60.66,-20.1"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -60,8 +60,8 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M137.81,-54.95C128.44,-46.59 116.63,-36.05 106.87,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.22,-24.75 99.43,-20.71 104.56,-29.98 109.22,-24.75"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M162.4,-54.8C147.32,-45.83 128.11,-34.41 113.01,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="114.99,-22.53 104.61,-20.43 111.41,-28.55 114.99,-22.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -78,8 +78,8 @@
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M154.12,-54.95C154.12,-47.71 154.12,-38.84 154.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.63,-31.21 154.13,-21.21 150.63,-31.21 157.63,-31.21"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M178.97,-54.95C174.67,-47.28 169.34,-37.77 164.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="167.89,-28.03 159.95,-21.02 161.79,-31.46 167.89,-28.03"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -87,8 +87,8 @@
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="251.88,-19.25 198.38,-19.25 198.38,0 251.88,0 251.88,-19.25"/>
|
||||
<text text-anchor="middle" x="225.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="243.75,-19.25 198.5,-19.25 198.5,0 243.75,0 243.75,-19.25"/>
|
||||
<text text-anchor="middle" x="221.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -96,8 +96,8 @@
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M171.68,-54.95C181.97,-46.41 194.99,-35.62 205.6,-26.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="207.55,-29.74 213.01,-20.67 203.08,-24.36 207.55,-29.74"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M195.53,-54.95C199.96,-47.28 205.45,-37.77 210.2,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="213.16,-31.42 215.13,-21.01 207.09,-27.92 213.16,-31.42"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -105,8 +105,8 @@
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.62,-19.25 269.62,-19.25 269.62,0 312.62,0 312.62,-19.25"/>
|
||||
<text text-anchor="middle" x="291.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="314.88,-19.25 261.38,-19.25 261.38,0 314.88,0 314.88,-19.25"/>
|
||||
<text text-anchor="middle" x="288.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -114,8 +114,26 @@
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M188.34,-54.8C210.21,-45.4 238.36,-33.3 259.66,-24.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.92,-27.42 268.72,-20.25 258.15,-20.98 260.92,-27.42"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M212.35,-54.8C227.73,-45.83 247.33,-34.41 262.74,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.45,-28.48 271.33,-20.42 260.93,-22.43 264.45,-28.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="375.62,-19.25 332.62,-19.25 332.62,0 375.62,0 375.62,-19.25"/>
|
||||
<text text-anchor="middle" x="354.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M228.84,-54.8C257.58,-44.66 295.22,-31.39 321.71,-22.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.63,-25.44 330.9,-18.81 320.31,-18.84 322.63,-25.44"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 6.2 KiB |
@@ -4,17 +4,17 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: numerical_methods/fast_fourier_transform.cpp Pages: 1 -->
|
||||
<svg width="321pt" height="94pt"
|
||||
viewBox="0.00 0.00 320.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="384pt" height="94pt"
|
||||
viewBox="0.00 0.00 383.62 93.75" 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 89.75)">
|
||||
<title>numerical_methods/fast_fourier_transform.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of ...">
|
||||
<polygon fill="#999999" stroke="#666666" points="214.25,-85.75 94,-85.75 94,-55.25 214.25,-55.25 214.25,-85.75"/>
|
||||
<text text-anchor="start" x="102" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/fast</text>
|
||||
<text text-anchor="middle" x="154.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_fourier_transform.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="247.25,-85.75 127,-85.75 127,-55.25 247.25,-55.25 247.25,-85.75"/>
|
||||
<text text-anchor="start" x="135" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">numerical_methods/fast</text>
|
||||
<text text-anchor="middle" x="187.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_fourier_transform.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -31,8 +31,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M121.66,-54.8C101.1,-45.48 74.69,-33.52 54.54,-24.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.99,-21.22 45.44,-20.28 53.11,-27.59 55.99,-21.22"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M146.41,-54.8C119.64,-45.12 84.94,-32.59 59.35,-23.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.66,-20.1 50.07,-20 58.28,-26.68 60.66,-20.1"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -49,8 +49,8 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M137.81,-54.95C128.44,-46.59 116.63,-36.05 106.87,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.22,-24.75 99.43,-20.71 104.56,-29.98 109.22,-24.75"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M162.4,-54.8C147.32,-45.83 128.11,-34.41 113.01,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="114.99,-22.53 104.61,-20.43 111.41,-28.55 114.99,-22.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -67,8 +67,8 @@
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M154.12,-54.95C154.12,-47.71 154.12,-38.84 154.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.63,-31.21 154.13,-21.21 150.63,-31.21 157.63,-31.21"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M178.97,-54.95C174.67,-47.28 169.34,-37.77 164.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="167.89,-28.03 159.95,-21.02 161.79,-31.46 167.89,-28.03"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -76,8 +76,8 @@
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="251.88,-19.25 198.38,-19.25 198.38,0 251.88,0 251.88,-19.25"/>
|
||||
<text text-anchor="middle" x="225.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="243.75,-19.25 198.5,-19.25 198.5,0 243.75,0 243.75,-19.25"/>
|
||||
<text text-anchor="middle" x="221.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -85,8 +85,8 @@
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M171.68,-54.95C181.97,-46.41 194.99,-35.62 205.6,-26.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="207.55,-29.74 213.01,-20.67 203.08,-24.36 207.55,-29.74"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M195.53,-54.95C199.96,-47.28 205.45,-37.77 210.2,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="213.16,-31.42 215.13,-21.01 207.09,-27.92 213.16,-31.42"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -94,8 +94,8 @@
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.62,-19.25 269.62,-19.25 269.62,0 312.62,0 312.62,-19.25"/>
|
||||
<text text-anchor="middle" x="291.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="314.88,-19.25 261.38,-19.25 261.38,0 314.88,0 314.88,-19.25"/>
|
||||
<text text-anchor="middle" x="288.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -103,8 +103,26 @@
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M188.34,-54.8C210.21,-45.4 238.36,-33.3 259.66,-24.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.92,-27.42 268.72,-20.25 258.15,-20.98 260.92,-27.42"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M212.35,-54.8C227.73,-45.83 247.33,-34.41 262.74,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.45,-28.48 271.33,-20.42 260.93,-22.43 264.45,-28.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="375.62,-19.25 332.62,-19.25 332.62,0 375.62,0 375.62,-19.25"/>
|
||||
<text text-anchor="middle" x="354.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M228.84,-54.8C257.58,-44.66 295.22,-31.39 321.71,-22.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.63,-25.44 330.9,-18.81 320.31,-18.84 322.63,-25.44"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -415,7 +415,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><span class="lineno"> 68</span> <span class="keywordflow">return</span> <a class="code hl_namespace" href="../../d9/dca/namespacesearch.html">search</a>(root->arr[j], str, index + 1);</div>
|
||||
<div class="line"><span class="lineno"> 69</span> }</div>
|
||||
<div class="ttc" id="anamespacesearch_html"><div class="ttname"><a href="../../d9/dca/namespacesearch.html">search</a></div><div class="ttdoc">for std::vector</div><div class="ttdef"><b>Definition</b> binary_search.cpp:46</div></div>
|
||||
<div class="ttc" id="anamespacesearch_html"><div class="ttname"><a href="../../d9/dca/namespacesearch.html">search</a></div><div class="ttdoc">for std::assert</div><div class="ttdef"><b>Definition</b> binary_search.cpp:47</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
|
||||
@@ -114,17 +114,18 @@ $(function(){initNavTree('d0/d46/finding__number__of__digits__in__a__number_8cpp
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <cmath></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for finding_number_of_digits_in_a_number.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/d4a/finding__number__of__digits__in__a__number_8cpp__incl.svg" width="252" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/d4a/finding__number__of__digits__in__a__number_8cpp__incl.svg" width="336" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a8a3b522a675ab4cdec2d275f6f7798a1" id="r_a8a3b522a675ab4cdec2d275f6f7798a1"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a> (uint64_t n)</td></tr>
|
||||
<tr class="memdesc:a8a3b522a675ab4cdec2d275f6f7798a1"><td class="mdescLeft"> </td><td class="mdescRight">for IO operations <br /></td></tr>
|
||||
<tr class="memdesc:a8a3b522a675ab4cdec2d275f6f7798a1"><td class="mdescLeft"> </td><td class="mdescRight">for log calculation <br /></td></tr>
|
||||
<tr class="separator:a8a3b522a675ab4cdec2d275f6f7798a1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac0862b67cf73651707ece04673e1ae49" id="r_ac0862b67cf73651707ece04673e1ae49"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a> (double n)</td></tr>
|
||||
<tr class="memdesc:ac0862b67cf73651707ece04673e1ae49"><td class="mdescLeft"> </td><td class="mdescRight">This function finds the number of digits in constant time using logarithmic function TC: O(1) <br /></td></tr>
|
||||
@@ -159,8 +160,8 @@ the number of digits in a number.md" target="_blank">Algorithms-Explanation</a>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>for IO operations </p>
|
||||
<p>for assert for log calculation</p>
|
||||
<p>for log calculation </p>
|
||||
<p>for assert for IO operations</p>
|
||||
<p>The main function that checks the number of digits in a number. TC : O(number of digits) </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">n</td><td>the number to check its digits </td></tr>
|
||||
@@ -169,21 +170,21 @@ the number of digits in a number.md" target="_blank">Algorithms-Explanation</a>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the digits count </dd></dl>
|
||||
<p>< the variable used for the digits count</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 30</span> {</div>
|
||||
<div class="line"><span class="lineno"> 31</span> uint64_t count = 0; <span class="comment">///< the variable used for the digits count</span></div>
|
||||
<div class="line"><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><span class="lineno"> 33</span> <span class="comment">// iterate until `n` becomes 0</span></div>
|
||||
<div class="line"><span class="lineno"> 34</span> <span class="comment">// remove last digit from `n` in each iteration</span></div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="comment">// increase `count` by 1 in each iteration</span></div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">while</span> (n != 0) {</div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="comment">// we can also use `n = n / 10`</span></div>
|
||||
<div class="line"><span class="lineno"> 38</span> n /= 10;</div>
|
||||
<div class="line"><span class="lineno"> 39</span> <span class="comment">// each time the loop is running, `count` will be incremented by 1.</span></div>
|
||||
<div class="line"><span class="lineno"> 40</span> ++count;</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> <span class="keywordflow">return</span> count;</div>
|
||||
<div class="line"><span class="lineno"> 44</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 31</span> {</div>
|
||||
<div class="line"><span class="lineno"> 32</span> uint64_t count = 0; <span class="comment">///< the variable used for the digits count</span></div>
|
||||
<div class="line"><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><span class="lineno"> 34</span> <span class="comment">// iterate until `n` becomes 0</span></div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="comment">// remove last digit from `n` in each iteration</span></div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="comment">// increase `count` by 1 in each iteration</span></div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">while</span> (n != 0) {</div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="comment">// we can also use `n = n / 10`</span></div>
|
||||
<div class="line"><span class="lineno"> 39</span> n /= 10;</div>
|
||||
<div class="line"><span class="lineno"> 40</span> <span class="comment">// each time the loop is running, `count` will be incremented by 1.</span></div>
|
||||
<div class="line"><span class="lineno"> 41</span> ++count;</div>
|
||||
<div class="line"><span class="lineno"> 42</span> }</div>
|
||||
<div class="line"><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><span class="lineno"> 44</span> <span class="keywordflow">return</span> count;</div>
|
||||
<div class="line"><span class="lineno"> 45</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -210,21 +211,21 @@ the number of digits in a number.md" target="_blank">Algorithms-Explanation</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the digits count </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 53</span> {</div>
|
||||
<div class="line"><span class="lineno"> 54</span> <span class="comment">// log(0) is undefined</span></div>
|
||||
<div class="line"><span class="lineno"> 55</span> <span class="keywordflow">if</span> (n == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 57</span> }</div>
|
||||
<div class="line"><span class="lineno"> 58</span> </div>
|
||||
<div class="line"><span class="lineno"> 59</span> <span class="comment">// to handle the negative numbers</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> <span class="keywordflow">if</span> (n < 0) {</div>
|
||||
<div class="line"><span class="lineno"> 61</span> n = -n;</div>
|
||||
<div class="line"><span class="lineno"> 62</span> }</div>
|
||||
<div class="line"><span class="lineno"> 63</span> </div>
|
||||
<div class="line"><span class="lineno"> 64</span> <span class="keywordtype">double</span> count = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/floor.html">floor</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log10.html">log10</a>(n) + 1);</div>
|
||||
<div class="line"><span class="lineno"> 65</span> </div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">return</span> count;</div>
|
||||
<div class="line"><span class="lineno"> 67</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 54</span> {</div>
|
||||
<div class="line"><span class="lineno"> 55</span> <span class="comment">// log(0) is undefined</span></div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keywordflow">if</span> (n == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 57</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 58</span> }</div>
|
||||
<div class="line"><span class="lineno"> 59</span> </div>
|
||||
<div class="line"><span class="lineno"> 60</span> <span class="comment">// to handle the negative numbers</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="keywordflow">if</span> (n < 0) {</div>
|
||||
<div class="line"><span class="lineno"> 62</span> n = -n;</div>
|
||||
<div class="line"><span class="lineno"> 63</span> }</div>
|
||||
<div class="line"><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><span class="lineno"> 65</span> <span class="keywordtype">double</span> count = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/floor.html">floor</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log10.html">log10</a>(n) + 1);</div>
|
||||
<div class="line"><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><span class="lineno"> 67</span> <span class="keywordflow">return</span> count;</div>
|
||||
<div class="line"><span class="lineno"> 68</span>}</div>
|
||||
<div class="ttc" id="afloor_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/floor.html">std::floor</a></div><div class="ttdeci">T floor(T... args)</div></div>
|
||||
<div class="ttc" id="alog10_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/log10.html">std::log10</a></div><div class="ttdeci">T log10(T... args)</div></div>
|
||||
</div><!-- fragment -->
|
||||
@@ -255,16 +256,16 @@ the number of digits in a number.md" target="_blank">Algorithms-Explanation</a>
|
||||
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 73</span> {</div>
|
||||
<div class="line"><span class="lineno"> 74</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(5492) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 75</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(-0) == 0);</div>
|
||||
<div class="line"><span class="lineno"> 76</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(10000) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 77</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(9) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 78</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(100000) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 79</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(13) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 80</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(564) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 81</span>}</div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_a8a3b522a675ab4cdec2d275f6f7798a1"><div class="ttname"><a href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a></div><div class="ttdeci">uint64_t finding_number_of_digits_in_a_number(uint64_t n)</div><div class="ttdoc">for IO operations</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:30</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 74</span> {</div>
|
||||
<div class="line"><span class="lineno"> 75</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(5492) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 76</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(-0) == 0);</div>
|
||||
<div class="line"><span class="lineno"> 77</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(10000) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 78</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(9) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 79</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(100000) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 80</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(13) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 81</span> assert(<a class="code hl_function" href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a>(564) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 82</span>}</div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_a8a3b522a675ab4cdec2d275f6f7798a1"><div class="ttname"><a href="#a8a3b522a675ab4cdec2d275f6f7798a1">finding_number_of_digits_in_a_number</a></div><div class="ttdeci">uint64_t finding_number_of_digits_in_a_number(uint64_t n)</div><div class="ttdoc">for log calculation</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:31</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -290,15 +291,15 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 96</span> {</div>
|
||||
<div class="line"><span class="lineno"> 97</span> <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 98</span> <a class="code hl_function" href="#ab4c15b7f1aedd4419a65cd49562cc300">first_test</a>();</div>
|
||||
<div class="line"><span class="lineno"> 99</span> second_test();</div>
|
||||
<div class="line"><span class="lineno"> 100</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 102</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 97</span> {</div>
|
||||
<div class="line"><span class="lineno"> 98</span> <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 99</span> <a class="code hl_function" href="#ab4c15b7f1aedd4419a65cd49562cc300">first_test</a>();</div>
|
||||
<div class="line"><span class="lineno"> 100</span> second_test();</div>
|
||||
<div class="line"><span class="lineno"> 101</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 102</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 103</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_ab4c15b7f1aedd4419a65cd49562cc300"><div class="ttname"><a href="#ab4c15b7f1aedd4419a65cd49562cc300">first_test</a></div><div class="ttdeci">static void first_test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:73</div></div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_ab4c15b7f1aedd4419a65cd49562cc300"><div class="ttname"><a href="#ab4c15b7f1aedd4419a65cd49562cc300">first_test</a></div><div class="ttdeci">static void first_test()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:74</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -329,16 +330,16 @@ Here is the call graph for this function:</div>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 83</span> {</div>
|
||||
<div class="line"><span class="lineno"> 84</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(5492) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 85</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(-0) == 0);</div>
|
||||
<div class="line"><span class="lineno"> 86</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(10000) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 87</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(9) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 88</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(100000) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 89</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(13) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 90</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(564) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 91</span>}</div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_ac0862b67cf73651707ece04673e1ae49"><div class="ttname"><a href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a></div><div class="ttdeci">double finding_number_of_digits_in_a_number_using_log(double n)</div><div class="ttdoc">This function finds the number of digits in constant time using logarithmic function TC: O(1)</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:53</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 84</span> {</div>
|
||||
<div class="line"><span class="lineno"> 85</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(5492) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 86</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(-0) == 0);</div>
|
||||
<div class="line"><span class="lineno"> 87</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(10000) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 88</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(9) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 89</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(100000) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 90</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(13) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> assert(<a class="code hl_function" href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a>(564) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 92</span>}</div>
|
||||
<div class="ttc" id="afinding__number__of__digits__in__a__number_8cpp_html_ac0862b67cf73651707ece04673e1ae49"><div class="ttname"><a href="#ac0862b67cf73651707ece04673e1ae49">finding_number_of_digits_in_a_number_using_log</a></div><div class="ttdeci">double finding_number_of_digits_in_a_number_using_log(double n)</div><div class="ttdoc">This function finds the number of digits in constant time using logarithmic function TC: O(1)</div><div class="ttdef"><b>Definition</b> finding_number_of_digits_in_a_number.cpp:54</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<map id="first_test" name="first_test">
|
||||
<area shape="rect" id="Node000001" title="Self-test implementations." alt="" coords="5,13,78,38"/>
|
||||
<area shape="rect" id="Node000002" href="$d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" title="for IO operations" alt="" coords="126,5,291,46"/>
|
||||
<area shape="rect" id="Node000002" href="$d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" title="for log calculation" alt="" coords="126,5,291,46"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="78,23,110,23,110,28,78,28"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
3531f7362357ba2048cf757e66bfbd46
|
||||
5ad9fc7e13e0f0dc5673de02235e03df
|
||||
@@ -31,7 +31,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for IO operations">
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for log calculation">
|
||||
<polygon fill="white" stroke="#666666" points="214.25,-30.5 90.25,-30.5 90.25,0 214.25,0 214.25,-30.5"/>
|
||||
<text text-anchor="start" x="98.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">finding_number_of_digits</text>
|
||||
<text text-anchor="middle" x="152.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_in_a_number</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -20,7 +20,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for IO operations">
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for log calculation">
|
||||
<polygon fill="white" stroke="#666666" points="214.25,-30.5 90.25,-30.5 90.25,0 214.25,0 214.25,-30.5"/>
|
||||
<text text-anchor="start" x="98.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">finding_number_of_digits</text>
|
||||
<text text-anchor="middle" x="152.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_in_a_number</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -2,6 +2,6 @@
|
||||
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,13,55,38"/>
|
||||
<area shape="rect" id="Node000002" href="$d0/d46/finding__number__of__digits__in__a__number_8cpp.html#ab4c15b7f1aedd4419a65cd49562cc300" title="Self-test implementations." alt="" coords="103,13,175,38"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,23,87,23,87,28,55,28"/>
|
||||
<area shape="rect" id="Node000003" href="$d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" title="for IO operations" alt="" coords="223,5,388,46"/>
|
||||
<area shape="rect" id="Node000003" href="$d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" title="for log calculation" alt="" coords="223,5,388,46"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="175,23,207,23,207,28,175,28"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
bee79590a2d72cd2365743e7c4c8b9e0
|
||||
cf8cf0ca556d01b11a9915d07f3e320f
|
||||
@@ -49,7 +49,7 @@
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for IO operations">
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for log calculation">
|
||||
<polygon fill="white" stroke="#666666" points="287.25,-30.5 163.25,-30.5 163.25,0 287.25,0 287.25,-30.5"/>
|
||||
<text text-anchor="start" x="171.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">finding_number_of_digits</text>
|
||||
<text text-anchor="middle" x="225.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_in_a_number</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@@ -38,7 +38,7 @@
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for IO operations">
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/d46/finding__number__of__digits__in__a__number_8cpp.html#a8a3b522a675ab4cdec2d275f6f7798a1" target="_top" xlink:title="for log calculation">
|
||||
<polygon fill="white" stroke="#666666" points="287.25,-30.5 163.25,-30.5 163.25,0 287.25,0 287.25,-30.5"/>
|
||||
<text text-anchor="start" x="171.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">finding_number_of_digits</text>
|
||||
<text text-anchor="middle" x="225.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_in_a_number</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -127,7 +127,7 @@ Include dependency graph for approximate_pi.cpp:</div>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html">math</a></td></tr>
|
||||
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft"> </td><td class="mdescRight">for IO operations <br /></td></tr>
|
||||
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft"> </td><td class="mdescRight">for assert <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
|
||||
@@ -253,7 +253,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
|
||||
<div class="ttc" id="anamespacedouble__hashing_html_a0d90726ed1de7b3d2ae261baed048003"><div class="ttname"><a href="#a0d90726ed1de7b3d2ae261baed048003">double_hashing::hashFxn</a></div><div class="ttdeci">size_t hashFxn(int key)</div><div class="ttdoc">Hash a key. Uses the STL library's std::hash() function.</div><div class="ttdef"><b>Definition</b> double_hash_hash_table.cpp:47</div></div>
|
||||
<div class="ttc" id="auint128__t_8hpp_html_a3ff77262ffd6743df5b808d41382a6f3"><div class="ttname"><a href="../../da/d41/uint128__t_8hpp.html#a3ff77262ffd6743df5b808d41382a6f3">add</a></div><div class="ttdeci">std::string add(const std::string &first, const std::string &second)</div><div class="ttdoc">Adding two string.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:37</div></div>
|
||||
<div class="ttc" id="auint128__t_8hpp_html_a3ff77262ffd6743df5b808d41382a6f3"><div class="ttname"><a href="../../da/d41/uint128__t_8hpp.html#a3ff77262ffd6743df5b808d41382a6f3">add</a></div><div class="ttdeci">std::string add(const std::string &first, const std::string &second)</div><div class="ttdoc">Adding two string.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:38</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -371,7 +371,7 @@ new hash if no conflicts present </dd></dl>
|
||||
<div class="line"><span class="lineno"> 110</span> } <span class="keywordflow">while</span> (entry.<a class="code hl_variable" href="../../d9/dde/structdouble__hashing_1_1_entry.html#ae114967c89dbba3b754dc4976bba3248">key</a> != notPresent);</div>
|
||||
<div class="line"><span class="lineno"> 111</span> <span class="keywordflow">return</span> notPresent;</div>
|
||||
<div class="line"><span class="lineno"> 112</span>}</div>
|
||||
<div class="ttc" id="amd5_8cpp_html_a88705fab5f92adf3427b4cf76ff33edb"><div class="ttname"><a href="../../d5/d96/md5_8cpp.html#a88705fab5f92adf3427b4cf76ff33edb">hashing::md5::hash</a></div><div class="ttdeci">void * hash(const std::string &message)</div><div class="ttdoc">Converts the string to bytestring and calls the main algorithm.</div><div class="ttdef"><b>Definition</b> md5.cpp:287</div></div>
|
||||
<div class="ttc" id="amd5_8cpp_html_a88705fab5f92adf3427b4cf76ff33edb"><div class="ttname"><a href="../../d5/d96/md5_8cpp.html#a88705fab5f92adf3427b4cf76ff33edb">hashing::md5::hash</a></div><div class="ttdeci">void * hash(const std::string &message)</div><div class="ttdoc">Converts the string to bytestring and calls the main algorithm.</div><div class="ttdef"><b>Definition</b> md5.cpp:288</div></div>
|
||||
<div class="ttc" id="anamespacedouble__hashing_html_a33968a1178289ab61445dd4000df7082"><div class="ttname"><a href="#a33968a1178289ab61445dd4000df7082">double_hashing::otherHashFxn</a></div><div class="ttdeci">size_t otherHashFxn(int key)</div><div class="ttdoc">Used for second hash function.</div><div class="ttdef"><b>Definition</b> double_hash_hash_table.cpp:58</div></div>
|
||||
<div class="ttc" id="anamespacedouble__hashing_html_ac2adfce49ac57f6dbd1778d2c1ce0d2b"><div class="ttname"><a href="#ac2adfce49ac57f6dbd1778d2c1ce0d2b">double_hashing::putProber</a></div><div class="ttdeci">bool putProber(const Entry &entry, int key)</div><div class="ttdef"><b>Definition</b> double_hash_hash_table.cpp:120</div></div>
|
||||
<div class="ttc" id="astructdouble__hashing_1_1_entry_html"><div class="ttname"><a href="../../d9/dde/structdouble__hashing_1_1_entry.html">double_hashing::Entry</a></div><div class="ttdef"><b>Definition</b> double_hash_hash_table.cpp:36</div></div>
|
||||
|
||||
@@ -114,17 +114,18 @@ $(function(){initNavTree('d0/d6d/modular__exponentiation_8cpp.html','../../'); i
|
||||
<p>C++ Program for Modular Exponentiation Iteratively.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for modular_exponentiation.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dd3/modular__exponentiation_8cpp__incl.svg" width="227" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d0/dd3/modular__exponentiation_8cpp__incl.svg" width="255" 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><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d47/namespacemath.html">math</a></td></tr>
|
||||
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft"> </td><td class="mdescRight">for IO operations <br /></td></tr>
|
||||
<tr class="memdesc:dd/d47/namespacemath"><td class="mdescLeft"> </td><td class="mdescRight">for assert <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
|
||||
@@ -132,14 +132,14 @@ Functions</h2></td></tr>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>for <code>vector</code> </p>
|
||||
<p>for vector</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></p>
|
||||
<p>for assert</p>
|
||||
<p>Other algorithms.</p>
|
||||
<p>for IO operations</p>
|
||||
<p>for <code>reverse</code> for <code>assert</code> for I/O operations for <code>stack</code></p>
|
||||
<p>Other algorithms</p>
|
||||
<p>for assert for std::abs</p>
|
||||
<p>Other algorithms</p>
|
||||
<p>for assert for IO Operations for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list</a></p>
|
||||
<p>for IO Operations for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/list.html">std::list</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></p>
|
||||
<p>Other algorithms</p>
|
||||
<p>for assert for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint64_t</a> for I/O operations</p>
|
||||
<p>Other algorithms </p>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<map id="math/string_fibonacci.cpp" name="math/string_fibonacci.cpp">
|
||||
<area shape="rect" id="Node000001" title="This Programme returns the Nth fibonacci as a string." alt="" coords="5,5,176,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="11,79,82,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="86,33,64,67,60,64,81,30"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="106,79,166,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="100,30,122,64,118,67,96,33"/>
|
||||
<area shape="rect" id="Node000001" title="This Programme returns the Nth fibonacci as a string." alt="" coords="40,5,210,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,66,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="111,34,64,71,61,67,108,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="89,79,160,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="128,31,128,63,122,63,122,31"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="184,79,244,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="142,29,189,67,186,71,138,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
91f66c6a83b62bb31cdaf0b177487d90
|
||||
472a574060438df56dd3d29800fc44bd
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/string_fibonacci.cpp Pages: 1 -->
|
||||
<svg width="136pt" height="83pt"
|
||||
viewBox="0.00 0.00 135.75 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="187pt" height="83pt"
|
||||
viewBox="0.00 0.00 187.25 82.50" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="This Programme returns the Nth fibonacci as a string.">
|
||||
<polygon fill="#999999" stroke="#666666" points="127.75,-74.5 0,-74.5 0,-55.25 127.75,-55.25 127.75,-74.5"/>
|
||||
<text text-anchor="middle" x="63.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/string_fibonacci.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="153.5,-74.5 25.75,-74.5 25.75,-55.25 153.5,-55.25 153.5,-74.5"/>
|
||||
<text text-anchor="middle" x="89.62" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/string_fibonacci.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="57.62,-19.25 4.12,-19.25 4.12,0 57.62,0 57.62,-19.25"/>
|
||||
<text text-anchor="middle" x="30.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="45.25,-19.25 0,-19.25 0,0 45.25,0 45.25,-19.25"/>
|
||||
<text text-anchor="middle" x="22.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M58.43,-55.08C54.1,-48.11 47.91,-38.12 42.49,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.48,-27.55 37.24,-20.9 39.53,-31.24 45.48,-27.55"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.26,-54.84C68.58,-47.15 54.43,-35.9 42.82,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.01,-23.95 35.01,-20.47 40.66,-29.43 45.01,-23.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="120.5,-19.25 75.25,-19.25 75.25,0 120.5,0 120.5,-19.25"/>
|
||||
<text text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 62.88,-19.25 62.88,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="89.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M69.49,-55.08C73.99,-48.03 80.46,-37.9 86.09,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.89,-31.2 91.32,-20.88 82.99,-27.43 88.89,-31.2"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.62,-55.08C89.62,-48.57 89.62,-39.42 89.62,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.13,-31.12 89.63,-21.12 86.13,-31.12 93.13,-31.12"/>
|
||||
</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="179.25,-19.25 134,-19.25 134,0 179.25,0 179.25,-19.25"/>
|
||||
<text text-anchor="middle" x="156.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.99,-54.84C110.67,-47.15 124.82,-35.9 136.43,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.59,-29.43 144.24,-20.47 134.24,-23.95 138.59,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/string_fibonacci.cpp Pages: 1 -->
|
||||
<svg width="136pt" height="83pt"
|
||||
viewBox="0.00 0.00 135.75 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="187pt" height="83pt"
|
||||
viewBox="0.00 0.00 187.25 82.50" 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>math/string_fibonacci.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="This Programme returns the Nth fibonacci as a string.">
|
||||
<polygon fill="#999999" stroke="#666666" points="127.75,-74.5 0,-74.5 0,-55.25 127.75,-55.25 127.75,-74.5"/>
|
||||
<text text-anchor="middle" x="63.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/string_fibonacci.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="153.5,-74.5 25.75,-74.5 25.75,-55.25 153.5,-55.25 153.5,-74.5"/>
|
||||
<text text-anchor="middle" x="89.62" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/string_fibonacci.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -21,8 +21,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="57.62,-19.25 4.12,-19.25 4.12,0 57.62,0 57.62,-19.25"/>
|
||||
<text text-anchor="middle" x="30.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="45.25,-19.25 0,-19.25 0,0 45.25,0 45.25,-19.25"/>
|
||||
<text text-anchor="middle" x="22.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M58.43,-55.08C54.1,-48.11 47.91,-38.12 42.49,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.48,-27.55 37.24,-20.9 39.53,-31.24 45.48,-27.55"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.26,-54.84C68.58,-47.15 54.43,-35.9 42.82,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.01,-23.95 35.01,-20.47 40.66,-29.43 45.01,-23.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="120.5,-19.25 75.25,-19.25 75.25,0 120.5,0 120.5,-19.25"/>
|
||||
<text text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 62.88,-19.25 62.88,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="89.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M69.49,-55.08C73.99,-48.03 80.46,-37.9 86.09,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.89,-31.2 91.32,-20.88 82.99,-27.43 88.89,-31.2"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.62,-55.08C89.62,-48.57 89.62,-39.42 89.62,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.13,-31.12 89.63,-21.12 86.13,-31.12 93.13,-31.12"/>
|
||||
</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="179.25,-19.25 134,-19.25 134,0 179.25,0 179.25,-19.25"/>
|
||||
<text text-anchor="middle" x="156.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.99,-54.84C110.67,-47.15 124.82,-35.9 136.43,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.59,-29.43 144.24,-20.47 134.24,-23.95 138.59,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,7 +1,9 @@
|
||||
<map id="math/check_factorial.cpp" name="math/check_factorial.cpp">
|
||||
<area shape="rect" id="Node000001" title="A simple program to check if the given number is a factorial of some number or not." alt="" coords="5,5,173,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="12,79,76,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="84,33,62,67,57,64,79,30"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="100,79,171,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="99,30,122,64,117,67,94,33"/>
|
||||
<area shape="rect" id="Node000001" title="A simple program to check if the given number is a factorial of some number or not." alt="" coords="40,5,208,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="111,34,65,71,62,67,108,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,154,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="127,31,127,63,122,63,122,31"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="141,29,188,67,185,71,138,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
ce993e6191805088d1c0e0df9b45b52d
|
||||
1763e785f48d6b780da6f140dd8f244c
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/check_factorial.cpp Pages: 1 -->
|
||||
<svg width="134pt" height="83pt"
|
||||
viewBox="0.00 0.00 133.50 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A simple program to check if the given number is a factorial of some number or not.">
|
||||
<polygon fill="#999999" stroke="#666666" points="125.5,-74.5 0,-74.5 0,-55.25 125.5,-55.25 125.5,-74.5"/>
|
||||
<text text-anchor="middle" x="62.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/check_factorial.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="151.88,-74.5 26.38,-74.5 26.38,-55.25 151.88,-55.25 151.88,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/check_factorial.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="52.88,-19.25 4.62,-19.25 4.62,0 52.88,0 52.88,-19.25"/>
|
||||
<text text-anchor="middle" x="28.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M57.14,-55.08C52.63,-48.03 46.16,-37.9 40.54,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="43.63,-27.43 35.3,-20.88 37.73,-31.2 43.63,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="124.5,-19.25 71,-19.25 71,0 124.5,0 124.5,-19.25"/>
|
||||
<text text-anchor="middle" x="97.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M68.53,-55.08C73.16,-48.03 79.82,-37.9 85.62,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.45,-31.15 91.01,-20.87 82.6,-27.31 88.45,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/check_factorial.cpp Pages: 1 -->
|
||||
<svg width="134pt" height="83pt"
|
||||
viewBox="0.00 0.00 133.50 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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>math/check_factorial.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A simple program to check if the given number is a factorial of some number or not.">
|
||||
<polygon fill="#999999" stroke="#666666" points="125.5,-74.5 0,-74.5 0,-55.25 125.5,-55.25 125.5,-74.5"/>
|
||||
<text text-anchor="middle" x="62.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/check_factorial.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="151.88,-74.5 26.38,-74.5 26.38,-55.25 151.88,-55.25 151.88,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/check_factorial.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -21,8 +21,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="52.88,-19.25 4.62,-19.25 4.62,0 52.88,0 52.88,-19.25"/>
|
||||
<text text-anchor="middle" x="28.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M57.14,-55.08C52.63,-48.03 46.16,-37.9 40.54,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="43.63,-27.43 35.3,-20.88 37.73,-31.2 43.63,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="124.5,-19.25 71,-19.25 71,0 124.5,0 124.5,-19.25"/>
|
||||
<text text-anchor="middle" x="97.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M68.53,-55.08C73.16,-48.03 79.82,-37.9 85.62,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.45,-31.15 91.01,-20.87 82.6,-27.31 88.45,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,7 +1,9 @@
|
||||
<map id="math/modular_division.cpp" name="math/modular_division.cpp">
|
||||
<area shape="rect" id="Node000001" title="An algorithm to divide two numbers under modulo p Modular Division" alt="" coords="5,5,182,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="16,79,80,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="88,33,66,67,62,64,84,30"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="104,79,176,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="103,30,126,64,122,67,99,33"/>
|
||||
<area shape="rect" id="Node000001" title="An algorithm to divide two numbers under modulo p Modular Division" alt="" coords="36,5,212,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="111,34,65,71,62,67,108,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,154,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="127,31,127,63,122,63,122,31"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="141,29,188,67,185,71,138,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
209bdacba764cf7ffcdc62bae9c43f05
|
||||
43d56bf914600fadeb35acf5f74a6e7f
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/modular_division.cpp Pages: 1 -->
|
||||
<svg width="140pt" height="83pt"
|
||||
viewBox="0.00 0.00 140.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="An algorithm to divide two numbers under modulo p Modular Division">
|
||||
<polygon fill="#999999" stroke="#666666" points="132.25,-74.5 0,-74.5 0,-55.25 132.25,-55.25 132.25,-74.5"/>
|
||||
<text text-anchor="middle" x="66.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_division.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="155.25,-74.5 23,-74.5 23,-55.25 155.25,-55.25 155.25,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_division.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="56.25,-19.25 8,-19.25 8,0 56.25,0 56.25,-19.25"/>
|
||||
<text text-anchor="middle" x="32.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M60.51,-55.08C56.01,-48.03 49.54,-37.9 43.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="47.01,-27.43 38.68,-20.88 41.11,-31.2 47.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="127.88,-19.25 74.38,-19.25 74.38,0 127.88,0 127.88,-19.25"/>
|
||||
<text text-anchor="middle" x="101.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M71.9,-55.08C76.54,-48.03 83.2,-37.9 88.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.82,-31.15 94.39,-20.87 85.97,-27.31 91.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/modular_division.cpp Pages: 1 -->
|
||||
<svg width="140pt" height="83pt"
|
||||
viewBox="0.00 0.00 140.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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>math/modular_division.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="An algorithm to divide two numbers under modulo p Modular Division">
|
||||
<polygon fill="#999999" stroke="#666666" points="132.25,-74.5 0,-74.5 0,-55.25 132.25,-55.25 132.25,-74.5"/>
|
||||
<text text-anchor="middle" x="66.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_division.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="155.25,-74.5 23,-74.5 23,-55.25 155.25,-55.25 155.25,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_division.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -21,8 +21,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="56.25,-19.25 8,-19.25 8,0 56.25,0 56.25,-19.25"/>
|
||||
<text text-anchor="middle" x="32.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M60.51,-55.08C56.01,-48.03 49.54,-37.9 43.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="47.01,-27.43 38.68,-20.88 41.11,-31.2 47.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="127.88,-19.25 74.38,-19.25 74.38,0 127.88,0 127.88,-19.25"/>
|
||||
<text text-anchor="middle" x="101.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M71.9,-55.08C76.54,-48.03 83.2,-37.9 88.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.82,-31.15 94.39,-20.87 85.97,-27.31 91.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -117,11 +117,12 @@ $(function(){initNavTree('d0/dd2/treap_8cpp.html','../../'); initResizable(true)
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <array></code><br />
|
||||
<code>#include <cassert></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for treap.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../da/de6/treap_8cpp__incl.svg" width="246" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../da/de6/treap_8cpp__incl.svg" width="330" 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><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
@@ -179,11 +180,11 @@ const int </td><td class="memItemRight" valign="bottom"><b>data_structures:
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 256</span> {</div>
|
||||
<div class="line"><span class="lineno"> 257</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"> 258</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 259</span>}</div>
|
||||
<div class="ttc" id="atreap_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> treap.cpp:230</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 255</span> {</div>
|
||||
<div class="line"><span class="lineno"> 256</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"> 257</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 258</span>}</div>
|
||||
<div class="ttc" id="atreap_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> treap.cpp:229</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -218,36 +219,36 @@ Here is the call graph for this function:</div>
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<p>< Treap object instance</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 230</span> {</div>
|
||||
<div class="line"><span class="lineno"> 231</span> <a class="code hl_struct" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">data_structures::treap::Treap</a> mTreap; <span class="comment">///< Treap object instance</span></div>
|
||||
<div class="line"><span class="lineno"> 232</span> </div>
|
||||
<div class="line"><span class="lineno"> 233</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(1);</div>
|
||||
<div class="line"><span class="lineno"> 234</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(2);</div>
|
||||
<div class="line"><span class="lineno"> 235</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(3);</div>
|
||||
<div class="line"><span class="lineno"> 236</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">get_k_th</a>(2) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 237</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(4);</div>
|
||||
<div class="line"><span class="lineno"> 238</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(5);</div>
|
||||
<div class="line"><span class="lineno"> 239</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(6);</div>
|
||||
<div class="line"><span class="lineno"> 240</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a767b28f9911fc32b8462862be058a4a4">get_next</a>(4) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 241</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(7);</div>
|
||||
<div class="line"><span class="lineno"> 242</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">get_predecessor</a>(7) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 243</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a9ea2becd904e2e7d22f23a001b444469">erase</a>(4);</div>
|
||||
<div class="line"><span class="lineno"> 244</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">get_k_th</a>(4) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 245</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">get_rank</a>(5) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 246</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(10);</div>
|
||||
<div class="line"><span class="lineno"> 247</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">get_rank</a>(10) == 7);</div>
|
||||
<div class="line"><span class="lineno"> 248</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">get_predecessor</a>(10) == 7);</div>
|
||||
<div class="line"><span class="lineno"> 249</span> </div>
|
||||
<div class="line"><span class="lineno"> 250</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 251</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 229</span> {</div>
|
||||
<div class="line"><span class="lineno"> 230</span> <a class="code hl_struct" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">data_structures::treap::Treap</a> mTreap; <span class="comment">///< Treap object instance</span></div>
|
||||
<div class="line"><span class="lineno"> 231</span> </div>
|
||||
<div class="line"><span class="lineno"> 232</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(1);</div>
|
||||
<div class="line"><span class="lineno"> 233</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(2);</div>
|
||||
<div class="line"><span class="lineno"> 234</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(3);</div>
|
||||
<div class="line"><span class="lineno"> 235</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">get_k_th</a>(2) == 2);</div>
|
||||
<div class="line"><span class="lineno"> 236</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(4);</div>
|
||||
<div class="line"><span class="lineno"> 237</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(5);</div>
|
||||
<div class="line"><span class="lineno"> 238</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(6);</div>
|
||||
<div class="line"><span class="lineno"> 239</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a767b28f9911fc32b8462862be058a4a4">get_next</a>(4) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 240</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(7);</div>
|
||||
<div class="line"><span class="lineno"> 241</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">get_predecessor</a>(7) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 242</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a9ea2becd904e2e7d22f23a001b444469">erase</a>(4);</div>
|
||||
<div class="line"><span class="lineno"> 243</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">get_k_th</a>(4) == 5);</div>
|
||||
<div class="line"><span class="lineno"> 244</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">get_rank</a>(5) == 4);</div>
|
||||
<div class="line"><span class="lineno"> 245</span> mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">insert</a>(10);</div>
|
||||
<div class="line"><span class="lineno"> 246</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">get_rank</a>(10) == 7);</div>
|
||||
<div class="line"><span class="lineno"> 247</span> assert(mTreap.<a class="code hl_function" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">get_predecessor</a>(10) == 7);</div>
|
||||
<div class="line"><span class="lineno"> 248</span> </div>
|
||||
<div class="line"><span class="lineno"> 249</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 250</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">data_structures::treap::Treap</a></div><div class="ttdoc">Struct representation of the treap.</div><div class="ttdef"><b>Definition</b> treap.cpp:39</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a5e884d2686aff501ef589b0d1185492f"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">data_structures::treap::Treap::insert</a></div><div class="ttdeci">void insert(int k)</div><div class="ttdoc">Insert element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:204</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a767b28f9911fc32b8462862be058a4a4"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a767b28f9911fc32b8462862be058a4a4">data_structures::treap::Treap::get_next</a></div><div class="ttdeci">int get_next(int k)</div><div class="ttdoc">Get the successor node of element k.</div><div class="ttdef"><b>Definition</b> treap.cpp:189</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a9ea2becd904e2e7d22f23a001b444469"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a9ea2becd904e2e7d22f23a001b444469">data_structures::treap::Treap::erase</a></div><div class="ttdeci">void erase(int k)</div><div class="ttdoc">Erase element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:209</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ab2db3ad3aecc240011e0c8b8604d2c69"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">data_structures::treap::Treap::get_k_th</a></div><div class="ttdeci">int get_k_th(int k)</div><div class="ttdoc">Get the KTH largest value (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:215</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ab8b9899f22070cfa01db5bf874296126"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">data_structures::treap::Treap::get_predecessor</a></div><div class="ttdeci">int get_predecessor(int k)</div><div class="ttdoc">Get the predecessor node of element k.</div><div class="ttdef"><b>Definition</b> treap.cpp:173</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ac94e9d69305940f6d8804031455af039"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">data_structures::treap::Treap::get_rank</a></div><div class="ttdeci">int get_rank(int k)</div><div class="ttdoc">Get the rank of specified element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:221</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">data_structures::treap::Treap</a></div><div class="ttdoc">Struct representation of the treap.</div><div class="ttdef"><b>Definition</b> treap.cpp:40</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a5e884d2686aff501ef589b0d1185492f"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a5e884d2686aff501ef589b0d1185492f">data_structures::treap::Treap::insert</a></div><div class="ttdeci">void insert(int k)</div><div class="ttdoc">Insert element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:203</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a767b28f9911fc32b8462862be058a4a4"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a767b28f9911fc32b8462862be058a4a4">data_structures::treap::Treap::get_next</a></div><div class="ttdeci">int get_next(int k)</div><div class="ttdoc">Get the successor node of element k.</div><div class="ttdef"><b>Definition</b> treap.cpp:188</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_a9ea2becd904e2e7d22f23a001b444469"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#a9ea2becd904e2e7d22f23a001b444469">data_structures::treap::Treap::erase</a></div><div class="ttdeci">void erase(int k)</div><div class="ttdoc">Erase element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:208</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ab2db3ad3aecc240011e0c8b8604d2c69"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab2db3ad3aecc240011e0c8b8604d2c69">data_structures::treap::Treap::get_k_th</a></div><div class="ttdeci">int get_k_th(int k)</div><div class="ttdoc">Get the KTH largest value (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:214</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ab8b9899f22070cfa01db5bf874296126"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ab8b9899f22070cfa01db5bf874296126">data_structures::treap::Treap::get_predecessor</a></div><div class="ttdeci">int get_predecessor(int k)</div><div class="ttdoc">Get the predecessor node of element k.</div><div class="ttdef"><b>Definition</b> treap.cpp:172</div></div>
|
||||
<div class="ttc" id="astructdata__structures_1_1treap_1_1_treap_html_ac94e9d69305940f6d8804031455af039"><div class="ttname"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html#ac94e9d69305940f6d8804031455af039">data_structures::treap::Treap::get_rank</a></div><div class="ttdeci">int get_rank(int k)</div><div class="ttdoc">Get the rank of specified element (External method)</div><div class="ttdef"><b>Definition</b> treap.cpp:220</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<map id="math/modular_exponentiation.cpp" name="math/modular_exponentiation.cpp">
|
||||
<area shape="rect" id="Node000001" title="C++ Program for Modular Exponentiation Iteratively." alt="" coords="5,5,222,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="36,79,100,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="108,33,86,67,82,64,104,30"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="124,79,196,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="123,30,146,64,142,67,119,33"/>
|
||||
<area shape="rect" id="Node000001" title="C++ Program for Modular Exponentiation Iteratively." alt="" coords="16,5,232,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="111,34,65,71,62,67,108,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,154,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="127,31,127,63,122,63,122,31"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="141,29,188,67,185,71,138,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
218641b5418032e7f34c496b3c99272f
|
||||
06b438f6a023265ca37996eab7a0616f
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/modular_exponentiation.cpp Pages: 1 -->
|
||||
<svg width="170pt" height="83pt"
|
||||
viewBox="0.00 0.00 170.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="C++ Program for Modular Exponentiation Iteratively.">
|
||||
<polygon fill="#999999" stroke="#666666" points="162.25,-74.5 0,-74.5 0,-55.25 162.25,-55.25 162.25,-74.5"/>
|
||||
<text text-anchor="middle" x="81.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_exponentiation.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="170.25,-74.5 8,-74.5 8,-55.25 170.25,-55.25 170.25,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_exponentiation.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="71.25,-19.25 23,-19.25 23,0 71.25,0 71.25,-19.25"/>
|
||||
<text text-anchor="middle" x="47.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M75.51,-55.08C71.01,-48.03 64.54,-37.9 58.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.01,-27.43 53.68,-20.88 56.11,-31.2 62.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="142.88,-19.25 89.38,-19.25 89.38,0 142.88,0 142.88,-19.25"/>
|
||||
<text text-anchor="middle" x="116.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M86.9,-55.08C91.54,-48.03 98.2,-37.9 103.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="106.82,-31.15 109.39,-20.87 100.97,-27.31 106.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/modular_exponentiation.cpp Pages: 1 -->
|
||||
<svg width="170pt" height="83pt"
|
||||
viewBox="0.00 0.00 170.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="83pt"
|
||||
viewBox="0.00 0.00 190.88 82.50" 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>math/modular_exponentiation.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="C++ Program for Modular Exponentiation Iteratively.">
|
||||
<polygon fill="#999999" stroke="#666666" points="162.25,-74.5 0,-74.5 0,-55.25 162.25,-55.25 162.25,-74.5"/>
|
||||
<text text-anchor="middle" x="81.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_exponentiation.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="170.25,-74.5 8,-74.5 8,-55.25 170.25,-55.25 170.25,-74.5"/>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/modular_exponentiation.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -21,8 +21,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="71.25,-19.25 23,-19.25 23,0 71.25,0 71.25,-19.25"/>
|
||||
<text text-anchor="middle" x="47.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M75.51,-55.08C71.01,-48.03 64.54,-37.9 58.91,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.01,-27.43 53.68,-20.88 56.11,-31.2 62.01,-27.43"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.1,-54.84C68.7,-47.15 54.98,-35.9 43.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.11,-24.11 36.16,-20.48 41.68,-29.53 46.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="142.88,-19.25 89.38,-19.25 89.38,0 142.88,0 142.88,-19.25"/>
|
||||
<text text-anchor="middle" x="116.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,26 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M86.9,-55.08C91.54,-48.03 98.2,-37.9 103.99,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="106.82,-31.15 109.39,-20.87 100.97,-27.31 106.82,-31.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.08C89.12,-48.57 89.12,-39.42 89.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.12 89.13,-21.12 85.63,-31.12 92.63,-31.12"/>
|
||||
</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="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M100.49,-54.84C110.17,-47.15 124.32,-35.9 135.93,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="138.09,-29.43 143.74,-20.47 133.74,-23.95 138.09,-29.43"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,11 +1,13 @@
|
||||
<map id="strings/z_function.cpp" name="strings/z_function.cpp">
|
||||
<area shape="rect" id="Node000001" title="The Z function for finding occurences of a pattern within a piece of text with time and space complex..." alt="" coords="98,5,248,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,77,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="152,34,78,74,75,69,149,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="100,79,160,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="168,33,148,67,143,64,164,30"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="185,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="183,30,204,64,199,67,178,33"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="274,79,331,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="196,29,268,69,266,73,194,34"/>
|
||||
<area shape="rect" id="Node000001" title="The Z function for finding occurences of a pattern within a piece of text with time and space complex..." alt="" coords="140,5,289,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,66,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="185,34,81,75,79,70,183,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="89,79,160,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="201,34,153,71,150,67,197,29"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="184,79,244,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="217,31,217,63,212,63,212,31"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="269,79,333,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="231,29,276,67,273,71,227,34"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="358,79,415,105"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="244,29,344,70,342,75,242,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
e4aee95fdf3da288634fa92783a86aaa
|
||||
96ff757de14aaee5f772802250236036
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: strings/z_function.cpp Pages: 1 -->
|
||||
<svg width="252pt" height="83pt"
|
||||
viewBox="0.00 0.00 252.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="315pt" height="83pt"
|
||||
viewBox="0.00 0.00 315.12 82.50" 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">
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="The Z function for finding occurences of a pattern within a piece of text with time and space complex...">
|
||||
<polygon fill="#999999" stroke="#666666" points="181.75,-74.5 69.75,-74.5 69.75,-55.25 181.75,-55.25 181.75,-74.5"/>
|
||||
<text text-anchor="middle" x="125.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">strings/z_function.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="212.62,-74.5 100.62,-74.5 100.62,-55.25 212.62,-55.25 212.62,-74.5"/>
|
||||
<text text-anchor="middle" x="156.62" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">strings/z_function.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="53.5,-19.25 0,-19.25 0,0 53.5,0 53.5,-19.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="45.25,-19.25 0,-19.25 0,0 45.25,0 45.25,-19.25"/>
|
||||
<text text-anchor="middle" x="22.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M108.96,-54.84C93.74,-46.66 71.05,-34.46 53.37,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.42,-22.07 44.96,-20.42 52.11,-28.24 55.42,-22.07"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M133.89,-54.84C112.53,-46.35 80.28,-33.54 56,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.46,-20.7 46.87,-20.26 54.87,-27.21 57.46,-20.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 71.12,-19.25 71.12,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="93.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 62.88,-19.25 62.88,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="89.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -59,8 +59,8 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M120.47,-55.08C116.28,-48.11 110.27,-38.12 105.02,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="108.08,-27.68 99.93,-20.91 102.08,-31.28 108.08,-27.68"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M145.26,-54.84C135.58,-47.15 121.43,-35.9 109.82,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="112.01,-23.95 102.01,-20.47 107.66,-29.43 112.01,-23.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -68,8 +68,8 @@
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="182.88,-19.25 134.62,-19.25 134.62,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="158.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="179.25,-19.25 134,-19.25 134,0 179.25,0 179.25,-19.25"/>
|
||||
<text text-anchor="middle" x="156.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -77,8 +77,8 @@
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M131.2,-55.08C135.52,-48.11 141.71,-38.12 147.13,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="150.09,-31.24 152.39,-20.9 144.14,-27.55 150.09,-31.24"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.62,-55.08C156.62,-48.57 156.62,-39.42 156.62,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.13,-31.12 156.63,-21.12 153.13,-31.12 160.13,-31.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -86,8 +86,8 @@
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="244.25,-19.25 201.25,-19.25 201.25,0 244.25,0 244.25,-19.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="245.75,-19.25 197.5,-19.25 197.5,0 245.75,0 245.75,-19.25"/>
|
||||
<text text-anchor="middle" x="221.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -95,8 +95,26 @@
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M142.2,-54.84C156.98,-46.73 178.93,-34.68 196.18,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.81,-28.31 204.89,-20.43 194.44,-22.18 197.81,-28.31"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M167.65,-54.84C177.05,-47.15 190.77,-35.9 202.03,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="204.07,-29.53 209.59,-20.48 199.64,-24.11 204.07,-29.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="307.12,-19.25 264.12,-19.25 264.12,0 307.12,0 307.12,-19.25"/>
|
||||
<text text-anchor="middle" x="285.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M178.51,-54.84C198.99,-46.39 229.84,-33.65 253.18,-24.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="254.33,-27.33 262.24,-20.28 251.66,-20.86 254.33,-27.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.4 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: strings/z_function.cpp Pages: 1 -->
|
||||
<svg width="252pt" height="83pt"
|
||||
viewBox="0.00 0.00 252.25 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="315pt" height="83pt"
|
||||
viewBox="0.00 0.00 315.12 82.50" 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>strings/z_function.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="The Z function for finding occurences of a pattern within a piece of text with time and space complex...">
|
||||
<polygon fill="#999999" stroke="#666666" points="181.75,-74.5 69.75,-74.5 69.75,-55.25 181.75,-55.25 181.75,-74.5"/>
|
||||
<text text-anchor="middle" x="125.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">strings/z_function.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="212.62,-74.5 100.62,-74.5 100.62,-55.25 212.62,-55.25 212.62,-74.5"/>
|
||||
<text text-anchor="middle" x="156.62" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">strings/z_function.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -21,8 +21,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="53.5,-19.25 0,-19.25 0,0 53.5,0 53.5,-19.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="45.25,-19.25 0,-19.25 0,0 45.25,0 45.25,-19.25"/>
|
||||
<text text-anchor="middle" x="22.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M108.96,-54.84C93.74,-46.66 71.05,-34.46 53.37,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.42,-22.07 44.96,-20.42 52.11,-28.24 55.42,-22.07"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M133.89,-54.84C112.53,-46.35 80.28,-33.54 56,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.46,-20.7 46.87,-20.26 54.87,-27.21 57.46,-20.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,8 +39,8 @@
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 71.12,-19.25 71.12,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="93.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="116.38,-19.25 62.88,-19.25 62.88,0 116.38,0 116.38,-19.25"/>
|
||||
<text text-anchor="middle" x="89.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -48,8 +48,8 @@
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M120.47,-55.08C116.28,-48.11 110.27,-38.12 105.02,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="108.08,-27.68 99.93,-20.91 102.08,-31.28 108.08,-27.68"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M145.26,-54.84C135.58,-47.15 121.43,-35.9 109.82,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="112.01,-23.95 102.01,-20.47 107.66,-29.43 112.01,-23.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -57,8 +57,8 @@
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="182.88,-19.25 134.62,-19.25 134.62,0 182.88,0 182.88,-19.25"/>
|
||||
<text text-anchor="middle" x="158.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="179.25,-19.25 134,-19.25 134,0 179.25,0 179.25,-19.25"/>
|
||||
<text text-anchor="middle" x="156.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -66,8 +66,8 @@
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M131.2,-55.08C135.52,-48.11 141.71,-38.12 147.13,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="150.09,-31.24 152.39,-20.9 144.14,-27.55 150.09,-31.24"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.62,-55.08C156.62,-48.57 156.62,-39.42 156.62,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.13,-31.12 156.63,-21.12 153.13,-31.12 160.13,-31.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -75,8 +75,8 @@
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="244.25,-19.25 201.25,-19.25 201.25,0 244.25,0 244.25,-19.25"/>
|
||||
<text text-anchor="middle" x="222.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="245.75,-19.25 197.5,-19.25 197.5,0 245.75,0 245.75,-19.25"/>
|
||||
<text text-anchor="middle" x="221.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -84,8 +84,26 @@
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M142.2,-54.84C156.98,-46.73 178.93,-34.68 196.18,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.81,-28.31 204.89,-20.43 194.44,-22.18 197.81,-28.31"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M167.65,-54.84C177.05,-47.15 190.77,-35.9 202.03,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="204.07,-29.53 209.59,-20.48 199.64,-24.11 204.07,-29.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="307.12,-19.25 264.12,-19.25 264.12,0 307.12,0 307.12,-19.25"/>
|
||||
<text text-anchor="middle" x="285.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M178.51,-54.84C198.99,-46.39 229.84,-33.65 253.18,-24.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="254.33,-27.33 262.24,-20.28 251.66,-20.86 254.33,-27.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -114,12 +114,13 @@ $(function(){initNavTree('d0/dfe/backtracking_2subset__sum_8cpp.html','../../');
|
||||
<p>Implementation of the <a href="https://en.wikipedia.org/wiki/Subset_sum_problem" target="_blank">Subset Sum</a> problem.
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for subset_sum.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d83/backtracking_2subset__sum_8cpp__incl.svg" width="252" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../db/d83/backtracking_2subset__sum_8cpp__incl.svg" width="336" height="126"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
@@ -164,11 +165,11 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 103</span> {</div>
|
||||
<div class="line"><span class="lineno"> 104</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"> 105</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 106</span>}</div>
|
||||
<div class="ttc" id="abacktracking_2subset__sum_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Test implementations.</div><div class="ttdef"><b>Definition</b> subset_sum.cpp:57</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 104</span> {</div>
|
||||
<div class="line"><span class="lineno"> 105</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"> 106</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 107</span>}</div>
|
||||
<div class="ttc" id="abacktracking_2subset__sum_8cpp_html_aa8dca7b867074164d5f45b0f3851269d"><div class="ttname"><a href="#aa8dca7b867074164d5f45b0f3851269d">test</a></div><div class="ttdeci">static void test()</div><div class="ttdoc">Test implementations.</div><div class="ttdef"><b>Definition</b> subset_sum.cpp:58</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -205,23 +206,23 @@ Here is the call graph for this function:</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>count of the number of subsets with required sum </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><span class="lineno"> 34</span> int32_t nelement = in_arr.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>();</div>
|
||||
<div class="line"><span class="lineno"> 35</span> uint64_t count_of_subset = 0;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">for</span> (int32_t i = 0; i < (1 << (nelement)); i++) {</div>
|
||||
<div class="line"><span class="lineno"> 38</span> int32_t <a class="code hl_function" href="../../d3/d84/word__break_8cpp.html#a272b0f5cdb4e41fd6dee4538b808c06a">check</a> = 0;</div>
|
||||
<div class="line"><span class="lineno"> 39</span> <span class="keywordflow">for</span> (int32_t j = 0; j < nelement; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">if</span> (i & (1 << j)) {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> <a class="code hl_function" href="../../d3/d84/word__break_8cpp.html#a272b0f5cdb4e41fd6dee4538b808c06a">check</a> += (in_arr[j]);</div>
|
||||
<div class="line"><span class="lineno"> 42</span> }</div>
|
||||
<div class="line"><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><span class="lineno"> 44</span> <span class="keywordflow">if</span> (check == sum) {</div>
|
||||
<div class="line"><span class="lineno"> 45</span> count_of_subset++;</div>
|
||||
<div class="line"><span class="lineno"> 46</span> }</div>
|
||||
<div class="line"><span class="lineno"> 47</span> }</div>
|
||||
<div class="line"><span class="lineno"> 48</span> <span class="keywordflow">return</span> count_of_subset;</div>
|
||||
<div class="line"><span class="lineno"> 49</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><span class="lineno"> 35</span> int32_t nelement = in_arr.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>();</div>
|
||||
<div class="line"><span class="lineno"> 36</span> uint64_t count_of_subset = 0;</div>
|
||||
<div class="line"><span class="lineno"> 37</span> </div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">for</span> (int32_t i = 0; i < (1 << (nelement)); i++) {</div>
|
||||
<div class="line"><span class="lineno"> 39</span> int32_t <a class="code hl_function" href="../../d3/d84/word__break_8cpp.html#a272b0f5cdb4e41fd6dee4538b808c06a">check</a> = 0;</div>
|
||||
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">for</span> (int32_t j = 0; j < nelement; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> <span class="keywordflow">if</span> (i & (1 << j)) {</div>
|
||||
<div class="line"><span class="lineno"> 42</span> <a class="code hl_function" href="../../d3/d84/word__break_8cpp.html#a272b0f5cdb4e41fd6dee4538b808c06a">check</a> += (in_arr[j]);</div>
|
||||
<div class="line"><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><span class="lineno"> 45</span> <span class="keywordflow">if</span> (check == sum) {</div>
|
||||
<div class="line"><span class="lineno"> 46</span> count_of_subset++;</div>
|
||||
<div class="line"><span class="lineno"> 47</span> }</div>
|
||||
<div class="line"><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><span class="lineno"> 49</span> <span class="keywordflow">return</span> count_of_subset;</div>
|
||||
<div class="line"><span class="lineno"> 50</span>}</div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="aword__break_8cpp_html_a272b0f5cdb4e41fd6dee4538b808c06a"><div class="ttname"><a href="../../d3/d84/word__break_8cpp.html#a272b0f5cdb4e41fd6dee4538b808c06a">dynamic_programming::word_break::check</a></div><div class="ttdeci">bool check(const std::string &s, const std::unordered_set< std::string > &strSet, int pos, std::vector< int > *dp)</div><div class="ttdoc">Function that checks if the string passed in param can be segmented from position 'pos',...</div><div class="ttdef"><b>Definition</b> word_break.cpp:80</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
@@ -257,47 +258,47 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 57</span> {</div>
|
||||
<div class="line"><span class="lineno"> 58</span> <span class="comment">// 1st test</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"1st test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 60</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array1 = {-7, -3, -2, 5, 8}; <span class="comment">// input array</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> assert(backtracking::subset_sum::number_of_subsets(0, array1) ==</div>
|
||||
<div class="line"><span class="lineno"> 62</span> 2); <span class="comment">// first argument in subset_sum function is the required sum and</span></div>
|
||||
<div class="line"><span class="lineno"> 63</span> <span class="comment">// second is the input array</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 65</span> </div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="comment">// 2nd test</span></div>
|
||||
<div class="line"><span class="lineno"> 67</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"2nd test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array2 = {1, 2, 3, 3};</div>
|
||||
<div class="line"><span class="lineno"> 69</span> assert(backtracking::subset_sum::number_of_subsets(6, array2) ==</div>
|
||||
<div class="line"><span class="lineno"> 70</span> 3); <span class="comment">// here we are expecting 3 subsets which sum up to 6 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="comment">// {(1,2,3),(1,2,3),(3,3)}</span></div>
|
||||
<div class="line"><span class="lineno"> 72</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><span class="lineno"> 74</span> <span class="comment">// 3rd test</span></div>
|
||||
<div class="line"><span class="lineno"> 75</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"3rd test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 76</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array3 = {1, 1, 1, 1};</div>
|
||||
<div class="line"><span class="lineno"> 77</span> assert(backtracking::subset_sum::number_of_subsets(1, array3) ==</div>
|
||||
<div class="line"><span class="lineno"> 78</span> 4); <span class="comment">// here we are expecting 4 subsets which sum up to 1 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 79</span> <span class="comment">// {(1),(1),(1),(1)}</span></div>
|
||||
<div class="line"><span class="lineno"> 80</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><span class="lineno"> 82</span> <span class="comment">// 4th test</span></div>
|
||||
<div class="line"><span class="lineno"> 83</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"4th test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 84</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array4 = {3, 3, 3, 3};</div>
|
||||
<div class="line"><span class="lineno"> 85</span> assert(backtracking::subset_sum::number_of_subsets(6, array4) ==</div>
|
||||
<div class="line"><span class="lineno"> 86</span> 6); <span class="comment">// here we are expecting 6 subsets which sum up to 6 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="comment">// {(3,3),(3,3),(3,3),(3,3),(3,3),(3,3)}</span></div>
|
||||
<div class="line"><span class="lineno"> 88</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><span class="lineno"> 90</span> <span class="comment">// Test 5</span></div>
|
||||
<div class="line"><span class="lineno"> 91</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"5th test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 92</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array5 = {};</div>
|
||||
<div class="line"><span class="lineno"> 93</span> assert(backtracking::subset_sum::number_of_subsets(6, array5) ==</div>
|
||||
<div class="line"><span class="lineno"> 94</span> 0); <span class="comment">// here we are expecting 0 subsets which sum up to 6 i.e. we</span></div>
|
||||
<div class="line"><span class="lineno"> 95</span> <span class="comment">// cannot select anything from an empty array</span></div>
|
||||
<div class="line"><span class="lineno"> 96</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 97</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 58</span> {</div>
|
||||
<div class="line"><span class="lineno"> 59</span> <span class="comment">// 1st test</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"1st test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 61</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array1 = {-7, -3, -2, 5, 8}; <span class="comment">// input array</span></div>
|
||||
<div class="line"><span class="lineno"> 62</span> assert(backtracking::subset_sum::number_of_subsets(0, array1) ==</div>
|
||||
<div class="line"><span class="lineno"> 63</span> 2); <span class="comment">// first argument in subset_sum function is the required sum and</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> <span class="comment">// second is the input array</span></div>
|
||||
<div class="line"><span class="lineno"> 65</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><span class="lineno"> 67</span> <span class="comment">// 2nd test</span></div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"2nd test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 69</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array2 = {1, 2, 3, 3};</div>
|
||||
<div class="line"><span class="lineno"> 70</span> assert(backtracking::subset_sum::number_of_subsets(6, array2) ==</div>
|
||||
<div class="line"><span class="lineno"> 71</span> 3); <span class="comment">// here we are expecting 3 subsets which sum up to 6 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 72</span> <span class="comment">// {(1,2,3),(1,2,3),(3,3)}</span></div>
|
||||
<div class="line"><span class="lineno"> 73</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 74</span> </div>
|
||||
<div class="line"><span class="lineno"> 75</span> <span class="comment">// 3rd test</span></div>
|
||||
<div class="line"><span class="lineno"> 76</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"3rd test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 77</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array3 = {1, 1, 1, 1};</div>
|
||||
<div class="line"><span class="lineno"> 78</span> assert(backtracking::subset_sum::number_of_subsets(1, array3) ==</div>
|
||||
<div class="line"><span class="lineno"> 79</span> 4); <span class="comment">// here we are expecting 4 subsets which sum up to 1 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 80</span> <span class="comment">// {(1),(1),(1),(1)}</span></div>
|
||||
<div class="line"><span class="lineno"> 81</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 82</span> </div>
|
||||
<div class="line"><span class="lineno"> 83</span> <span class="comment">// 4th test</span></div>
|
||||
<div class="line"><span class="lineno"> 84</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"4th test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 85</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array4 = {3, 3, 3, 3};</div>
|
||||
<div class="line"><span class="lineno"> 86</span> assert(backtracking::subset_sum::number_of_subsets(6, array4) ==</div>
|
||||
<div class="line"><span class="lineno"> 87</span> 6); <span class="comment">// here we are expecting 6 subsets which sum up to 6 i.e.</span></div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="comment">// {(3,3),(3,3),(3,3),(3,3),(3,3),(3,3)}</span></div>
|
||||
<div class="line"><span class="lineno"> 89</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 90</span> </div>
|
||||
<div class="line"><span class="lineno"> 91</span> <span class="comment">// Test 5</span></div>
|
||||
<div class="line"><span class="lineno"> 92</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"5th test "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 93</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int32_t></a> array5 = {};</div>
|
||||
<div class="line"><span class="lineno"> 94</span> assert(backtracking::subset_sum::number_of_subsets(6, array5) ==</div>
|
||||
<div class="line"><span class="lineno"> 95</span> 0); <span class="comment">// here we are expecting 0 subsets which sum up to 6 i.e. we</span></div>
|
||||
<div class="line"><span class="lineno"> 96</span> <span class="comment">// cannot select anything from an empty array</span></div>
|
||||
<div class="line"><span class="lineno"> 97</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"passed"</span> << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 98</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
|
||||