Documentation for 0d766b0f8a

This commit is contained in:
realstealthninja
2024-11-04 12:32:06 +00:00
parent fb1d00ead7
commit 4fb6e622e9
280 changed files with 2978 additions and 4001 deletions

View File

@@ -0,0 +1,11 @@
<map id="data_structures/sparse_table.cpp" name="data_structures/sparse_table.cpp">
<area shape="rect" id="Node000001" title="Implementation of Sparse Table for min() function." alt="" coords="77,5,232,46"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,56,120"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="125,49,64,88,61,83,122,44"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="80,94,144,120"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="146,48,128,81,123,79,142,45"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="168,94,229,120"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="168,45,187,79,182,82,163,48"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="252,94,324,120"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="189,44,256,83,253,88,186,49"/>
</map>

View File

@@ -0,0 +1 @@
5562a19c49f950b27a8fb95aed41a164

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: data_structures/sparse_table.cpp Pages: 1 -->
<svg width="247pt" height="94pt"
viewBox="0.00 0.00 246.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">
<style type="text/css"><![CDATA[
.node, .edge {opacity: 0.7;}
.node.selected, .edge.selected {opacity: 1;}
.edge:hover path { stroke: red; }
.edge:hover polygon { stroke: red; fill: red; }
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
<title>data_structures/sparse_table.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of Sparse Table for min() function.">
<polygon fill="#999999" stroke="#666666" points="169.75,-85.75 54,-85.75 54,-55.25 169.75,-55.25 169.75,-85.75"/>
<text text-anchor="start" x="62" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/sparse</text>
<text text-anchor="middle" x="111.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_table.cpp</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="37.75,-19.25 0,-19.25 0,0 37.75,0 37.75,-19.25"/>
<text text-anchor="middle" x="18.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">array</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M88.89,-54.95C74.86,-46.07 56.97,-34.74 42.78,-25.76"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="44.81,-22.9 34.49,-20.51 41.07,-28.82 44.81,-22.9"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="104,-19.25 55.75,-19.25 55.75,0 104,0 104,-19.25"/>
<text text-anchor="middle" x="79.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M103.96,-54.95C99.84,-47.36 94.75,-37.99 90.31,-29.82"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.38,-28.15 85.53,-21.03 87.23,-31.49 93.38,-28.15"/>
</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="167.5,-19.25 122.25,-19.25 122.25,0 167.5,0 167.5,-19.25"/>
<text text-anchor="middle" x="144.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M120.03,-54.95C124.33,-47.28 129.66,-37.77 134.27,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.21,-31.46 139.05,-21.02 131.11,-28.03 137.21,-31.46"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="238.62,-19.25 185.12,-19.25 185.12,0 238.62,0 238.62,-19.25"/>
<text text-anchor="middle" x="211.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.85,-54.8C152.08,-45.83 171.48,-34.41 186.74,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.39,-28.51 195.23,-20.42 184.84,-22.48 188.39,-28.51"/>
</a>
</g>
</g>
</g>
</svg>
</svg>
<style type='text/css'>
<![CDATA[
[data-mouse-over-selected='false'] { opacity: 0.7; }
[data-mouse-over-selected='true'] { opacity: 1.0; }
]]>
</style>
<script type="application/ecmascript"><![CDATA[
document.addEventListener('DOMContentLoaded', (event) => {
highlightEdges();
highlightAdjacentNodes();
});
]]></script>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: data_structures/sparse_table.cpp Pages: 1 -->
<svg width="247pt" height="94pt"
viewBox="0.00 0.00 246.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>data_structures/sparse_table.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of Sparse Table for min() function.">
<polygon fill="#999999" stroke="#666666" points="169.75,-85.75 54,-85.75 54,-55.25 169.75,-55.25 169.75,-85.75"/>
<text text-anchor="start" x="62" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/sparse</text>
<text text-anchor="middle" x="111.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_table.cpp</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="37.75,-19.25 0,-19.25 0,0 37.75,0 37.75,-19.25"/>
<text text-anchor="middle" x="18.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">array</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M88.89,-54.95C74.86,-46.07 56.97,-34.74 42.78,-25.76"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="44.81,-22.9 34.49,-20.51 41.07,-28.82 44.81,-22.9"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="104,-19.25 55.75,-19.25 55.75,0 104,0 104,-19.25"/>
<text text-anchor="middle" x="79.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M103.96,-54.95C99.84,-47.36 94.75,-37.99 90.31,-29.82"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.38,-28.15 85.53,-21.03 87.23,-31.49 93.38,-28.15"/>
</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="167.5,-19.25 122.25,-19.25 122.25,0 167.5,0 167.5,-19.25"/>
<text text-anchor="middle" x="144.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M120.03,-54.95C124.33,-47.28 129.66,-37.77 134.27,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.21,-31.46 139.05,-21.02 131.11,-28.03 137.21,-31.46"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="238.62,-19.25 185.12,-19.25 185.12,0 238.62,0 238.62,-19.25"/>
<text text-anchor="middle" x="211.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.85,-54.8C152.08,-45.83 171.48,-34.41 186.74,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.39,-28.51 195.23,-20.42 184.84,-22.48 188.39,-28.51"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -1,9 +1,11 @@
<map id="dynamic_programming/minimum_edit_distance.cpp" name="dynamic_programming/minimum_edit_distance.cpp">
<area shape="rect" id="Node000001" title="Implementation of Minimum Edit Distance using Dynamic Programing." alt="" coords="36,5,223,46"/>
<area shape="rect" id="Node000001" title="Implementation of Minimum Edit Distance using Dynamic Programing." alt="" coords="74,5,262,46"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="108,48,65,86,61,82,105,44"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,165,120"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="132,46,132,78,127,78,127,46"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="189,94,246,120"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="153,44,194,81,191,85,149,48"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="137,49,72,88,69,83,134,44"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,154,120"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="160,48,141,82,136,79,155,45"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="178,94,249,120"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="182,45,201,79,197,82,177,48"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="273,94,330,120"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="203,44,269,83,267,88,200,49"/>
</map>

View File

@@ -1 +1 @@
fa89c36f92843a23187a28ce8f0db76b
77a699c251aa4a0834f9e336b1cbf2f0

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: dynamic_programming/minimum_edit_distance.cpp Pages: 1 -->
<svg width="189pt" height="94pt"
viewBox="0.00 0.00 188.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="252pt" height="94pt"
viewBox="0.00 0.00 251.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="Implementation of Minimum Edit Distance using Dynamic Programing.">
<polygon fill="#999999" stroke="#666666" points="163.38,-85.75 22.88,-85.75 22.88,-55.25 163.38,-55.25 163.38,-85.75"/>
<text text-anchor="start" x="30.88" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/minimum_edit_distance.cpp</text>
<polygon fill="#999999" stroke="#666666" points="192.38,-85.75 51.88,-85.75 51.88,-55.25 192.38,-55.25 192.38,-85.75"/>
<text text-anchor="start" x="59.88" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/minimum_edit_distance.cpp</text>
</a>
</g>
</g>
@@ -42,8 +42,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M76.07,-54.95C66.17,-46.5 53.67,-35.83 43.41,-27.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.79,-24.51 35.91,-20.68 41.25,-29.84 45.79,-24.51"/>
<path fill="none" stroke="#63b8ff" d="M97.65,-54.8C82.72,-45.83 63.71,-34.41 48.76,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.83,-22.58 40.45,-20.43 47.22,-28.58 50.83,-22.58"/>
</a>
</g>
</g>
@@ -51,8 +51,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="119.88,-19.25 66.38,-19.25 66.38,0 119.88,0 119.88,-19.25"/>
<text text-anchor="middle" x="93.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>
@@ -60,8 +60,8 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M93.12,-54.95C93.12,-47.71 93.12,-38.84 93.12,-30.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.63,-31.21 93.13,-21.21 89.63,-31.21 96.63,-31.21"/>
<path fill="none" stroke="#63b8ff" d="M113.97,-54.95C109.67,-47.28 104.34,-37.77 99.73,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.89,-28.03 94.95,-21.02 96.79,-31.46 102.89,-28.03"/>
</a>
</g>
</g>
@@ -69,8 +69,8 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="180.62,-19.25 137.62,-19.25 137.62,0 180.62,0 180.62,-19.25"/>
<text text-anchor="middle" x="159.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<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>
@@ -78,8 +78,26 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M109.44,-54.95C118.81,-46.59 130.62,-36.05 140.38,-27.35"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="142.69,-29.98 147.82,-20.71 138.03,-24.75 142.69,-29.98"/>
<path fill="none" stroke="#63b8ff" d="M130.53,-54.95C134.96,-47.28 140.45,-37.77 145.2,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="148.16,-31.42 150.13,-21.01 142.09,-27.92 148.16,-31.42"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="243.62,-19.25 200.62,-19.25 200.62,0 243.62,0 243.62,-19.25"/>
<text text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M147.1,-54.8C162.33,-45.83 181.73,-34.41 196.99,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="198.64,-28.51 205.48,-20.42 195.09,-22.48 198.64,-28.51"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -4,17 +4,17 @@
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: dynamic_programming/minimum_edit_distance.cpp Pages: 1 -->
<svg width="189pt" height="94pt"
viewBox="0.00 0.00 188.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="252pt" height="94pt"
viewBox="0.00 0.00 251.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>dynamic_programming/minimum_edit_distance.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of Minimum Edit Distance using Dynamic Programing.">
<polygon fill="#999999" stroke="#666666" points="163.38,-85.75 22.88,-85.75 22.88,-55.25 163.38,-55.25 163.38,-85.75"/>
<text text-anchor="start" x="30.88" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/minimum_edit_distance.cpp</text>
<polygon fill="#999999" stroke="#666666" points="192.38,-85.75 51.88,-85.75 51.88,-55.25 192.38,-55.25 192.38,-85.75"/>
<text text-anchor="start" x="59.88" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/minimum_edit_distance.cpp</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M76.07,-54.95C66.17,-46.5 53.67,-35.83 43.41,-27.08"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="45.79,-24.51 35.91,-20.68 41.25,-29.84 45.79,-24.51"/>
<path fill="none" stroke="#63b8ff" d="M97.65,-54.8C82.72,-45.83 63.71,-34.41 48.76,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.83,-22.58 40.45,-20.43 47.22,-28.58 50.83,-22.58"/>
</a>
</g>
</g>
@@ -40,8 +40,8 @@
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="119.88,-19.25 66.38,-19.25 66.38,0 119.88,0 119.88,-19.25"/>
<text text-anchor="middle" x="93.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>
@@ -49,8 +49,8 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M93.12,-54.95C93.12,-47.71 93.12,-38.84 93.12,-30.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.63,-31.21 93.13,-21.21 89.63,-31.21 96.63,-31.21"/>
<path fill="none" stroke="#63b8ff" d="M113.97,-54.95C109.67,-47.28 104.34,-37.77 99.73,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.89,-28.03 94.95,-21.02 96.79,-31.46 102.89,-28.03"/>
</a>
</g>
</g>
@@ -58,8 +58,8 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="180.62,-19.25 137.62,-19.25 137.62,0 180.62,0 180.62,-19.25"/>
<text text-anchor="middle" x="159.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<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>
@@ -67,8 +67,26 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M109.44,-54.95C118.81,-46.59 130.62,-36.05 140.38,-27.35"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="142.69,-29.98 147.82,-20.71 138.03,-24.75 142.69,-29.98"/>
<path fill="none" stroke="#63b8ff" d="M130.53,-54.95C134.96,-47.28 140.45,-37.77 145.2,-29.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="148.16,-31.42 150.13,-21.01 142.09,-27.92 148.16,-31.42"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="243.62,-19.25 200.62,-19.25 200.62,0 243.62,0 243.62,-19.25"/>
<text text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M147.1,-54.8C162.33,-45.83 181.73,-34.41 196.99,-25.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="198.64,-28.51 205.48,-20.42 195.09,-22.48 198.64,-28.51"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -195,23 +195,23 @@ Functions</h2></td></tr>
</dl>
<div class="fragment"><div class="line"><span class="lineno"> 28</span> {</div>
<div class="line"><span class="lineno"> 29</span> <span class="keywordtype">int</span> i, j, tmp, lim2 = <a class="code hl_define" href="#aee57a411f07599034f5ceb8cc7d65b40">LIMS</a> &gt;&gt; 1;</div>
<div class="line"><span class="lineno"> 30</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = A-&gt;size();</div>
<div class="line"><span class="lineno"> 30</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = A-&gt;size();</div>
<div class="line"><span class="lineno"> 31</span> </div>
<div class="line"><span class="lineno"> 32</span><span class="preprocessor">#ifdef _OPENMP</span></div>
<div class="line"><span class="lineno"> 33</span><span class="preprocessor">#pragma omp for</span></div>
<div class="line"><span class="lineno"> 34</span><span class="preprocessor">#endif</span></div>
<div class="line"><span class="lineno"> 35</span> <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>; i++) {</div>
<div class="line"><span class="lineno"> 35</span> <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>; i++) {</div>
<div class="line"><span class="lineno"> 36</span> A[0][i][i] = (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() % <a class="code hl_define" href="#aee57a411f07599034f5ceb8cc7d65b40">LIMS</a>) - lim2;</div>
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">for</span> (j = i + 1; j &lt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>; j++) {</div>
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">for</span> (j = i + 1; j &lt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>; j++) {</div>
<div class="line"><span class="lineno"> 38</span> tmp = (<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() % <a class="code hl_define" href="#aee57a411f07599034f5ceb8cc7d65b40">LIMS</a>) - lim2;</div>
<div class="line"><span class="lineno"> 39</span> A[0][i][j] = tmp; <span class="comment">// summetrically distribute random values</span></div>
<div class="line"><span class="lineno"> 40</span> A[0][j][i] = tmp;</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>}</div>
<div class="ttc" id="adata__structures_2sparse__table_8cpp_html_a10f3ffb3f6f7e1b83d556b9c8de89a5d"><div class="ttname"><a href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">data_structures::sparse_table::N</a></div><div class="ttdeci">constexpr uint32_t N</div><div class="ttdoc">A struct to represent sparse table for min() as their invariant function, for the given array A....</div><div class="ttdef"><b>Definition</b> sparse_table.cpp:48</div></div>
<div class="ttc" id="aqr__eigen__values_8cpp_html_aee57a411f07599034f5ceb8cc7d65b40"><div class="ttname"><a href="#aee57a411f07599034f5ceb8cc7d65b40">LIMS</a></div><div class="ttdeci">#define LIMS</div><div class="ttdef"><b>Definition</b> qr_eigen_values.cpp:20</div></div>
<div class="ttc" id="arand_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a></div><div class="ttdeci">T rand(T... args)</div></div>
<div class="ttc" id="asparse__table_8cpp_html_a10f3ffb3f6f7e1b83d556b9c8de89a5d"><div class="ttname"><a href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">data_structures::sparse_table::N</a></div><div class="ttdeci">constexpr uint32_t N</div><div class="ttdoc">A struct to represent sparse table for min() as their invariant function, for the given array A....</div><div class="ttdef"><b>Definition</b> sparse_table.cpp:48</div></div>
</div><!-- fragment --><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">

View File

@@ -1,11 +1,13 @@
<map id="range_queries/segtree.cpp" name="range_queries/segtree.cpp">
<area shape="rect" id="Node000001" title="Implementation of [Segment Tree] (https://en.wikipedia.org/wiki/Segment_tree) data structure." alt="" coords="80,5,254,31"/>
<area shape="rect" id="Node000001" title="Implementation of [Segment Tree] (https://en.wikipedia.org/wiki/Segment_tree) data structure." alt="" coords="118,5,293,31"/>
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="146,34,74,73,72,69,144,29"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="178,34,81,75,79,70,176,29"/>
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,152,105"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="162,33,141,67,136,64,157,30"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="175,79,246,105"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="176,30,198,64,193,67,172,33"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="270,79,328,105"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="190,29,265,69,262,74,188,34"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="193,34,150,71,146,67,190,30"/>
<area shape="rect" id="Node000004" title=" " alt="" coords="175,79,236,105"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="208,31,208,63,203,63,203,31"/>
<area shape="rect" id="Node000005" title=" " alt="" coords="259,79,330,105"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="222,29,270,67,266,71,219,34"/>
<area shape="rect" id="Node000006" title=" " alt="" coords="354,79,412,105"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="237,29,341,71,339,76,235,34"/>
</map>

View File

@@ -1 +1 @@
1f9ca8c688f0c49869a2bee8b6156a18
d93bdb3862e8f243b6dd1bde73a79dda

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: range_queries/segtree.cpp Pages: 1 -->
<svg width="250pt" height="83pt"
viewBox="0.00 0.00 249.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="313pt" height="83pt"
viewBox="0.00 0.00 312.62 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="Implementation of [Segment Tree] (https://en.wikipedia.org/wiki/Segment_tree) data structure.">
<polygon fill="#999999" stroke="#666666" points="186.5,-74.5 55.75,-74.5 55.75,-55.25 186.5,-55.25 186.5,-74.5"/>
<text text-anchor="middle" x="121.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/segtree.cpp</text>
<polygon fill="#999999" stroke="#666666" points="215.5,-74.5 84.75,-74.5 84.75,-55.25 215.5,-55.25 215.5,-74.5"/>
<text text-anchor="middle" x="150.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/segtree.cpp</text>
</a>
</g>
</g>
@@ -41,8 +41,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.67,-54.84C89.9,-46.73 67.95,-34.68 50.69,-25.21"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.44,-22.18 41.99,-20.43 49.07,-28.31 52.44,-22.18"/>
<path fill="none" stroke="#63b8ff" d="M128.75,-54.84C108.84,-46.43 78.89,-33.77 56.12,-24.15"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.57,-20.96 47,-20.29 54.85,-27.41 57.57,-20.96"/>
</a>
</g>
</g>
@@ -59,8 +59,8 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M115.68,-55.08C111.35,-48.11 105.16,-38.12 99.74,-29.37"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.73,-27.55 94.49,-20.9 96.78,-31.24 102.73,-27.55"/>
<path fill="none" stroke="#63b8ff" d="M139.61,-54.84C130.74,-47.22 117.81,-36.12 107.14,-26.95"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.5,-24.37 99.64,-20.51 104.94,-29.68 109.5,-24.37"/>
</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="180.88,-19.25 127.38,-19.25 127.38,0 180.88,0 180.88,-19.25"/>
<text text-anchor="middle" x="154.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<polygon fill="#e0e0e0" stroke="#999999" points="172.75,-19.25 127.5,-19.25 127.5,0 172.75,0 172.75,-19.25"/>
<text text-anchor="middle" x="150.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
@@ -77,8 +77,8 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M126.57,-55.08C130.9,-48.11 137.09,-38.12 142.51,-29.37"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="145.47,-31.24 147.76,-20.9 139.52,-27.55 145.47,-31.24"/>
<path fill="none" stroke="#63b8ff" d="M150.12,-55.08C150.12,-48.57 150.12,-39.42 150.12,-31.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.63,-31.12 150.13,-21.12 146.63,-31.12 153.63,-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="241.62,-19.25 198.62,-19.25 198.62,0 241.62,0 241.62,-19.25"/>
<text text-anchor="middle" x="220.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<polygon fill="#e0e0e0" stroke="#999999" points="243.88,-19.25 190.38,-19.25 190.38,0 243.88,0 243.88,-19.25"/>
<text text-anchor="middle" x="217.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -95,8 +95,26 @@
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M137.92,-54.84C153.14,-46.66 175.82,-34.46 193.51,-24.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="194.77,-28.24 201.92,-20.42 191.45,-22.07 194.77,-28.24"/>
<path fill="none" stroke="#63b8ff" d="M161.49,-54.84C171.17,-47.15 185.32,-35.9 196.93,-26.68"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.09,-29.43 204.74,-20.47 194.74,-23.95 199.09,-29.43"/>
</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="304.62,-19.25 261.62,-19.25 261.62,0 304.62,0 304.62,-19.25"/>
<text text-anchor="middle" x="283.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M172.69,-54.84C194.15,-46.25 226.67,-33.23 250.87,-23.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="251.95,-26.88 259.93,-19.91 249.35,-20.38 251.95,-26.88"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
-->
<!-- Title: range_queries/segtree.cpp Pages: 1 -->
<svg width="250pt" height="83pt"
viewBox="0.00 0.00 249.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="313pt" height="83pt"
viewBox="0.00 0.00 312.62 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>range_queries/segtree.cpp</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of [Segment Tree] (https://en.wikipedia.org/wiki/Segment_tree) data structure.">
<polygon fill="#999999" stroke="#666666" points="186.5,-74.5 55.75,-74.5 55.75,-55.25 186.5,-55.25 186.5,-74.5"/>
<text text-anchor="middle" x="121.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/segtree.cpp</text>
<polygon fill="#999999" stroke="#666666" points="215.5,-74.5 84.75,-74.5 84.75,-55.25 215.5,-55.25 215.5,-74.5"/>
<text text-anchor="middle" x="150.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries/segtree.cpp</text>
</a>
</g>
</g>
@@ -30,8 +30,8 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M104.67,-54.84C89.9,-46.73 67.95,-34.68 50.69,-25.21"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.44,-22.18 41.99,-20.43 49.07,-28.31 52.44,-22.18"/>
<path fill="none" stroke="#63b8ff" d="M128.75,-54.84C108.84,-46.43 78.89,-33.77 56.12,-24.15"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.57,-20.96 47,-20.29 54.85,-27.41 57.57,-20.96"/>
</a>
</g>
</g>
@@ -48,8 +48,8 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M115.68,-55.08C111.35,-48.11 105.16,-38.12 99.74,-29.37"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.73,-27.55 94.49,-20.9 96.78,-31.24 102.73,-27.55"/>
<path fill="none" stroke="#63b8ff" d="M139.61,-54.84C130.74,-47.22 117.81,-36.12 107.14,-26.95"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.5,-24.37 99.64,-20.51 104.94,-29.68 109.5,-24.37"/>
</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="180.88,-19.25 127.38,-19.25 127.38,0 180.88,0 180.88,-19.25"/>
<text text-anchor="middle" x="154.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<polygon fill="#e0e0e0" stroke="#999999" points="172.75,-19.25 127.5,-19.25 127.5,0 172.75,0 172.75,-19.25"/>
<text text-anchor="middle" x="150.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
@@ -66,8 +66,8 @@
<g id="edge3_Node000001_Node000004" class="edge">
<title>Node1&#45;&gt;Node4</title>
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M126.57,-55.08C130.9,-48.11 137.09,-38.12 142.51,-29.37"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="145.47,-31.24 147.76,-20.9 139.52,-27.55 145.47,-31.24"/>
<path fill="none" stroke="#63b8ff" d="M150.12,-55.08C150.12,-48.57 150.12,-39.42 150.12,-31.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.63,-31.12 150.13,-21.12 146.63,-31.12 153.63,-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="241.62,-19.25 198.62,-19.25 198.62,0 241.62,0 241.62,-19.25"/>
<text text-anchor="middle" x="220.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<polygon fill="#e0e0e0" stroke="#999999" points="243.88,-19.25 190.38,-19.25 190.38,0 243.88,0 243.88,-19.25"/>
<text text-anchor="middle" x="217.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -84,8 +84,26 @@
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M137.92,-54.84C153.14,-46.66 175.82,-34.46 193.51,-24.94"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="194.77,-28.24 201.92,-20.42 191.45,-22.07 194.77,-28.24"/>
<path fill="none" stroke="#63b8ff" d="M161.49,-54.84C171.17,-47.15 185.32,-35.9 196.93,-26.68"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.09,-29.43 204.74,-20.47 194.74,-23.95 199.09,-29.43"/>
</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="304.62,-19.25 261.62,-19.25 261.62,0 304.62,0 304.62,-19.25"/>
<text text-anchor="middle" x="283.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge5_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M172.69,-54.84C194.15,-46.25 226.67,-33.23 250.87,-23.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="251.95,-26.88 259.93,-19.91 249.35,-20.38 251.95,-26.88"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -116,12 +116,13 @@ $(function(){initNavTree('de/dd9/catalan__numbers_8cpp.html','../../'); initResi
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
<code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &lt;numeric&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for catalan_numbers.cpp:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/d75/catalan__numbers_8cpp__incl.svg" width="418" 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="../../d6/d75/catalan__numbers_8cpp__incl.svg" width="518" 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="nested-classes" name="nested-classes"></a>
@@ -156,10 +157,10 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 78</span> {</div>
<div class="line"><span class="lineno"> 79</span> test_catalan_numbers_up_to_20();</div>
<div class="line"><span class="lineno"> 80</span> test_catalan_numbers_25();</div>
<div class="line"><span class="lineno"> 81</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 79</span> {</div>
<div class="line"><span class="lineno"> 80</span> test_catalan_numbers_up_to_20();</div>
<div class="line"><span class="lineno"> 81</span> test_catalan_numbers_25();</div>
<div class="line"><span class="lineno"> 82</span>}</div>
</div><!-- fragment -->
</div>
</div>
@@ -177,13 +178,13 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 72</span> {</div>
<div class="line"><span class="lineno"> 73</span> <span class="comment">// data verified with https://oeis.org/A000108/</span></div>
<div class="line"><span class="lineno"> 74</span> <a class="code hl_class" href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a> cn;</div>
<div class="line"><span class="lineno"> 75</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(25) == 4861946401452ULL);</div>
<div class="line"><span class="lineno"> 76</span>}</div>
<div class="ttc" id="aclasscatalan__numbers_html"><div class="ttname"><a href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a></div><div class="ttdoc">computes and caches Catalan numbers</div><div class="ttdef"><b>Definition</b> catalan_numbers.cpp:21</div></div>
<div class="ttc" id="aclasscatalan__numbers_html_a54655c66cf89186d3d1fa90829b28ab8"><div class="ttname"><a href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">catalan_numbers::get</a></div><div class="ttdeci">value_type get(std::size_t n)</div><div class="ttdoc">computes the n-th Catalan number and updates the cache.</div><div class="ttdef"><b>Definition</b> catalan_numbers.cpp:38</div></div>
<div class="fragment"><div class="line"><span class="lineno"> 73</span> {</div>
<div class="line"><span class="lineno"> 74</span> <span class="comment">// data verified with https://oeis.org/A000108/</span></div>
<div class="line"><span class="lineno"> 75</span> <a class="code hl_class" href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a> cn;</div>
<div class="line"><span class="lineno"> 76</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(25) == 4861946401452ULL);</div>
<div class="line"><span class="lineno"> 77</span>}</div>
<div class="ttc" id="aclasscatalan__numbers_html"><div class="ttname"><a href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a></div><div class="ttdoc">computes and caches Catalan numbers</div><div class="ttdef"><b>Definition</b> catalan_numbers.cpp:22</div></div>
<div class="ttc" id="aclasscatalan__numbers_html_a54655c66cf89186d3d1fa90829b28ab8"><div class="ttname"><a href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">catalan_numbers::get</a></div><div class="ttdeci">value_type get(std::size_t n)</div><div class="ttdoc">computes the n-th Catalan number and updates the cache.</div><div class="ttdef"><b>Definition</b> catalan_numbers.cpp:39</div></div>
</div><!-- fragment -->
</div>
</div>
@@ -201,31 +202,31 @@ Functions</h2></td></tr>
</tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 46</span> {</div>
<div class="line"><span class="lineno"> 47</span> <span class="comment">// data verified with https://oeis.org/A000108/</span></div>
<div class="line"><span class="lineno"> 48</span> <a class="code hl_class" href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a> cn;</div>
<div class="line"><span class="lineno"> 49</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(0) == 1ULL);</div>
<div class="line"><span class="lineno"> 50</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(1) == 1ULL);</div>
<div class="line"><span class="lineno"> 51</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(2) == 2ULL);</div>
<div class="line"><span class="lineno"> 52</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(3) == 5ULL);</div>
<div class="line"><span class="lineno"> 53</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(4) == 14ULL);</div>
<div class="line"><span class="lineno"> 54</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(5) == 42ULL);</div>
<div class="line"><span class="lineno"> 55</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(6) == 132ULL);</div>
<div class="line"><span class="lineno"> 56</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(7) == 429ULL);</div>
<div class="line"><span class="lineno"> 57</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(8) == 1430ULL);</div>
<div class="line"><span class="lineno"> 58</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(9) == 4862ULL);</div>
<div class="line"><span class="lineno"> 59</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(10) == 16796ULL);</div>
<div class="line"><span class="lineno"> 60</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(11) == 58786ULL);</div>
<div class="line"><span class="lineno"> 61</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(12) == 208012ULL);</div>
<div class="line"><span class="lineno"> 62</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(13) == 742900ULL);</div>
<div class="line"><span class="lineno"> 63</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(14) == 2674440ULL);</div>
<div class="line"><span class="lineno"> 64</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(15) == 9694845ULL);</div>
<div class="line"><span class="lineno"> 65</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(16) == 35357670ULL);</div>
<div class="line"><span class="lineno"> 66</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(17) == 129644790ULL);</div>
<div class="line"><span class="lineno"> 67</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(18) == 477638700ULL);</div>
<div class="line"><span class="lineno"> 68</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(19) == 1767263190ULL);</div>
<div class="line"><span class="lineno"> 69</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(20) == 6564120420ULL);</div>
<div class="line"><span class="lineno"> 70</span>}</div>
<div class="fragment"><div class="line"><span class="lineno"> 47</span> {</div>
<div class="line"><span class="lineno"> 48</span> <span class="comment">// data verified with https://oeis.org/A000108/</span></div>
<div class="line"><span class="lineno"> 49</span> <a class="code hl_class" href="../../dc/d1f/classcatalan__numbers.html">catalan_numbers</a> cn;</div>
<div class="line"><span class="lineno"> 50</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(0) == 1ULL);</div>
<div class="line"><span class="lineno"> 51</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(1) == 1ULL);</div>
<div class="line"><span class="lineno"> 52</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(2) == 2ULL);</div>
<div class="line"><span class="lineno"> 53</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(3) == 5ULL);</div>
<div class="line"><span class="lineno"> 54</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(4) == 14ULL);</div>
<div class="line"><span class="lineno"> 55</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(5) == 42ULL);</div>
<div class="line"><span class="lineno"> 56</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(6) == 132ULL);</div>
<div class="line"><span class="lineno"> 57</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(7) == 429ULL);</div>
<div class="line"><span class="lineno"> 58</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(8) == 1430ULL);</div>
<div class="line"><span class="lineno"> 59</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(9) == 4862ULL);</div>
<div class="line"><span class="lineno"> 60</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(10) == 16796ULL);</div>
<div class="line"><span class="lineno"> 61</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(11) == 58786ULL);</div>
<div class="line"><span class="lineno"> 62</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(12) == 208012ULL);</div>
<div class="line"><span class="lineno"> 63</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(13) == 742900ULL);</div>
<div class="line"><span class="lineno"> 64</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(14) == 2674440ULL);</div>
<div class="line"><span class="lineno"> 65</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(15) == 9694845ULL);</div>
<div class="line"><span class="lineno"> 66</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(16) == 35357670ULL);</div>
<div class="line"><span class="lineno"> 67</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(17) == 129644790ULL);</div>
<div class="line"><span class="lineno"> 68</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(18) == 477638700ULL);</div>
<div class="line"><span class="lineno"> 69</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(19) == 1767263190ULL);</div>
<div class="line"><span class="lineno"> 70</span> assert(cn.<a class="code hl_function" href="../../dc/d1f/classcatalan__numbers.html#a54655c66cf89186d3d1fa90829b28ab8">get</a>(20) == 6564120420ULL);</div>
<div class="line"><span class="lineno"> 71</span>}</div>
</div><!-- fragment -->
</div>
</div>

View File

@@ -189,12 +189,12 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 38</span> {</div>
<div class="line"><span class="lineno"> 39</span> uint64_t <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>;</div>
<div class="line"><span class="lineno"> 39</span> uint64_t <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>;</div>
<div class="line"><span class="lineno"> 40</span> <span class="keywordflow">if</span> (argc == 2) {</div>
<div class="line"><span class="lineno"> 41</span> <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/byte/strtoul.html">strtoull</a>(argv[1], NULL, 10);</div>
<div class="line"><span class="lineno"> 41</span> <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/byte/strtoul.html">strtoull</a>(argv[1], NULL, 10);</div>
<div class="line"><span class="lineno"> 42</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><span class="lineno"> 43</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Enter N: &quot;</span>;</div>
<div class="line"><span class="lineno"> 44</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> &gt;&gt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>;</div>
<div class="line"><span class="lineno"> 44</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> &gt;&gt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a>;</div>
<div class="line"><span class="lineno"> 45</span> }</div>
<div class="line"><span class="lineno"> 46</span> </div>
<div class="line"><span class="lineno"> 47</span> clock_t start_time = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/clock.html">std::clock</a>();</div>
@@ -204,12 +204,12 @@ Functions</h2></td></tr>
<div class="line"><span class="lineno"> 51</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(CLOCKS_PER_SEC);</div>
<div class="line"><span class="lineno"> 52</span> </div>
<div class="line"><span class="lineno"> 53</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <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"> 54</span> &lt;&lt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number: &quot;</span> &lt;&lt; <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a> &lt;&lt; <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"> 54</span> &lt;&lt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number: &quot;</span> &lt;&lt; <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a> &lt;&lt; <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"> 55</span> &lt;&lt; <span class="stringliteral">&quot;Number of digits: &quot;</span> &lt;&lt; <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>.num_digits() &lt;&lt; <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"> 56</span> &lt;&lt; <span class="stringliteral">&quot;Time taken: &quot;</span> &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/fixed.html">std::scientific</a> &lt;&lt; time_taken &lt;&lt; <span class="stringliteral">&quot; s&quot;</span></div>
<div class="line"><span class="lineno"> 57</span> &lt;&lt; <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"> 58</span> </div>
<div class="line"><span class="lineno"> 59</span> <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = 5000;</div>
<div class="line"><span class="lineno"> 59</span> <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> = 5000;</div>
<div class="line"><span class="lineno"> 60</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="#adf3e906875ab257f7fab3bc1370aa2db">fib</a>(N) ==</div>
<div class="line"><span class="lineno"> 61</span> <a class="code hl_class" href="../../db/d82/classlarge__number.html">large_number</a>(</div>
<div class="line"><span class="lineno"> 62</span> <span class="stringliteral">&quot;387896845438832563370191630832590531208212771464624510616059721489&quot;</span></div>
@@ -228,10 +228,10 @@ Functions</h2></td></tr>
<div class="line"><span class="lineno"> 75</span> <span class="stringliteral">&quot;508206686289742063932343848846524098874239587380197699382031717420&quot;</span></div>
<div class="line"><span class="lineno"> 76</span> <span class="stringliteral">&quot;893226546887936400263079778005875912967138963421425257911687275560&quot;</span></div>
<div class="line"><span class="lineno"> 77</span> <span class="stringliteral">&quot;0360311370547754724604639987588046985178408674382863125&quot;</span>))</div>
<div class="line"><span class="lineno"> 78</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Test for &quot;</span> &lt;&lt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number passed!&quot;</span></div>
<div class="line"><span class="lineno"> 78</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Test for &quot;</span> &lt;&lt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number passed!&quot;</span></div>
<div class="line"><span class="lineno"> 79</span> &lt;&lt; <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"> 80</span> <span class="keywordflow">else</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::cerr</a> &lt;&lt; <span class="stringliteral">&quot;Test for &quot;</span> &lt;&lt; <a class="code hl_variable" href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number failed!&quot;</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::cerr</a> &lt;&lt; <span class="stringliteral">&quot;Test for &quot;</span> &lt;&lt; <a class="code hl_variable" href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">N</a> &lt;&lt; <span class="stringliteral">&quot;^th Fibonacci number failed!&quot;</span></div>
<div class="line"><span class="lineno"> 82</span> &lt;&lt; <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"> 83</span> </div>
<div class="line"><span class="lineno"> 84</span> <span class="keywordflow">return</span> 0;</div>
@@ -239,11 +239,11 @@ Functions</h2></td></tr>
<div class="ttc" id="abasic_istream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a></div></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="aclock_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/c/clock.html">std::clock</a></div><div class="ttdeci">T clock(T... args)</div></div>
<div class="ttc" id="adata__structures_2sparse__table_8cpp_html_a10f3ffb3f6f7e1b83d556b9c8de89a5d"><div class="ttname"><a href="../../d6/d42/data__structures_2sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">data_structures::sparse_table::N</a></div><div class="ttdeci">constexpr uint32_t N</div><div class="ttdoc">A struct to represent sparse table for min() as their invariant function, for the given array A....</div><div class="ttdef"><b>Definition</b> sparse_table.cpp:48</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="afibonacci__large_8cpp_html_adf3e906875ab257f7fab3bc1370aa2db"><div class="ttname"><a href="#adf3e906875ab257f7fab3bc1370aa2db">fib</a></div><div class="ttdeci">large_number fib(uint64_t n)</div><div class="ttdef"><b>Definition</b> fibonacci_large.cpp:24</div></div>
<div class="ttc" id="afibonacci__sum_8cpp_html_aadb40ac4c74a7efc0680b83eeee138aa"><div class="ttname"><a href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">math::fibonacci_sum::result</a></div><div class="ttdeci">uint64_t result(uint64_t n)</div><div class="ttdef"><b>Definition</b> fibonacci_sum.cpp:77</div></div>
<div class="ttc" id="afixed_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/fixed.html">std::scientific</a></div><div class="ttdeci">T scientific(T... args)</div></div>
<div class="ttc" id="asparse__table_8cpp_html_a10f3ffb3f6f7e1b83d556b9c8de89a5d"><div class="ttname"><a href="../../d8/dab/sparse__table_8cpp.html#a10f3ffb3f6f7e1b83d556b9c8de89a5d">data_structures::sparse_table::N</a></div><div class="ttdeci">constexpr uint32_t N</div><div class="ttdoc">A struct to represent sparse table for min() as their invariant function, for the given array A....</div><div class="ttdef"><b>Definition</b> sparse_table.cpp:48</div></div>
<div class="ttc" id="astrtoul_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/byte/strtoul.html">std::strtoull</a></div><div class="ttdeci">T strtoull(T... args)</div></div>
</div><!-- fragment -->
</div>