Documentation for c6af943508
@@ -148,7 +148,7 @@ $(function(){initNavTree('annotated.html',''); initResizable(true); });
|
||||
<tr id="row_3_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d13/classdivide__and__conquer_1_1strassens__multiplication_1_1_matrix.html" target="_self">Matrix</a></td><td class="desc"><a class="el" href="dc/d13/classdivide__and__conquer_1_1strassens__multiplication_1_1_matrix.html" title="Matrix class.">Matrix</a> class </td></tr>
|
||||
<tr id="row_4_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_4_" class="arrow" onclick="dynsection.toggleFolder('4_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d0/d65/namespacedouble__hashing.html" target="_self">double_hashing</a></td><td class="desc">An implementation of hash table using <a href="https://en.wikipedia.org/wiki/Double_hashing" target="_blank">double hashing</a> algorithm </td></tr>
|
||||
<tr id="row_4_0_" class="odd" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/dde/structdouble__hashing_1_1_entry.html" target="_self">Entry</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_5_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_5_" class="arrow" onclick="dynsection.toggleFolder('5_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d5/d5f/namespacegeometry.html" target="_self">geometry</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </td></tr>
|
||||
<tr id="row_5_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_5_" class="arrow" onclick="dynsection.toggleFolder('5_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d5/d5f/namespacegeometry.html" target="_self">geometry</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a> </td></tr>
|
||||
<tr id="row_5_0_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_5_0_" class="arrow" onclick="dynsection.toggleFolder('5_0_')">►</span><span class="icona"><span class="icon">N</span></span><b>grahamscan</b></td><td class="desc"></td></tr>
|
||||
<tr id="row_5_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/d48/structgeometry_1_1grahamscan_1_1_point.html" target="_self">Point</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_5_1_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_5_1_" class="arrow" onclick="dynsection.toggleFolder('5_1_')">►</span><span class="icona"><span class="icon">N</span></span><b>jarvis</b></td><td class="desc"></td></tr>
|
||||
@@ -168,7 +168,7 @@ $(function(){initNavTree('annotated.html',''); initResizable(true); });
|
||||
<tr id="row_7_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/daa/classgreedy__algorithms_1_1dijkstra_1_1_graph.html" target="_self">Graph</a></td><td class="desc">Wrapper class for storing a graph </td></tr>
|
||||
<tr id="row_7_1_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/df6/classgreedy__algorithms_1_1_binary_addition.html" target="_self">BinaryAddition</a></td><td class="desc">A class to perform binary addition of two binary strings </td></tr>
|
||||
<tr id="row_7_2_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d49/classgreedy__algorithms_1_1_digit_separation.html" target="_self">DigitSeparation</a></td><td class="desc">A class that provides methods to separate the digits of a large positive number </td></tr>
|
||||
<tr id="row_8_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_8_" class="arrow" onclick="dynsection.toggleFolder('8_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d6/d0c/namespacehashing.html" target="_self">hashing</a></td><td class="desc">Hashing algorithms </td></tr>
|
||||
<tr id="row_8_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_8_" class="arrow" onclick="dynsection.toggleFolder('8_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d6/d0c/namespacehashing.html" target="_self">hashing</a></td><td class="desc">Used for assert </td></tr>
|
||||
<tr id="row_8_0_" class="odd" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_8_0_" class="arrow" onclick="dynsection.toggleFolder('8_0_')">►</span><span class="icona"><span class="icon">N</span></span><b>sha256</b></td><td class="desc"></td></tr>
|
||||
<tr id="row_8_0_0_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d84/classhashing_1_1sha256_1_1_hash.html" target="_self">Hash</a></td><td class="desc">Contains hash array and functions to update it and convert it to a hexadecimal string </td></tr>
|
||||
<tr id="row_9_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_9_" class="arrow" onclick="dynsection.toggleFolder('9_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d8/d89/namespacelinear__probing.html" target="_self">linear_probing</a></td><td class="desc">An implementation of hash table using <a href="https://en.wikipedia.org/wiki/Linear_probing" target="_blank">linear probing</a> algorithm </td></tr>
|
||||
@@ -186,7 +186,7 @@ $(function(){initNavTree('annotated.html',''); initResizable(true); });
|
||||
<tr id="row_10_2_0_0_" class="odd" style="display:none;"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d93/classmachine__learning_1_1neural__network_1_1layers_1_1_dense_layer.html" target="_self">DenseLayer</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_10_2_1_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/df4/classmachine__learning_1_1neural__network_1_1_neural_network.html" target="_self">NeuralNetwork</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_10_3_" class="odd" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d30/classmachine__learning_1_1adaline.html" target="_self">adaline</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_11_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_11_" class="arrow" onclick="dynsection.toggleFolder('11_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="dd/d47/namespacemath.html" target="_self">math</a></td><td class="desc">For IO operations </td></tr>
|
||||
<tr id="row_11_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_11_" class="arrow" onclick="dynsection.toggleFolder('11_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="dd/d47/namespacemath.html" target="_self">math</a></td><td class="desc">For assert </td></tr>
|
||||
<tr id="row_11_0_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_11_0_" class="arrow" onclick="dynsection.toggleFolder('11_0_')">►</span><span class="icona"><span class="icon">N</span></span><b>ncr_modulo_p</b></td><td class="desc"></td></tr>
|
||||
<tr id="row_11_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/dc1/classmath_1_1ncr__modulo__p_1_1_n_c_r_modulo_p.html" target="_self">NCRModuloP</a></td><td class="desc">Class which contains all methods required for calculating nCr mod p </td></tr>
|
||||
<tr id="row_12_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_12_" class="arrow" onclick="dynsection.toggleFolder('12_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="da/d6d/namespaceoperations__on__datastructures.html" target="_self">operations_on_datastructures</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </td></tr>
|
||||
@@ -230,7 +230,7 @@ $(function(){initNavTree('annotated.html',''); initResizable(true); });
|
||||
<tr id="row_16_1_" class="odd" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/d0d/classrange__queries_1_1fenwick__tree.html" target="_self">fenwick_tree</a></td><td class="desc">The class that initializes the Fenwick Tree </td></tr>
|
||||
<tr id="row_16_2_" class="odd" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_16_2_" class="arrow" onclick="dynsection.toggleFolder('16_2_')">►</span><span class="icona"><span class="icon">C</span></span><a class="el" href="d8/d28/classrange__queries_1_1per_seg_tree.html" target="_self">perSegTree</a></td><td class="desc">Range query here is range sum, but the code can be modified to make different queries like range max or min </td></tr>
|
||||
<tr id="row_16_2_0_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d66/classrange__queries_1_1per_seg_tree_1_1_node.html" target="_self">Node</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_17_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_17_" class="arrow" onclick="dynsection.toggleFolder('17_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d9/dca/namespacesearch.html" target="_self">search</a></td><td class="desc">For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </td></tr>
|
||||
<tr id="row_17_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_17_" class="arrow" onclick="dynsection.toggleFolder('17_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d9/dca/namespacesearch.html" target="_self">search</a></td><td class="desc">For std::assert </td></tr>
|
||||
<tr id="row_17_0_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_17_0_" class="arrow" onclick="dynsection.toggleFolder('17_0_')">►</span><span class="icona"><span class="icon">N</span></span><b>sublist_search</b></td><td class="desc"></td></tr>
|
||||
<tr id="row_17_0_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" target="_self">Node</a></td><td class="desc">A <a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" title="A Node structure representing a single link Node in a linked list.">Node</a> structure representing a single link <a class="el" href="da/d61/structsearch_1_1sublist__search_1_1_node.html" title="A Node structure representing a single link Node in a linked list.">Node</a> in a linked list </td></tr>
|
||||
<tr id="row_18_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_18_" class="arrow" onclick="dynsection.toggleFolder('18_')">►</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d2/dcf/namespacestatistics.html" target="_self">statistics</a></td><td class="desc">Statistical algorithms </td></tr>
|
||||
@@ -257,7 +257,7 @@ $(function(){initNavTree('annotated.html',''); initResizable(true); });
|
||||
<tr id="row_28_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d3/dbb/class_cycle_check.html" target="_self">CycleCheck</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_29_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/dee/classdouble__linked__list.html" target="_self">double_linked_list</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_30_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d1f/classdsu.html" target="_self">dsu</a></td><td class="desc">Disjoint sets union data structure, class based representation </td></tr>
|
||||
<tr id="row_31_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/df6/class_easter_year_month_day.html" target="_self">EasterYearMonthDay</a></td><td class="desc">For IO operations </td></tr>
|
||||
<tr id="row_31_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d1/df6/class_easter_year_month_day.html" target="_self">EasterYearMonthDay</a></td><td class="desc">For assert </td></tr>
|
||||
<tr id="row_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/d77/class_edge.html" target="_self">Edge</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_33_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/dca/class_f_c_f_s.html" target="_self">FCFS</a></td><td class="desc">Class which implements the <a class="el" href="dd/dca/class_f_c_f_s.html" title="Class which implements the FCFS scheduling algorithm.">FCFS</a> scheduling algorithm </td></tr>
|
||||
<tr id="row_34_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/d9a/class_graph.html" target="_self">Graph</a></td><td class="desc"></td></tr>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -126,7 +126,7 @@ Include dependency graph for gcd_of_n_numbers.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>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/ddb/namespacegcd__of__n__numbers.html">gcd_of_n_numbers</a></td></tr>
|
||||
<tr class="memdesc:d2/ddb/namespacegcd__of__n__numbers"><td class="mdescLeft"> </td><td class="mdescRight">Compute GCD of numbers in an array. <br /></td></tr>
|
||||
@@ -238,7 +238,7 @@ template<<a class="elRef" target="_blank" href="http://en.cppreference.com/w/
|
||||
<div class="line"><span class="lineno"> 77</span> }</div>
|
||||
<div class="line"><span class="lineno"> 78</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>;</div>
|
||||
<div class="line"><span class="lineno"> 79</span>}</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:76</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="agcd__of__n__numbers_8cpp_html_a509a35e11ed1e17a9e00dd56320a4181"><div class="ttname"><a href="#a509a35e11ed1e17a9e00dd56320a4181">math::gcd_of_n_numbers::gcd_two</a></div><div class="ttdeci">int gcd_two(int x, int y)</div><div class="ttdoc">Function to compute GCD of 2 numbers x and y.</div><div class="ttdef"><b>Definition</b> gcd_of_n_numbers.cpp:35</div></div>
|
||||
<div class="ttc" id="agcd__of__n__numbers_8cpp_html_a71b9357c7a722f8208499d9ba573297a"><div class="ttname"><a href="#a71b9357c7a722f8208499d9ba573297a">math::gcd_of_n_numbers::check_all_zeros</a></div><div class="ttdeci">bool check_all_zeros(const std::array< int, n > &a)</div><div class="ttdoc">Function to check if all elements in the array are 0.</div><div class="ttdef"><b>Definition</b> gcd_of_n_numbers.cpp:53</div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
|
||||
@@ -115,13 +115,14 @@ $(function(){initNavTree('d1/d21/quick__sort_8cpp.html','../../'); initResizable
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <algorithm></code><br />
|
||||
<code>#include <cassert></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <ctime></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for quick_sort.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/db2/quick__sort_8cpp__incl.svg" width="427" 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="../../de/db2/quick__sort_8cpp__incl.svg" width="512" 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>
|
||||
@@ -191,49 +192,49 @@ 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"> 201</span> {</div>
|
||||
<div class="line"><span class="lineno"> 202</span> <span class="keywordtype">int</span> choice = 0;</div>
|
||||
<div class="line"><span class="lineno"> 203</span> </div>
|
||||
<div class="line"><span class="lineno"> 204</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">"\tAvailable modes\t\n\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 205</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">"1. Self-tests mode\n2. Interactive mode"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 206</span> </div>
|
||||
<div class="line"><span class="lineno"> 207</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">"\nChoose a mode: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 208</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> choice;</div>
|
||||
<div class="line"><span class="lineno"> 209</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 210</span> </div>
|
||||
<div class="line"><span class="lineno"> 211</span> <span class="keywordflow">while</span> ((choice != 1) && (choice != 2)) {</div>
|
||||
<div class="line"><span class="lineno"> 212</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">"Invalid option. Choose between the valid modes: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 213</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> choice;</div>
|
||||
<div class="line"><span class="lineno"> 214</span> }</div>
|
||||
<div class="line"><span class="lineno"> 215</span> </div>
|
||||
<div class="line"><span class="lineno"> 216</span> <span class="keywordflow">if</span> (choice == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 217</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/srand.html">std::srand</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a>(<span class="keyword">nullptr</span>));</div>
|
||||
<div class="line"><span class="lineno"> 218</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 219</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (choice == 2) {</div>
|
||||
<div class="line"><span class="lineno"> 220</span> <span class="keywordtype">int</span> size = 0;</div>
|
||||
<div class="line"><span class="lineno"> 221</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">"\nEnter the number of elements: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 222</span> </div>
|
||||
<div class="line"><span class="lineno"> 223</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> size;</div>
|
||||
<div class="line"><span class="lineno"> 224</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr(size);</div>
|
||||
<div class="line"><span class="lineno"> 225</span> </div>
|
||||
<div class="line"><span class="lineno"> 226</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div>
|
||||
<div class="line"><span class="lineno"> 227</span> << <span class="stringliteral">"\nEnter the unsorted elements (can be negative/decimal): "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 228</span> </div>
|
||||
<div class="line"><span class="lineno"> 229</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; ++i) {</div>
|
||||
<div class="line"><span class="lineno"> 230</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 231</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> arr[i];</div>
|
||||
<div class="line"><span class="lineno"> 232</span> }</div>
|
||||
<div class="line"><span class="lineno"> 233</span> <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(&arr, 0, size - 1);</div>
|
||||
<div class="line"><span class="lineno"> 234</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">"\nSorted array: \n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 235</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr, size);</div>
|
||||
<div class="line"><span class="lineno"> 236</span> }</div>
|
||||
<div class="line"><span class="lineno"> 237</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 238</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 202</span> {</div>
|
||||
<div class="line"><span class="lineno"> 203</span> <span class="keywordtype">int</span> choice = 0;</div>
|
||||
<div class="line"><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><span class="lineno"> 205</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">"\tAvailable modes\t\n\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 206</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">"1. Self-tests mode\n2. Interactive mode"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 207</span> </div>
|
||||
<div class="line"><span class="lineno"> 208</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">"\nChoose a mode: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 209</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> choice;</div>
|
||||
<div class="line"><span class="lineno"> 210</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 211</span> </div>
|
||||
<div class="line"><span class="lineno"> 212</span> <span class="keywordflow">while</span> ((choice != 1) && (choice != 2)) {</div>
|
||||
<div class="line"><span class="lineno"> 213</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">"Invalid option. Choose between the valid modes: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 214</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> choice;</div>
|
||||
<div class="line"><span class="lineno"> 215</span> }</div>
|
||||
<div class="line"><span class="lineno"> 216</span> </div>
|
||||
<div class="line"><span class="lineno"> 217</span> <span class="keywordflow">if</span> (choice == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 218</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/srand.html">std::srand</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a>(<span class="keyword">nullptr</span>));</div>
|
||||
<div class="line"><span class="lineno"> 219</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 220</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (choice == 2) {</div>
|
||||
<div class="line"><span class="lineno"> 221</span> <span class="keywordtype">int</span> size = 0;</div>
|
||||
<div class="line"><span class="lineno"> 222</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">"\nEnter the number of elements: "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 223</span> </div>
|
||||
<div class="line"><span class="lineno"> 224</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> size;</div>
|
||||
<div class="line"><span class="lineno"> 225</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr(size);</div>
|
||||
<div class="line"><span class="lineno"> 226</span> </div>
|
||||
<div class="line"><span class="lineno"> 227</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div>
|
||||
<div class="line"><span class="lineno"> 228</span> << <span class="stringliteral">"\nEnter the unsorted elements (can be negative/decimal): "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 229</span> </div>
|
||||
<div class="line"><span class="lineno"> 230</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; ++i) {</div>
|
||||
<div class="line"><span class="lineno"> 231</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 232</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_istream.html">std::cin</a> >> arr[i];</div>
|
||||
<div class="line"><span class="lineno"> 233</span> }</div>
|
||||
<div class="line"><span class="lineno"> 234</span> <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(&arr, 0, size - 1);</div>
|
||||
<div class="line"><span class="lineno"> 235</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">"\nSorted array: \n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 236</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr, size);</div>
|
||||
<div class="line"><span class="lineno"> 237</span> }</div>
|
||||
<div class="line"><span class="lineno"> 238</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 239</span>}</div>
|
||||
<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="aquick__sort_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:135</div></div>
|
||||
<div class="ttc" id="aquick__sort_8cpp_html_a5e6213e8008356ac6eda9427f3f4b394"><div class="ttname"><a href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a></div><div class="ttdeci">void quick_sort(std::vector< T > *arr, const int &low, const int &high)</div><div class="ttdoc">the main function that implements Quick Sort.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:86</div></div>
|
||||
<div class="ttc" id="aquick__sort_8cpp_html_aeccefcf6fcca62c54939c5ec9a93109b"><div class="ttname"><a href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a></div><div class="ttdeci">void show(const std::vector< T > &arr, const int &size)</div><div class="ttdoc">Utility function to print the array contents.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:123</div></div>
|
||||
<div class="ttc" id="aquick__sort_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:136</div></div>
|
||||
<div class="ttc" id="aquick__sort_8cpp_html_a5e6213e8008356ac6eda9427f3f4b394"><div class="ttname"><a href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a></div><div class="ttdeci">void quick_sort(std::vector< T > *arr, const int &low, const int &high)</div><div class="ttdoc">the main function that implements Quick Sort.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:87</div></div>
|
||||
<div class="ttc" id="aquick__sort_8cpp_html_aeccefcf6fcca62c54939c5ec9a93109b"><div class="ttname"><a href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a></div><div class="ttdeci">void show(const std::vector< T > &arr, const int &size)</div><div class="ttdoc">Utility function to print the array contents.</div><div class="ttdef"><b>Definition</b> quick_sort.cpp:124</div></div>
|
||||
<div class="ttc" id="asrand_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/srand.html">std::srand</a></div><div class="ttdeci">T srand(T... args)</div></div>
|
||||
<div class="ttc" id="atime_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/c/time.html">std::time</a></div><div class="ttdeci">T time(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>
|
||||
@@ -287,22 +288,22 @@ template<typename T > </div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>index of the smaller element </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 58</span> {</div>
|
||||
<div class="line"><span class="lineno"> 59</span> T pivot = (*arr)[high]; <span class="comment">// taking the last element as pivot</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> <span class="keywordtype">int</span> i = (low - 1); <span class="comment">// Index of smaller element</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = low; j < high; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 63</span> <span class="comment">// If current element is smaller than or</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> <span class="comment">// equal to pivot</span></div>
|
||||
<div class="line"><span class="lineno"> 65</span> <span class="keywordflow">if</span> ((*arr)[j] <= pivot) {</div>
|
||||
<div class="line"><span class="lineno"> 66</span> i++; <span class="comment">// increment index of smaller element</span></div>
|
||||
<div class="line"><span class="lineno"> 67</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>((*arr)[i], (*arr)[j]);</div>
|
||||
<div class="line"><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><span class="lineno"> 69</span> }</div>
|
||||
<div class="line"><span class="lineno"> 70</span> </div>
|
||||
<div class="line"><span class="lineno"> 71</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>((*arr)[i + 1], (*arr)[high]);</div>
|
||||
<div class="line"><span class="lineno"> 72</span> <span class="keywordflow">return</span> (i + 1);</div>
|
||||
<div class="line"><span class="lineno"> 73</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 59</span> {</div>
|
||||
<div class="line"><span class="lineno"> 60</span> T pivot = (*arr)[high]; <span class="comment">// taking the last element as pivot</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="keywordtype">int</span> i = (low - 1); <span class="comment">// Index of smaller element</span></div>
|
||||
<div class="line"><span class="lineno"> 62</span> </div>
|
||||
<div class="line"><span class="lineno"> 63</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = low; j < high; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 64</span> <span class="comment">// If current element is smaller than or</span></div>
|
||||
<div class="line"><span class="lineno"> 65</span> <span class="comment">// equal to pivot</span></div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">if</span> ((*arr)[j] <= pivot) {</div>
|
||||
<div class="line"><span class="lineno"> 67</span> i++; <span class="comment">// increment index of smaller element</span></div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>((*arr)[i], (*arr)[j]);</div>
|
||||
<div class="line"><span class="lineno"> 69</span> }</div>
|
||||
<div class="line"><span class="lineno"> 70</span> }</div>
|
||||
<div class="line"><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><span class="lineno"> 72</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>((*arr)[i + 1], (*arr)[high]);</div>
|
||||
<div class="line"><span class="lineno"> 73</span> <span class="keywordflow">return</span> (i + 1);</div>
|
||||
<div class="line"><span class="lineno"> 74</span>}</div>
|
||||
<div class="ttc" id="aswap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a></div><div class="ttdeci">T swap(T... args)</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
@@ -353,14 +354,14 @@ template<typename T > </div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 86</span> {</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keywordflow">if</span> (low < high) {</div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keywordtype">int</span> p = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/partition.html">partition</a>(arr, low, high);</div>
|
||||
<div class="line"><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><span class="lineno"> 90</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(arr, low, p - 1);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(arr, p + 1, high);</div>
|
||||
<div class="line"><span class="lineno"> 92</span> }</div>
|
||||
<div class="line"><span class="lineno"> 93</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 87</span> {</div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keywordflow">if</span> (low < high) {</div>
|
||||
<div class="line"><span class="lineno"> 89</span> <span class="keywordtype">int</span> p = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/partition.html">partition</a>(arr, low, high);</div>
|
||||
<div class="line"><span class="lineno"> 90</span> </div>
|
||||
<div class="line"><span class="lineno"> 91</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(arr, low, p - 1);</div>
|
||||
<div class="line"><span class="lineno"> 92</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(arr, p + 1, high);</div>
|
||||
<div class="line"><span class="lineno"> 93</span> }</div>
|
||||
<div class="line"><span class="lineno"> 94</span>}</div>
|
||||
<div class="ttc" id="anamespacequick__sort_html"><div class="ttname"><a href="../../d0/d2b/namespacequick__sort.html">quick_sort</a></div><div class="ttdoc">Functions for the Quick sort implementation in C++.</div></div>
|
||||
<div class="ttc" id="apartition_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/partition.html">std::partition</a></div><div class="ttdeci">T partition(T... args)</div></div>
|
||||
</div><!-- fragment -->
|
||||
@@ -407,15 +408,15 @@ template<typename T > </div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 106</span> {</div>
|
||||
<div class="line"><span class="lineno"> 107</span> <span class="keywordflow">if</span> (low < high) {</div>
|
||||
<div class="line"><span class="lineno"> 108</span> <span class="keywordtype">int</span> p = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/partition.html">partition</a>(&arr, low, high);</div>
|
||||
<div class="line"><span class="lineno"> 109</span> </div>
|
||||
<div class="line"><span class="lineno"> 110</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(&arr, low, p - 1);</div>
|
||||
<div class="line"><span class="lineno"> 111</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(&arr, p + 1, high);</div>
|
||||
<div class="line"><span class="lineno"> 112</span> }</div>
|
||||
<div class="line"><span class="lineno"> 113</span> <span class="keywordflow">return</span> arr;</div>
|
||||
<div class="line"><span class="lineno"> 114</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 107</span> {</div>
|
||||
<div class="line"><span class="lineno"> 108</span> <span class="keywordflow">if</span> (low < high) {</div>
|
||||
<div class="line"><span class="lineno"> 109</span> <span class="keywordtype">int</span> p = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/partition.html">partition</a>(&arr, low, high);</div>
|
||||
<div class="line"><span class="lineno"> 110</span> </div>
|
||||
<div class="line"><span class="lineno"> 111</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(&arr, low, p - 1);</div>
|
||||
<div class="line"><span class="lineno"> 112</span> <a class="code hl_namespace" href="../../d0/d2b/namespacequick__sort.html">quick_sort</a>(&arr, p + 1, high);</div>
|
||||
<div class="line"><span class="lineno"> 113</span> }</div>
|
||||
<div class="line"><span class="lineno"> 114</span> <span class="keywordflow">return</span> arr;</div>
|
||||
<div class="line"><span class="lineno"> 115</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -449,10 +450,10 @@ template<typename T > </div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 123</span> {</div>
|
||||
<div class="line"><span class="lineno"> 124</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; i++) <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << arr[i] << <span class="stringliteral">" "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 125</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 126</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 124</span> {</div>
|
||||
<div class="line"><span class="lineno"> 125</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; i++) <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << arr[i] << <span class="stringliteral">" "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 126</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">"\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 127</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -481,67 +482,67 @@ template<typename T > </div>
|
||||
|
||||
<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"> 135</span> {</div>
|
||||
<div class="line"><span class="lineno"> 136</span> <span class="comment">// 1st test (normal numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 137</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint64_t></a> arr = {5, 3, 8, 12, 14, 16, 28, 96, 2, 5977};</div>
|
||||
<div class="line"><span class="lineno"> 138</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint64_t></a> arr_sorted = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 139</span> arr, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 140</span> </div>
|
||||
<div class="line"><span class="lineno"> 141</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted)));</div>
|
||||
<div class="line"><span class="lineno"> 142</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">"\n1st test: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 143</span> </div>
|
||||
<div class="line"><span class="lineno"> 144</span> <span class="comment">// 2nd test (normal and negative numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 145</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int64_t></a> arr2 = {9, 15, 28, 96, 500, -4, -58,</div>
|
||||
<div class="line"><span class="lineno"> 146</span> -977, -238, -800, -21, -53, -55};</div>
|
||||
<div class="line"><span class="lineno"> 147</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int64_t></a> arr_sorted2 = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 148</span> arr2, 0, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr2) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr2));</div>
|
||||
<div class="line"><span class="lineno"> 149</span> </div>
|
||||
<div class="line"><span class="lineno"> 150</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted2), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted2)));</div>
|
||||
<div class="line"><span class="lineno"> 151</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 152</span> </div>
|
||||
<div class="line"><span class="lineno"> 153</span> <span class="comment">// 3rd test (decimal and normal numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 154</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<double></a> arr3 = {29, 36, 1100, 0, 77, 1,</div>
|
||||
<div class="line"><span class="lineno"> 155</span> 6.7, 8.97, 1.74, 950.10, -329.65};</div>
|
||||
<div class="line"><span class="lineno"> 156</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<double></a> arr_sorted3 = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 157</span> arr3, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr3) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr3)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 158</span> </div>
|
||||
<div class="line"><span class="lineno"> 159</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted3), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted3)));</div>
|
||||
<div class="line"><span class="lineno"> 160</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 161</span> </div>
|
||||
<div class="line"><span class="lineno"> 162</span> <span class="comment">// 4th test (random decimal and negative numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 163</span> <span class="keywordtype">size_t</span> size = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() % 750 + 100;</div>
|
||||
<div class="line"><span class="lineno"> 164</span> </div>
|
||||
<div class="line"><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr4(size);</div>
|
||||
<div class="line"><span class="lineno"> 166</span> <span class="keywordflow">for</span> (uint64_t i = 0; i < size; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 167</span> arr4[i] = <span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>()) /</div>
|
||||
<div class="line"><span class="lineno"> 168</span> <span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(RAND_MAX / 999.99 - 0.99) -</div>
|
||||
<div class="line"><span class="lineno"> 169</span> 250;</div>
|
||||
<div class="line"><span class="lineno"> 170</span> }</div>
|
||||
<div class="line"><span class="lineno"> 171</span> </div>
|
||||
<div class="line"><span class="lineno"> 172</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr4_sorted = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 173</span> arr4, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 174</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4_sorted), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4_sorted)));</div>
|
||||
<div class="line"><span class="lineno"> 175</span> </div>
|
||||
<div class="line"><span class="lineno"> 176</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 177</span> </div>
|
||||
<div class="line"><span class="lineno"> 178</span> <span class="comment">// Printing all sorted arrays</span></div>
|
||||
<div class="line"><span class="lineno"> 179</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">"\n\tPrinting all sorted arrays:\t\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 180</span> </div>
|
||||
<div class="line"><span class="lineno"> 181</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 182</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr));</div>
|
||||
<div class="line"><span class="lineno"> 183</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 184</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 185</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted2, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr2) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr2));</div>
|
||||
<div class="line"><span class="lineno"> 186</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 187</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 188</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted3,</div>
|
||||
<div class="line"><span class="lineno"> 189</span> <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr3) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr3)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 190</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 191</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">"Start: 4th array:\n\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 192</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(</div>
|
||||
<div class="line"><span class="lineno"> 193</span> arr4_sorted, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4_sorted) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4_sorted)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 194</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">"\nEnd: 4th array.\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 195</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 136</span> {</div>
|
||||
<div class="line"><span class="lineno"> 137</span> <span class="comment">// 1st test (normal numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 138</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint64_t></a> arr = {5, 3, 8, 12, 14, 16, 28, 96, 2, 5977};</div>
|
||||
<div class="line"><span class="lineno"> 139</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<uint64_t></a> arr_sorted = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 140</span> arr, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 141</span> </div>
|
||||
<div class="line"><span class="lineno"> 142</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted)));</div>
|
||||
<div class="line"><span class="lineno"> 143</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">"\n1st test: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 144</span> </div>
|
||||
<div class="line"><span class="lineno"> 145</span> <span class="comment">// 2nd test (normal and negative numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 146</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int64_t></a> arr2 = {9, 15, 28, 96, 500, -4, -58,</div>
|
||||
<div class="line"><span class="lineno"> 147</span> -977, -238, -800, -21, -53, -55};</div>
|
||||
<div class="line"><span class="lineno"> 148</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int64_t></a> arr_sorted2 = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 149</span> arr2, 0, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr2) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr2));</div>
|
||||
<div class="line"><span class="lineno"> 150</span> </div>
|
||||
<div class="line"><span class="lineno"> 151</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted2), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted2)));</div>
|
||||
<div class="line"><span class="lineno"> 152</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 153</span> </div>
|
||||
<div class="line"><span class="lineno"> 154</span> <span class="comment">// 3rd test (decimal and normal numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 155</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<double></a> arr3 = {29, 36, 1100, 0, 77, 1,</div>
|
||||
<div class="line"><span class="lineno"> 156</span> 6.7, 8.97, 1.74, 950.10, -329.65};</div>
|
||||
<div class="line"><span class="lineno"> 157</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<double></a> arr_sorted3 = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 158</span> arr3, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr3) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr3)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 159</span> </div>
|
||||
<div class="line"><span class="lineno"> 160</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr_sorted3), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr_sorted3)));</div>
|
||||
<div class="line"><span class="lineno"> 161</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 162</span> </div>
|
||||
<div class="line"><span class="lineno"> 163</span> <span class="comment">// 4th test (random decimal and negative numbers)</span></div>
|
||||
<div class="line"><span class="lineno"> 164</span> <span class="keywordtype">size_t</span> size = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>() % 750 + 100;</div>
|
||||
<div class="line"><span class="lineno"> 165</span> </div>
|
||||
<div class="line"><span class="lineno"> 166</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr4(size);</div>
|
||||
<div class="line"><span class="lineno"> 167</span> <span class="keywordflow">for</span> (uint64_t i = 0; i < size; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 168</span> arr4[i] = <span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/random/rand.html">std::rand</a>()) /</div>
|
||||
<div class="line"><span class="lineno"> 169</span> <span class="keyword">static_cast<</span><span class="keywordtype">float</span><span class="keyword">></span>(RAND_MAX / 999.99 - 0.99) -</div>
|
||||
<div class="line"><span class="lineno"> 170</span> 250;</div>
|
||||
<div class="line"><span class="lineno"> 171</span> }</div>
|
||||
<div class="line"><span class="lineno"> 172</span> </div>
|
||||
<div class="line"><span class="lineno"> 173</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<float></a> arr4_sorted = <a class="code hl_function" href="#a5e6213e8008356ac6eda9427f3f4b394">sorting::quick_sort::quick_sort</a>(</div>
|
||||
<div class="line"><span class="lineno"> 174</span> arr4, 0, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 175</span> assert(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/is_sorted.html">std::is_sorted</a>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4_sorted), <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4_sorted)));</div>
|
||||
<div class="line"><span class="lineno"> 176</span> </div>
|
||||
<div class="line"><span class="lineno"> 177</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: passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 178</span> </div>
|
||||
<div class="line"><span class="lineno"> 179</span> <span class="comment">// Printing all sorted arrays</span></div>
|
||||
<div class="line"><span class="lineno"> 180</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">"\n\tPrinting all sorted arrays:\t\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 181</span> </div>
|
||||
<div class="line"><span class="lineno"> 182</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 183</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr));</div>
|
||||
<div class="line"><span class="lineno"> 184</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 185</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 186</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted2, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr2) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr2));</div>
|
||||
<div class="line"><span class="lineno"> 187</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 188</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 array:\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 189</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(arr_sorted3,</div>
|
||||
<div class="line"><span class="lineno"> 190</span> <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr3) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr3)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 191</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <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"> 192</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">"Start: 4th array:\n\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 193</span> <a class="code hl_function" href="#aeccefcf6fcca62c54939c5ec9a93109b">sorting::quick_sort::show</a>(</div>
|
||||
<div class="line"><span class="lineno"> 194</span> arr4_sorted, <span class="keywordtype">int</span>(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a>(arr4_sorted) - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a>(arr4_sorted)) - 1);</div>
|
||||
<div class="line"><span class="lineno"> 195</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">"\nEnd: 4th array.\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 196</span>}</div>
|
||||
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/begin.html">std::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
|
||||
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/end.html">std::end</a></div><div class="ttdeci">T end(T... args)</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>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<map id="math/finding_number_of_digits_in_a_number.cpp" name="math/finding_number_of_digits_in_a_number.cpp">
|
||||
<area shape="rect" id="Node000001" title="[Program to count digits in an integer](https://www.geeksforgeeks.org/program-count-digits-integer-3-..." alt="" coords="32,5,214,46"/>
|
||||
<area shape="rect" id="Node000001" title="[Program to count digits in an integer](https://www.geeksforgeeks.org/program-count-digits-integer-3-..." alt="" coords="73,5,255,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="104,48,64,85,60,81,100,44"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="134,49,71,88,69,83,131,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,152,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="126,46,126,78,120,78,120,46"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="175,94,246,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="146,44,188,81,184,85,143,48"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="156,48,139,81,134,79,152,45"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="175,94,236,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="177,45,194,79,190,81,172,48"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="259,94,330,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="198,44,263,83,261,88,195,49"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
9c441d6a0fda75c68b16e66fb18d3339
|
||||
5c4a79803d5f0019f7ba1641fd3c9829
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/finding_number_of_digits_in_a_number.cpp Pages: 1 -->
|
||||
<svg width="189pt" height="94pt"
|
||||
viewBox="0.00 0.00 188.88 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.88 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="[Program to count digits in an integer](https://www.geeksforgeeks.org/program-count-digits-integer-3-...">
|
||||
<polygon fill="#999999" stroke="#666666" points="156.5,-85.75 19.75,-85.75 19.75,-55.25 156.5,-55.25 156.5,-85.75"/>
|
||||
<text text-anchor="start" x="27.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">math/finding_number</text>
|
||||
<text text-anchor="middle" x="88.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_of_digits_in_a_number.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="187.5,-85.75 50.75,-85.75 50.75,-55.25 187.5,-55.25 187.5,-85.75"/>
|
||||
<text text-anchor="start" x="58.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">math/finding_number</text>
|
||||
<text text-anchor="middle" x="119.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_of_digits_in_a_number.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="M72.3,-54.95C63.22,-46.59 51.76,-36.05 42.31,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="44.83,-24.92 35.11,-20.73 40.1,-30.07 44.83,-24.92"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M95.64,-54.95C81.32,-46.07 63.04,-34.74 48.54,-25.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.4,-22.79 40.06,-20.5 46.71,-28.74 50.4,-22.79"/>
|
||||
</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="M88.12,-54.95C88.12,-47.71 88.12,-38.84 88.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.63,-31.21 88.13,-21.21 84.63,-31.21 91.63,-31.21"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M111.46,-54.95C107.47,-47.36 102.53,-37.99 98.23,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="101.37,-28.26 93.61,-21.04 95.17,-31.52 101.37,-28.26"/>
|
||||
</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.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>
|
||||
@@ -78,8 +78,26 @@
|
||||
<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="M104.44,-54.95C113.81,-46.59 125.62,-36.05 135.38,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.69,-29.98 142.82,-20.71 133.03,-24.75 137.69,-29.98"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M126.79,-54.95C130.78,-47.36 135.72,-37.99 140.02,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="143.08,-31.52 144.64,-21.04 136.88,-28.26 143.08,-31.52"/>
|
||||
</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.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>
|
||||
<!-- Node1->Node5 -->
|
||||
<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="M143.6,-54.8C158.53,-45.83 177.54,-34.41 192.49,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="194.03,-28.58 200.8,-20.43 190.42,-22.58 194.03,-28.58"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.8 KiB |
@@ -4,17 +4,17 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/finding_number_of_digits_in_a_number.cpp Pages: 1 -->
|
||||
<svg width="189pt" height="94pt"
|
||||
viewBox="0.00 0.00 188.88 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.88 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>math/finding_number_of_digits_in_a_number.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="[Program to count digits in an integer](https://www.geeksforgeeks.org/program-count-digits-integer-3-...">
|
||||
<polygon fill="#999999" stroke="#666666" points="156.5,-85.75 19.75,-85.75 19.75,-55.25 156.5,-55.25 156.5,-85.75"/>
|
||||
<text text-anchor="start" x="27.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">math/finding_number</text>
|
||||
<text text-anchor="middle" x="88.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_of_digits_in_a_number.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="187.5,-85.75 50.75,-85.75 50.75,-55.25 187.5,-55.25 187.5,-85.75"/>
|
||||
<text text-anchor="start" x="58.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">math/finding_number</text>
|
||||
<text text-anchor="middle" x="119.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_of_digits_in_a_number.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="M72.3,-54.95C63.22,-46.59 51.76,-36.05 42.31,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="44.83,-24.92 35.11,-20.73 40.1,-30.07 44.83,-24.92"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M95.64,-54.95C81.32,-46.07 63.04,-34.74 48.54,-25.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="50.4,-22.79 40.06,-20.5 46.71,-28.74 50.4,-22.79"/>
|
||||
</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="M88.12,-54.95C88.12,-47.71 88.12,-38.84 88.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.63,-31.21 88.13,-21.21 84.63,-31.21 91.63,-31.21"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M111.46,-54.95C107.47,-47.36 102.53,-37.99 98.23,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="101.37,-28.26 93.61,-21.04 95.17,-31.52 101.37,-28.26"/>
|
||||
</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.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>
|
||||
@@ -67,8 +67,26 @@
|
||||
<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="M104.44,-54.95C113.81,-46.59 125.62,-36.05 135.38,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.69,-29.98 142.82,-20.71 133.03,-24.75 137.69,-29.98"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M126.79,-54.95C130.78,-47.36 135.72,-37.99 140.02,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="143.08,-31.52 144.64,-21.04 136.88,-28.26 143.08,-31.52"/>
|
||||
</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.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>
|
||||
<!-- Node1->Node5 -->
|
||||
<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="M143.6,-54.8C158.53,-45.83 177.54,-34.41 192.49,-25.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="194.03,-28.58 200.8,-20.43 190.42,-22.58 194.03,-28.58"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -1,9 +1,11 @@
|
||||
<map id="math/lcm_sum.cpp" name="math/lcm_sum.cpp">
|
||||
<area shape="rect" id="Node000001" title="An algorithm to calculate the sum of LCM:  ." alt="" coords="63,5,196,31"/>
|
||||
<area shape="rect" id="Node000001" title="An algorithm to calculate the sum of LCM:  ." alt="" coords="102,5,234,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="116,34,66,72,63,67,112,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,165,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="132,31,132,63,127,63,127,31"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="189,79,246,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="146,29,193,67,189,71,143,34"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="147,34,74,74,71,69,145,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,154,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="163,33,142,67,137,64,159,30"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="178,30,200,64,196,67,173,33"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="273,79,330,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="192,29,267,69,264,74,190,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
4a99b4a56038d8d25d4576b7319cbb44
|
||||
f21a252dc95d134985a3ab1932dec617
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/lcm_sum.cpp Pages: 1 -->
|
||||
<svg width="189pt" height="83pt"
|
||||
viewBox="0.00 0.00 188.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="252pt" height="83pt"
|
||||
viewBox="0.00 0.00 251.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="An algorithm to calculate the sum of LCM:  .">
|
||||
<polygon fill="#999999" stroke="#666666" points="142.75,-74.5 43.5,-74.5 43.5,-55.25 142.75,-55.25 142.75,-74.5"/>
|
||||
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/lcm_sum.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="171.75,-74.5 72.5,-74.5 72.5,-55.25 171.75,-55.25 171.75,-74.5"/>
|
||||
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/lcm_sum.cpp</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="M81.42,-54.84C71.35,-47.07 56.58,-35.67 44.56,-26.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.91,-23.79 36.86,-20.45 42.63,-29.33 46.91,-23.79"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M105.5,-54.84C90.44,-46.66 67.98,-34.46 50.47,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.62,-22.12 42.16,-20.43 49.28,-28.27 52.62,-22.12"/>
|
||||
</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="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>
|
||||
@@ -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="M93.12,-55.08C93.12,-48.57 93.12,-39.42 93.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.63,-31.12 93.13,-21.12 89.63,-31.12 96.63,-31.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M116.68,-55.08C112.35,-48.11 106.16,-38.12 100.74,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="103.73,-27.55 95.49,-20.9 97.78,-31.24 103.73,-27.55"/>
|
||||
</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.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>
|
||||
@@ -77,8 +77,26 @@
|
||||
<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="M104.32,-54.84C113.86,-47.15 127.8,-35.9 139.23,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.33,-29.48 146.92,-20.48 136.94,-24.03 141.33,-29.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M127.74,-55.08C132.24,-48.03 138.71,-37.9 144.34,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="147.14,-31.2 149.57,-20.88 141.24,-27.43 147.14,-31.2"/>
|
||||
</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->Node5 -->
|
||||
<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="M139.09,-54.84C154.39,-46.69 177.16,-34.57 194.99,-25.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="196.56,-28.2 203.74,-20.41 193.27,-22.02 196.56,-28.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: math/lcm_sum.cpp Pages: 1 -->
|
||||
<svg width="189pt" height="83pt"
|
||||
viewBox="0.00 0.00 188.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="252pt" height="83pt"
|
||||
viewBox="0.00 0.00 251.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>math/lcm_sum.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="An algorithm to calculate the sum of LCM:  .">
|
||||
<polygon fill="#999999" stroke="#666666" points="142.75,-74.5 43.5,-74.5 43.5,-55.25 142.75,-55.25 142.75,-74.5"/>
|
||||
<text text-anchor="middle" x="93.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/lcm_sum.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="171.75,-74.5 72.5,-74.5 72.5,-55.25 171.75,-55.25 171.75,-74.5"/>
|
||||
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/lcm_sum.cpp</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="M81.42,-54.84C71.35,-47.07 56.58,-35.67 44.56,-26.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="46.91,-23.79 36.86,-20.45 42.63,-29.33 46.91,-23.79"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M105.5,-54.84C90.44,-46.66 67.98,-34.46 50.47,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.62,-22.12 42.16,-20.43 49.28,-28.27 52.62,-22.12"/>
|
||||
</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="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>
|
||||
@@ -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="M93.12,-55.08C93.12,-48.57 93.12,-39.42 93.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="96.63,-31.12 93.13,-21.12 89.63,-31.12 96.63,-31.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M116.68,-55.08C112.35,-48.11 106.16,-38.12 100.74,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="103.73,-27.55 95.49,-20.9 97.78,-31.24 103.73,-27.55"/>
|
||||
</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.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>
|
||||
@@ -66,8 +66,26 @@
|
||||
<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="M104.32,-54.84C113.86,-47.15 127.8,-35.9 139.23,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="141.33,-29.48 146.92,-20.48 136.94,-24.03 141.33,-29.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M127.74,-55.08C132.24,-48.03 138.71,-37.9 144.34,-29.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="147.14,-31.2 149.57,-20.88 141.24,-27.43 147.14,-31.2"/>
|
||||
</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->Node5 -->
|
||||
<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="M139.09,-54.84C154.39,-46.69 177.16,-34.57 194.99,-25.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="196.56,-28.2 203.74,-20.41 193.27,-22.02 196.56,-28.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -1,11 +1,13 @@
|
||||
<map id="others/lru_cache.cpp" name="others/lru_cache.cpp">
|
||||
<area shape="rect" id="Node000001" title="An implementation of LRU Cache. Lru is a part of cache algorithms (also frequently called cache repla..." alt="" coords="97,5,239,31"/>
|
||||
<area shape="rect" id="Node000001" title="An implementation of LRU Cache. Lru is a part of cache algorithms (also frequently called cache repla..." alt="" coords="142,5,285,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,70,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="147,34,74,74,71,69,145,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,165,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="164,32,146,66,141,64,159,30"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="189,79,227,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="177,30,196,64,192,67,172,33"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="252,79,362,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="193,29,271,69,268,74,190,34"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="185,34,82,75,80,70,183,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,79,154,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="200,34,153,71,149,67,197,29"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,79,249,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="216,31,216,63,211,63,211,31"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="273,79,311,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="229,30,269,66,266,70,225,34"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="336,79,446,105"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="245,29,348,70,346,75,243,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
93f607fc0d8f90649a473581ddc9cada
|
||||
1955796432c1f82975231f7d84f00bdc
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: others/lru_cache.cpp Pages: 1 -->
|
||||
<svg width="276pt" height="83pt"
|
||||
viewBox="0.00 0.00 275.50 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="339pt" height="83pt"
|
||||
viewBox="0.00 0.00 338.50 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 implementation of LRU Cache. Lru is a part of cache algorithms (also frequently called cache repla...">
|
||||
<polygon fill="#999999" stroke="#666666" points="175.5,-74.5 68.75,-74.5 68.75,-55.25 175.5,-55.25 175.5,-74.5"/>
|
||||
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">others/lru_cache.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="209.5,-74.5 102.75,-74.5 102.75,-55.25 209.5,-55.25 209.5,-74.5"/>
|
||||
<text text-anchor="middle" x="156.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">others/lru_cache.cpp</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="M105.5,-54.84C90.44,-46.66 67.98,-34.46 50.47,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.62,-22.12 42.16,-20.43 49.28,-28.27 52.62,-22.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M133.73,-54.84C112.68,-46.35 80.92,-33.54 57,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="58.61,-20.76 48.03,-20.27 55.99,-27.26 58.61,-20.76"/>
|
||||
</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="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>
|
||||
@@ -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="M117.34,-55.08C113.58,-48.19 108.22,-38.34 103.49,-29.66"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="106.6,-28.05 98.74,-20.94 100.45,-31.39 106.6,-28.05"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M144.76,-54.84C135.08,-47.15 120.93,-35.9 109.32,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="111.51,-23.95 101.51,-20.47 107.16,-29.43 111.51,-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="166.53,-19.25 137.72,-19.25 137.72,0 166.53,0 166.53,-19.25"/>
|
||||
<text text-anchor="middle" x="152.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">list</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>
|
||||
@@ -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="M127.08,-55.08C131.01,-48.11 136.64,-38.12 141.56,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.46,-31.36 146.32,-20.93 138.36,-27.92 144.46,-31.36"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.12,-55.08C156.12,-48.57 156.12,-39.42 156.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-31.12 156.13,-21.12 152.63,-31.12 159.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="267.5,-19.25 184.75,-19.25 184.75,0 267.5,0 267.5,-19.25"/>
|
||||
<text text-anchor="middle" x="226.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="229.53,-19.25 200.72,-19.25 200.72,0 229.53,0 229.53,-19.25"/>
|
||||
<text text-anchor="middle" x="215.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">list</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="M139.77,-54.84C155.75,-46.66 179.58,-34.46 198.16,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.74,-28.07 207.05,-20.39 196.55,-21.83 199.74,-28.07"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M166.13,-54.84C174.49,-47.3 186.62,-36.35 196.73,-27.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.06,-29.84 204.14,-20.54 194.37,-24.64 199.06,-29.84"/>
|
||||
</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="330.5,-19.25 247.75,-19.25 247.75,0 330.5,0 330.5,-19.25"/>
|
||||
<text text-anchor="middle" x="289.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</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.69,-54.84C199.9,-46.35 231.9,-33.54 256,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="257.06,-27.23 265.05,-20.27 254.46,-20.73 257.06,-27.23"/>
|
||||
</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: others/lru_cache.cpp Pages: 1 -->
|
||||
<svg width="276pt" height="83pt"
|
||||
viewBox="0.00 0.00 275.50 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="339pt" height="83pt"
|
||||
viewBox="0.00 0.00 338.50 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>others/lru_cache.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="An implementation of LRU Cache. Lru is a part of cache algorithms (also frequently called cache repla...">
|
||||
<polygon fill="#999999" stroke="#666666" points="175.5,-74.5 68.75,-74.5 68.75,-55.25 175.5,-55.25 175.5,-74.5"/>
|
||||
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">others/lru_cache.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="209.5,-74.5 102.75,-74.5 102.75,-55.25 209.5,-55.25 209.5,-74.5"/>
|
||||
<text text-anchor="middle" x="156.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">others/lru_cache.cpp</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="M105.5,-54.84C90.44,-46.66 67.98,-34.46 50.47,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="52.62,-22.12 42.16,-20.43 49.28,-28.27 52.62,-22.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M133.73,-54.84C112.68,-46.35 80.92,-33.54 57,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="58.61,-20.76 48.03,-20.27 55.99,-27.26 58.61,-20.76"/>
|
||||
</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="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>
|
||||
@@ -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="M117.34,-55.08C113.58,-48.19 108.22,-38.34 103.49,-29.66"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="106.6,-28.05 98.74,-20.94 100.45,-31.39 106.6,-28.05"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M144.76,-54.84C135.08,-47.15 120.93,-35.9 109.32,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="111.51,-23.95 101.51,-20.47 107.16,-29.43 111.51,-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="166.53,-19.25 137.72,-19.25 137.72,0 166.53,0 166.53,-19.25"/>
|
||||
<text text-anchor="middle" x="152.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">list</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>
|
||||
@@ -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="M127.08,-55.08C131.01,-48.11 136.64,-38.12 141.56,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.46,-31.36 146.32,-20.93 138.36,-27.92 144.46,-31.36"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.12,-55.08C156.12,-48.57 156.12,-39.42 156.12,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-31.12 156.13,-21.12 152.63,-31.12 159.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="267.5,-19.25 184.75,-19.25 184.75,0 267.5,0 267.5,-19.25"/>
|
||||
<text text-anchor="middle" x="226.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="229.53,-19.25 200.72,-19.25 200.72,0 229.53,0 229.53,-19.25"/>
|
||||
<text text-anchor="middle" x="215.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">list</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="M139.77,-54.84C155.75,-46.66 179.58,-34.46 198.16,-24.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.74,-28.07 207.05,-20.39 196.55,-21.83 199.74,-28.07"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M166.13,-54.84C174.49,-47.3 186.62,-36.35 196.73,-27.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="199.06,-29.84 204.14,-20.54 194.37,-24.64 199.06,-29.84"/>
|
||||
</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="330.5,-19.25 247.75,-19.25 247.75,0 330.5,0 330.5,-19.25"/>
|
||||
<text text-anchor="middle" x="289.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</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.69,-54.84C199.9,-46.35 231.9,-33.54 256,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="257.06,-27.23 265.05,-20.27 254.46,-20.73 257.06,-27.23"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -1,7 +1,9 @@
|
||||
<map id="data_structures/queue_using_array.cpp" name="data_structures/queue_using_array.cpp">
|
||||
<area shape="rect" id="Node000001" title="Implementation of Linear [Queue using array] (https://www.geeksforgeeks.org/array-implementation-of-q..." alt="" coords="5,5,156,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="13,94,63,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="72,48,54,81,49,79,68,45"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="88,94,159,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="93,45,112,79,107,81,89,48"/>
|
||||
<area shape="rect" id="Node000001" title="Implementation of Linear [Queue using array] (https://www.geeksforgeeks.org/array-implementation-of-q..." alt="" coords="35,5,186,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,56,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="93,48,55,85,52,81,89,45"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="80,94,141,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="113,46,113,78,108,78,108,46"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="164,94,236,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="134,44,177,82,173,86,131,48"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
cea65214278f629616d43fee58840a95
|
||||
30f99179f4d4f2fc8b5d1498d2152969
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: data_structures/queue_using_array.cpp Pages: 1 -->
|
||||
<svg width="123pt" height="94pt"
|
||||
viewBox="0.00 0.00 123.12 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="181pt" height="94pt"
|
||||
viewBox="0.00 0.00 180.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 Linear [Queue using array] (https://www.geeksforgeeks.org/array-implementation-of-q...">
|
||||
<polygon fill="#999999" stroke="#666666" points="112.75,-85.75 0,-85.75 0,-55.25 112.75,-55.25 112.75,-85.75"/>
|
||||
<text text-anchor="start" x="8" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/queue</text>
|
||||
<text text-anchor="middle" x="56.38" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_using_array.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="135.25,-85.75 22.5,-85.75 22.5,-55.25 135.25,-55.25 135.25,-85.75"/>
|
||||
<text text-anchor="start" x="30.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/queue</text>
|
||||
<text text-anchor="middle" x="78.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_using_array.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -33,8 +33,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="43.25,-19.25 5.5,-19.25 5.5,0 43.25,0 43.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">array</text>
|
||||
<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>
|
||||
@@ -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="M48.46,-54.95C44.34,-47.36 39.25,-37.99 34.81,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="37.88,-28.15 30.03,-21.03 31.73,-31.49 37.88,-28.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M64.04,-54.95C55.61,-46.67 45.01,-36.27 36.19,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="38.79,-25.27 29.2,-20.76 33.89,-30.26 38.79,-25.27"/>
|
||||
</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="115.12,-19.25 61.62,-19.25 61.62,0 115.12,0 115.12,-19.25"/>
|
||||
<text text-anchor="middle" x="88.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="101.5,-19.25 56.25,-19.25 56.25,0 101.5,0 101.5,-19.25"/>
|
||||
<text text-anchor="middle" x="78.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -60,8 +60,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="M64.29,-54.95C68.41,-47.36 73.5,-37.99 77.94,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.02,-31.49 82.72,-21.03 74.87,-28.15 81.02,-31.49"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.88,-54.95C78.88,-47.71 78.88,-38.84 78.88,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="82.38,-31.21 78.88,-21.21 75.38,-31.21 82.38,-31.21"/>
|
||||
</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="172.62,-19.25 119.12,-19.25 119.12,0 172.62,0 172.62,-19.25"/>
|
||||
<text text-anchor="middle" x="145.88" 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="M95.44,-54.95C105.05,-46.5 117.19,-35.83 127.15,-27.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="129.21,-29.93 134.41,-20.7 124.59,-24.67 129.21,-29.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -4,17 +4,17 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: data_structures/queue_using_array.cpp Pages: 1 -->
|
||||
<svg width="123pt" height="94pt"
|
||||
viewBox="0.00 0.00 123.12 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="181pt" height="94pt"
|
||||
viewBox="0.00 0.00 180.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/queue_using_array.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Implementation of Linear [Queue using array] (https://www.geeksforgeeks.org/array-implementation-of-q...">
|
||||
<polygon fill="#999999" stroke="#666666" points="112.75,-85.75 0,-85.75 0,-55.25 112.75,-55.25 112.75,-85.75"/>
|
||||
<text text-anchor="start" x="8" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/queue</text>
|
||||
<text text-anchor="middle" x="56.38" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_using_array.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="135.25,-85.75 22.5,-85.75 22.5,-55.25 135.25,-55.25 135.25,-85.75"/>
|
||||
<text text-anchor="start" x="30.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures/queue</text>
|
||||
<text text-anchor="middle" x="78.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_using_array.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -22,8 +22,8 @@
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="43.25,-19.25 5.5,-19.25 5.5,0 43.25,0 43.25,-19.25"/>
|
||||
<text text-anchor="middle" x="24.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">array</text>
|
||||
<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>
|
||||
@@ -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="M48.46,-54.95C44.34,-47.36 39.25,-37.99 34.81,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="37.88,-28.15 30.03,-21.03 31.73,-31.49 37.88,-28.15"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M64.04,-54.95C55.61,-46.67 45.01,-36.27 36.19,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="38.79,-25.27 29.2,-20.76 33.89,-30.26 38.79,-25.27"/>
|
||||
</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="115.12,-19.25 61.62,-19.25 61.62,0 115.12,0 115.12,-19.25"/>
|
||||
<text text-anchor="middle" x="88.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="101.5,-19.25 56.25,-19.25 56.25,0 101.5,0 101.5,-19.25"/>
|
||||
<text text-anchor="middle" x="78.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -49,8 +49,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="M64.29,-54.95C68.41,-47.36 73.5,-37.99 77.94,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.02,-31.49 82.72,-21.03 74.87,-28.15 81.02,-31.49"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M78.88,-54.95C78.88,-47.71 78.88,-38.84 78.88,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="82.38,-31.21 78.88,-21.21 75.38,-31.21 82.38,-31.21"/>
|
||||
</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="172.62,-19.25 119.12,-19.25 119.12,0 172.62,0 172.62,-19.25"/>
|
||||
<text text-anchor="middle" x="145.88" 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="M95.44,-54.95C105.05,-46.5 117.19,-35.83 127.15,-27.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="129.21,-29.93 134.41,-20.7 124.59,-24.67 129.21,-29.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -702,7 +702,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 60</span> }</div>
|
||||
<div class="line"><span class="lineno"> 61</span> }</div>
|
||||
<div class="line"><span class="lineno"> 62</span> }</div>
|
||||
<div class="ttc" id="aclassuint128__t_html"><div class="ttname"><a href="../../db/d9a/classuint128__t.html">uint128_t</a></div><div class="ttdoc">class for 128-bit unsigned integer</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:59</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html"><div class="ttname"><a href="../../db/d9a/classuint128__t.html">uint128_t</a></div><div class="ttdoc">class for 128-bit unsigned integer</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:60</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
@@ -743,7 +743,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 126</span> }</div>
|
||||
<div class="line"><span class="lineno"> 127</span> <span class="keywordflow">return</span> 128 + s.<a class="code hl_function" href="../../db/d9a/classuint128__t.html#af139bb6e630f1a61919f180978611cd2">_lez</a>();</div>
|
||||
<div class="line"><span class="lineno"> 128</span> }</div>
|
||||
<div class="ttc" id="aclassuint128__t_html_af139bb6e630f1a61919f180978611cd2"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#af139bb6e630f1a61919f180978611cd2">uint128_t::_lez</a></div><div class="ttdeci">uint32_t _lez()</div><div class="ttdoc">Leading zeroes in binary.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:139</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html_af139bb6e630f1a61919f180978611cd2"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#af139bb6e630f1a61919f180978611cd2">uint128_t::_lez</a></div><div class="ttdeci">uint32_t _lez()</div><div class="ttdoc">Leading zeroes in binary.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:140</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -783,7 +783,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 138</span> }</div>
|
||||
<div class="line"><span class="lineno"> 139</span> <span class="keywordflow">return</span> 128 + f.<a class="code hl_function" href="../../db/d9a/classuint128__t.html#a7d2285a8a6e20b77f82f1f0351afe76e">_trz</a>();</div>
|
||||
<div class="line"><span class="lineno"> 140</span> }</div>
|
||||
<div class="ttc" id="aclassuint128__t_html_a7d2285a8a6e20b77f82f1f0351afe76e"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#a7d2285a8a6e20b77f82f1f0351afe76e">uint128_t::_trz</a></div><div class="ttdeci">uint32_t _trz()</div><div class="ttdoc">Trailing zeroes in binary.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:162</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html_a7d2285a8a6e20b77f82f1f0351afe76e"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#a7d2285a8a6e20b77f82f1f0351afe76e">uint128_t::_trz</a></div><div class="ttdeci">uint32_t _trz()</div><div class="ttdoc">Trailing zeroes in binary.</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:163</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -1641,8 +1641,8 @@ template<typename T , typename = typename std::enable_if<
|
||||
<div class="line"><span class="lineno"> 380</span> <span class="keywordflow">return</span> {f * p.s + s * p.f + fi + se.<a class="code hl_function" href="../../db/d9a/classuint128__t.html#a1ee2f1ffbd9984faad34883eb45e9705">upper</a>() + th.upper() + cc,</div>
|
||||
<div class="line"><span class="lineno"> 381</span> tmp + fo};</div>
|
||||
<div class="line"><span class="lineno"> 382</span> }</div>
|
||||
<div class="ttc" id="aclassuint128__t_html_a1ee2f1ffbd9984faad34883eb45e9705"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#a1ee2f1ffbd9984faad34883eb45e9705">uint128_t::upper</a></div><div class="ttdeci">uint64_t upper() const</div><div class="ttdoc">returns upper 64-bit integer part</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:207</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html_aa69e1064c0b0b1df1c61acd2ea04fabd"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#aa69e1064c0b0b1df1c61acd2ea04fabd">uint128_t::lower</a></div><div class="ttdeci">uint64_t lower() const</div><div class="ttdoc">returns lower 64-bit integer part</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:201</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html_a1ee2f1ffbd9984faad34883eb45e9705"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#a1ee2f1ffbd9984faad34883eb45e9705">uint128_t::upper</a></div><div class="ttdeci">uint64_t upper() const</div><div class="ttdoc">returns upper 64-bit integer part</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:208</div></div>
|
||||
<div class="ttc" id="aclassuint128__t_html_aa69e1064c0b0b1df1c61acd2ea04fabd"><div class="ttname"><a href="../../db/d9a/classuint128__t.html#aa69e1064c0b0b1df1c61acd2ea04fabd">uint128_t::lower</a></div><div class="ttdeci">uint64_t lower() const</div><div class="ttdoc">returns lower 64-bit integer part</div><div class="ttdef"><b>Definition</b> uint128_t.hpp:202</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -3706,7 +3706,7 @@ template<typename T , typename = typename std::enable_if<
|
||||
<div class="line"><span class="lineno"> 970</span> <span class="keywordflow">return</span> op;</div>
|
||||
<div class="line"><span class="lineno"> 971</span> }</div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></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>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<map id="backtracking/subarray_sum.cpp" name="backtracking/subarray_sum.cpp">
|
||||
<area shape="rect" id="Node000001" title="Subset-sum (only continuous subsets) problem" alt="" coords="112,5,262,46"/>
|
||||
<area shape="rect" id="Node000001" title="Subset-sum (only continuous subsets) problem" alt="" coords="139,5,288,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="151,49,75,89,72,84,148,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,165,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="175,48,150,83,145,79,171,45"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="189,94,299,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="203,45,228,79,224,83,199,48"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="324,94,381,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="229,44,314,85,312,89,227,49"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="171,49,79,90,77,85,168,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,154,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="193,48,151,86,147,82,190,44"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,94,249,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="216,46,216,78,211,78,211,46"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="273,94,383,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="243,44,300,83,297,87,240,49"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="408,94,465,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="270,44,394,88,392,93,268,49"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
dd22fd53e398dcb4e97a448841b8187c
|
||||
2cb101dd6d9b1917890c6f1d725e2f88
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: backtracking/subarray_sum.cpp Pages: 1 -->
|
||||
<svg width="290pt" height="94pt"
|
||||
viewBox="0.00 0.00 289.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="353pt" height="94pt"
|
||||
viewBox="0.00 0.00 352.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="Subset-sum (only continuous subsets) problem">
|
||||
<polygon fill="#999999" stroke="#666666" points="192.12,-85.75 80.12,-85.75 80.12,-55.25 192.12,-55.25 192.12,-85.75"/>
|
||||
<text text-anchor="start" x="88.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking/subarray</text>
|
||||
<text text-anchor="middle" x="136.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_sum.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="212.12,-85.75 100.12,-85.75 100.12,-55.25 212.12,-55.25 212.12,-85.75"/>
|
||||
<text text-anchor="start" x="108.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking/subarray</text>
|
||||
<text text-anchor="middle" x="156.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_sum.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="M108.15,-54.8C90.77,-45.66 68.53,-33.97 51.3,-24.91"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="53.12,-21.91 42.64,-20.36 49.86,-28.11 53.12,-21.91"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M123.16,-54.8C102.18,-45.44 75.22,-33.41 54.72,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.31,-21.15 45.75,-20.27 53.46,-27.54 56.31,-21.15"/>
|
||||
</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->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M125.5,-54.95C119.77,-47.1 112.64,-37.35 106.53,-28.99"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.37,-26.93 100.65,-20.92 103.72,-31.06 109.37,-26.93"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M139.56,-54.95C129.95,-46.5 117.81,-35.83 107.85,-27.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="110.41,-24.67 100.59,-20.7 105.79,-29.93 110.41,-24.67"/>
|
||||
</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="220.5,-19.25 137.75,-19.25 137.75,0 220.5,0 220.5,-19.25"/>
|
||||
<text text-anchor="middle" x="179.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</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,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="M146.75,-54.95C152.48,-47.1 159.61,-37.35 165.72,-28.99"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="168.53,-31.06 171.6,-20.92 162.88,-26.93 168.53,-31.06"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.12,-54.95C156.12,-47.71 156.12,-38.84 156.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-31.21 156.13,-21.21 152.63,-31.21 159.63,-31.21"/>
|
||||
</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="281.62,-19.25 238.62,-19.25 238.62,0 281.62,0 281.62,-19.25"/>
|
||||
<text text-anchor="middle" x="260.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="283.5,-19.25 200.75,-19.25 200.75,0 283.5,0 283.5,-19.25"/>
|
||||
<text text-anchor="middle" x="242.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -96,8 +96,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="M167.1,-54.8C186.62,-45.53 211.66,-33.63 230.85,-24.52"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="232.21,-27.75 239.74,-20.3 229.21,-21.43 232.21,-27.75"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M177.38,-54.95C190.23,-46.15 206.58,-34.96 219.64,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="221.34,-29.09 227.62,-20.56 217.39,-23.32 221.34,-29.09"/>
|
||||
</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="344.62,-19.25 301.62,-19.25 301.62,0 344.62,0 344.62,-19.25"/>
|
||||
<text text-anchor="middle" x="323.12" 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="M197.84,-54.8C226.58,-44.66 264.22,-31.39 290.71,-22.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="291.63,-25.44 299.9,-18.81 289.31,-18.84 291.63,-25.44"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 5.4 KiB |
@@ -4,17 +4,17 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: backtracking/subarray_sum.cpp Pages: 1 -->
|
||||
<svg width="290pt" height="94pt"
|
||||
viewBox="0.00 0.00 289.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="353pt" height="94pt"
|
||||
viewBox="0.00 0.00 352.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>backtracking/subarray_sum.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Subset-sum (only continuous subsets) problem">
|
||||
<polygon fill="#999999" stroke="#666666" points="192.12,-85.75 80.12,-85.75 80.12,-55.25 192.12,-55.25 192.12,-85.75"/>
|
||||
<text text-anchor="start" x="88.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking/subarray</text>
|
||||
<text text-anchor="middle" x="136.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_sum.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="212.12,-85.75 100.12,-85.75 100.12,-55.25 212.12,-55.25 212.12,-85.75"/>
|
||||
<text text-anchor="start" x="108.12" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking/subarray</text>
|
||||
<text text-anchor="middle" x="156.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_sum.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="M108.15,-54.8C90.77,-45.66 68.53,-33.97 51.3,-24.91"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="53.12,-21.91 42.64,-20.36 49.86,-28.11 53.12,-21.91"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M123.16,-54.8C102.18,-45.44 75.22,-33.41 54.72,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.31,-21.15 45.75,-20.27 53.46,-27.54 56.31,-21.15"/>
|
||||
</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->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M125.5,-54.95C119.77,-47.1 112.64,-37.35 106.53,-28.99"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="109.37,-26.93 100.65,-20.92 103.72,-31.06 109.37,-26.93"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M139.56,-54.95C129.95,-46.5 117.81,-35.83 107.85,-27.08"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="110.41,-24.67 100.59,-20.7 105.79,-29.93 110.41,-24.67"/>
|
||||
</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="220.5,-19.25 137.75,-19.25 137.75,0 220.5,0 220.5,-19.25"/>
|
||||
<text text-anchor="middle" x="179.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</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,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="M146.75,-54.95C152.48,-47.1 159.61,-37.35 165.72,-28.99"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="168.53,-31.06 171.6,-20.92 162.88,-26.93 168.53,-31.06"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M156.12,-54.95C156.12,-47.71 156.12,-38.84 156.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-31.21 156.13,-21.21 152.63,-31.21 159.63,-31.21"/>
|
||||
</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="281.62,-19.25 238.62,-19.25 238.62,0 281.62,0 281.62,-19.25"/>
|
||||
<text text-anchor="middle" x="260.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="283.5,-19.25 200.75,-19.25 200.75,0 283.5,0 283.5,-19.25"/>
|
||||
<text text-anchor="middle" x="242.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">unordered_map</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -85,8 +85,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="M167.1,-54.8C186.62,-45.53 211.66,-33.63 230.85,-24.52"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="232.21,-27.75 239.74,-20.3 229.21,-21.43 232.21,-27.75"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M177.38,-54.95C190.23,-46.15 206.58,-34.96 219.64,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="221.34,-29.09 227.62,-20.56 217.39,-23.32 221.34,-29.09"/>
|
||||
</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="344.62,-19.25 301.62,-19.25 301.62,0 344.62,0 344.62,-19.25"/>
|
||||
<text text-anchor="middle" x="323.12" 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="M197.84,-54.8C226.58,-44.66 264.22,-31.39 290.71,-22.05"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="291.63,-25.44 299.9,-18.81 289.31,-18.84 291.63,-25.44"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.7 KiB |
@@ -114,12 +114,13 @@ $(function(){initNavTree('d1/da6/rungekutta_8cpp.html','../../'); initResizable(
|
||||
<p><a href="https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods" target="_blank">Runge Kutta fourth order</a> method implementation
|
||||
<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 rungekutta.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dc/dc7/rungekutta_8cpp__incl.svg" width="252" 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="../../dc/dc7/rungekutta_8cpp__incl.svg" width="336" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
@@ -138,7 +139,7 @@ Functions</h2></td></tr>
|
||||
<tr class="separator:a7b9f40c7b5e9749cc550f19be3dc8856"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
|
||||
<tr class="memitem:a450497475f5607333f9aca8f88901579" id="r_a450497475f5607333f9aca8f88901579"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="#a450497475f5607333f9aca8f88901579">change</a> (double x, double y)</td></tr>
|
||||
<tr class="memdesc:a450497475f5607333f9aca8f88901579"><td class="mdescLeft"> </td><td class="mdescRight">for using the vector container <br /></td></tr>
|
||||
<tr class="memdesc:a450497475f5607333f9aca8f88901579"><td class="mdescLeft"> </td><td class="mdescRight">asserting the test functions <br /></td></tr>
|
||||
<tr class="separator:a450497475f5607333f9aca8f88901579"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d" id="r_aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft"> </td><td class="mdescRight">Tests to check algorithm implementation. <br /></td></tr>
|
||||
@@ -179,9 +180,9 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>for using the vector container </p>
|
||||
<p>asserting the test functions for io operations</p>
|
||||
<p>The <a class="el" href="#a450497475f5607333f9aca8f88901579" title="for using the vector container">change()</a> function is used to return the updated iterative value corresponding to the given function </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<p>asserting the test functions </p>
|
||||
<p>for io operations for using the vector container</p>
|
||||
<p>The <a class="el" href="#a450497475f5607333f9aca8f88901579" title="asserting the test functions">change()</a> function is used to return the updated iterative value corresponding to the given function </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>is the value corresponding to the x coordinate </td></tr>
|
||||
<tr><td class="paramname">y</td><td>is the value corresponding to the y coordinate </td></tr>
|
||||
@@ -304,7 +305,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 92</span>}</div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a1b74d828b33760094906797042b89442"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a1b74d828b33760094906797042b89442">numerical_methods::simpson_method::k</a></div><div class="ttdeci">double k(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition</b> composite_simpson_rule.cpp:117</div></div>
|
||||
<div class="ttc" id="ahash__search_8cpp_html_a566eaf0ffafd50bc61e644561fd27001"><div class="ttname"><a href="../../d1/df3/hash__search_8cpp.html#a566eaf0ffafd50bc61e644561fd27001">h</a></div><div class="ttdeci">int h(int key)</div><div class="ttdef"><b>Definition</b> hash_search.cpp:45</div></div>
|
||||
<div class="ttc" id="arungekutta_8cpp_html_a450497475f5607333f9aca8f88901579"><div class="ttname"><a href="#a450497475f5607333f9aca8f88901579">change</a></div><div class="ttdeci">static double change(double x, double y)</div><div class="ttdoc">for using the vector container</div><div class="ttdef"><b>Definition</b> rungekutta.cpp:33</div></div>
|
||||
<div class="ttc" id="arungekutta_8cpp_html_a450497475f5607333f9aca8f88901579"><div class="ttname"><a href="#a450497475f5607333f9aca8f88901579">change</a></div><div class="ttdeci">static double change(double x, double y)</div><div class="ttdoc">asserting the test functions</div><div class="ttdef"><b>Definition</b> rungekutta.cpp:33</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>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<map id="numerical_methods::runge_kutta::rungeKutta" name="numerical_methods::runge_kutta::rungeKutta">
|
||||
<area shape="rect" id="Node000001" title="the Runge Kutta method finds the value of integration of a function in the given limits...." alt="" coords="5,29,166,70"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000001" title=" " alt="" coords="55,29,53,19,58,11,69,5,86,3,103,5,114,11,111,16,101,10,85,8,71,10,62,14,58,20,60,28"/>
|
||||
<area shape="rect" id="Node000002" href="$d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" title="for using the vector container" alt="" coords="214,12,277,37"/>
|
||||
<area shape="rect" id="Node000002" href="$d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" title="asserting the test functions" alt="" coords="214,12,277,37"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="165,34,198,29,199,34,166,40"/>
|
||||
<area shape="rect" id="Node000003" href="$d1/df3/hash__search_8cpp.html#a566eaf0ffafd50bc61e644561fd27001" title=" " alt="" coords="226,61,265,86"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="166,59,211,66,210,71,165,64"/>
|
||||
|
||||
@@ -1 +1 @@
|
||||
b68d09b4cab566fa4f24c9171718ede9
|
||||
4b166e3b126e619907528809ca5c64cc
|
||||
@@ -41,7 +41,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" target="_top" xlink:title="for using the vector container">
|
||||
<g id="a_Node000002"><a xlink:href="../../d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" target="_top" xlink:title="asserting the test functions">
|
||||
<polygon fill="white" stroke="#666666" points="203.75,-56.25 156.25,-56.25 156.25,-37 203.75,-37 203.75,-56.25"/>
|
||||
<text text-anchor="middle" x="180" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">change</text>
|
||||
</a>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -30,7 +30,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" target="_top" xlink:title="for using the vector container">
|
||||
<g id="a_Node000002"><a xlink:href="../../d1/da6/rungekutta_8cpp.html#a450497475f5607333f9aca8f88901579" target="_top" xlink:title="asserting the test functions">
|
||||
<polygon fill="white" stroke="#666666" points="203.75,-56.25 156.25,-56.25 156.25,-37 203.75,-37 203.75,-56.25"/>
|
||||
<text text-anchor="middle" x="180" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">change</text>
|
||||
</a>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -114,17 +114,18 @@ $(function(){initNavTree('d1/dbb/n__choose__r_8cpp.html','../../'); initResizabl
|
||||
<p><a href="https://en.wikipedia.org/wiki/Combination" target="_blank">Combinations</a> n choose r function implementation
|
||||
<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 n_choose_r.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/df6/n__choose__r_8cpp__incl.svg" width="171" 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="../../d6/df6/n__choose__r_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>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<map id="bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp" name="bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp">
|
||||
<area shape="rect" id="Node000001" title="Count the number of ciphers in n! implementation" alt="" coords="7,5,158,61"/>
|
||||
<area shape="rect" id="Node000001" title="Count the number of ciphers in n! implementation" alt="" coords="48,5,200,61"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,109,70,135"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="71,62,53,96,49,94,66,60"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,109,165,135"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="100,60,118,94,113,97,95,63"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="99,63,62,100,59,96,95,59"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,109,154,135"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="127,61,127,93,122,93,122,61"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,109,249,135"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="154,59,192,96,188,100,150,63"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
eef4ce09391d4a1658d19d115dfff32f
|
||||
e7916529463e7769c3ee8bc6ee71d962
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp Pages: 1 -->
|
||||
<svg width="128pt" height="105pt"
|
||||
viewBox="0.00 0.00 127.88 105.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="105pt"
|
||||
viewBox="0.00 0.00 190.88 105.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Count the number of ciphers in n! implementation">
|
||||
<polygon fill="#999999" stroke="#666666" points="114.88,-97 1.38,-97 1.38,-55.25 114.88,-55.25 114.88,-97"/>
|
||||
<text text-anchor="start" x="9.38" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">bit_manipulation/count</text>
|
||||
<text text-anchor="start" x="9.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">_of_trailing_ciphers_in</text>
|
||||
<text text-anchor="middle" x="58.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_factorial_n.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="145.88,-97 32.38,-97 32.38,-55.25 145.88,-55.25 145.88,-97"/>
|
||||
<text text-anchor="start" x="40.38" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">bit_manipulation/count</text>
|
||||
<text text-anchor="start" x="40.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">_of_trailing_ciphers_in</text>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_factorial_n.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -43,8 +43,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="M47.55,-55.07C43.31,-47.03 38.45,-37.8 34.25,-29.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="37.37,-28.25 29.61,-21.03 31.18,-31.51 37.37,-28.25"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M68.91,-55.07C60.06,-46.29 49.79,-36.09 41.31,-27.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="43.9,-25.32 34.34,-20.76 38.97,-30.29 43.9,-25.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -52,8 +52,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>
|
||||
@@ -61,8 +61,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.01,-55.07C73.42,-46.93 78.5,-37.58 82.85,-29.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="85.79,-31.48 87.48,-21.03 79.64,-28.15 85.79,-31.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.07C89.12,-47.4 89.12,-38.64 89.12,-30.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.21 89.13,-21.21 85.63,-31.21 92.63,-31.21"/>
|
||||
</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="M109.96,-55.07C119.08,-46.29 129.67,-36.09 138.41,-27.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.84,-30.2 145.61,-20.75 135.98,-25.16 140.84,-30.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -4,18 +4,18 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp Pages: 1 -->
|
||||
<svg width="128pt" height="105pt"
|
||||
viewBox="0.00 0.00 127.88 105.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="191pt" height="105pt"
|
||||
viewBox="0.00 0.00 190.88 105.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 101)">
|
||||
<title>bit_manipulation/count_of_trailing_ciphers_in_factorial_n.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Count the number of ciphers in n! implementation">
|
||||
<polygon fill="#999999" stroke="#666666" points="114.88,-97 1.38,-97 1.38,-55.25 114.88,-55.25 114.88,-97"/>
|
||||
<text text-anchor="start" x="9.38" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">bit_manipulation/count</text>
|
||||
<text text-anchor="start" x="9.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">_of_trailing_ciphers_in</text>
|
||||
<text text-anchor="middle" x="58.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_factorial_n.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="145.88,-97 32.38,-97 32.38,-55.25 145.88,-55.25 145.88,-97"/>
|
||||
<text text-anchor="start" x="40.38" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">bit_manipulation/count</text>
|
||||
<text text-anchor="start" x="40.38" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">_of_trailing_ciphers_in</text>
|
||||
<text text-anchor="middle" x="89.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_factorial_n.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -32,8 +32,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="M47.55,-55.07C43.31,-47.03 38.45,-37.8 34.25,-29.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="37.37,-28.25 29.61,-21.03 31.18,-31.51 37.37,-28.25"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M68.91,-55.07C60.06,-46.29 49.79,-36.09 41.31,-27.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="43.9,-25.32 34.34,-20.76 38.97,-30.29 43.9,-25.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -41,8 +41,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>
|
||||
@@ -50,8 +50,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.01,-55.07C73.42,-46.93 78.5,-37.58 82.85,-29.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="85.79,-31.48 87.48,-21.03 79.64,-28.15 85.79,-31.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.12,-55.07C89.12,-47.4 89.12,-38.64 89.12,-30.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="92.63,-31.21 89.13,-21.21 85.63,-31.21 92.63,-31.21"/>
|
||||
</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="M109.96,-55.07C119.08,-46.29 129.67,-36.09 138.41,-27.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.84,-30.2 145.61,-20.75 135.98,-25.16 140.84,-30.2"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 3.4 KiB |
@@ -209,7 +209,7 @@ template<typename T > </div>
|
||||
<div class="line"><span class="lineno"> 100</span> }</div>
|
||||
<div class="line"><span class="lineno"> 101</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>;</div>
|
||||
<div class="line"><span class="lineno"> 102</span>}</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:76</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="alu__decomposition_8h_html_a75b8a228c6419ecda6077255d6d60509"><div class="ttname"><a href="#a75b8a228c6419ecda6077255d6d60509">lu_decomposition</a></div><div class="ttdeci">int lu_decomposition(const matrix< T > &A, matrix< double > *L, matrix< double > *U)</div><div class="ttdef"><b>Definition</b> lu_decomposition.h:29</div></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="avalarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/valarray.html">std::valarray</a></div></div>
|
||||
|
||||
@@ -260,7 +260,7 @@ bool </td><td class="memItemRight" valign="bottom"><b>linear_probing::rehas
|
||||
<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="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="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="anamespacelinear__probing_html_a16680b8a37d442c2f208faa286e33908"><div class="ttname"><a href="../../d8/d89/namespacelinear__probing.html#a16680b8a37d442c2f208faa286e33908">linear_probing::addInfo</a></div><div class="ttdeci">void addInfo(int key)</div><div class="ttdef"><b>Definition</b> linear_probing_hash_table.cpp:186</div></div>
|
||||
<div class="ttc" id="anamespacelinear__probing_html_a4bde7a47f98dd1ad24c84038e2608527"><div class="ttname"><a href="../../d8/d89/namespacelinear__probing.html#a4bde7a47f98dd1ad24c84038e2608527">linear_probing::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> linear_probing_hash_table.cpp:46</div></div>
|
||||
<div class="ttc" id="anamespacelinear__probing_html_a6322209aaa91b7bbf16f96e1cc52b746"><div class="ttname"><a href="../../d8/d89/namespacelinear__probing.html#a6322209aaa91b7bbf16f96e1cc52b746">linear_probing::linearProbe</a></div><div class="ttdeci">int linearProbe(int key, bool searching)</div><div class="ttdef"><b>Definition</b> linear_probing_hash_table.cpp:55</div></div>
|
||||
|
||||
@@ -115,13 +115,14 @@ $(function(){initNavTree('d1/dcc/wiggle__sort_8cpp.html','../../'); initResizabl
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <algorithm></code><br />
|
||||
<code>#include <cassert></code><br />
|
||||
<code>#include <cstdint></code><br />
|
||||
<code>#include <ctime></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for wiggle_sort.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/d28/wiggle__sort_8cpp__incl.svg" width="427" 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="../../d3/d28/wiggle__sort_8cpp__incl.svg" width="512" 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>
|
||||
@@ -180,25 +181,25 @@ template<typename T > </div>
|
||||
</dl>
|
||||
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="../../dd/db0/_2_users_2runner_2work_2_c-_plus-_plus_2_c-_plus-_plus_2sorting_2wiggle_sort_8cpp-example.html#a1">/Users/runner/work/C-Plus-Plus/C-Plus-Plus/sorting/wiggle_sort.cpp</a>.</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 53</span> {</div>
|
||||
<div class="line"><span class="lineno"> 54</span> uint32_t size = 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"> 55</span> </div>
|
||||
<div class="line"><span class="lineno"> 56</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<T></a> out(</div>
|
||||
<div class="line"><span class="lineno"> 57</span> arr); <span class="comment">// create a copy of input vector. this way, the original input</span></div>
|
||||
<div class="line"><span class="lineno"> 58</span> <span class="comment">// vector does not get modified. a sorted array is is returned.</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> </div>
|
||||
<div class="line"><span class="lineno"> 60</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; i += 2) {</div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="keywordflow">if</span> (i > 0 && out[i - 1] > out[i]) {</div>
|
||||
<div class="line"><span class="lineno"> 62</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>(out[i], out[i - 1]); <span class="comment">// swapping the two values</span></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="keywordflow">if</span> (i < size - 1 && out[i] < out[i + 1]) {</div>
|
||||
<div class="line"><span class="lineno"> 66</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>(out[i], out[i + 1]); <span class="comment">// swapping the two values</span></div>
|
||||
<div class="line"><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><span class="lineno"> 70</span> <span class="keywordflow">return</span> out; <span class="comment">// returns the sorted vector</span></div>
|
||||
<div class="line"><span class="lineno"> 71</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 54</span> {</div>
|
||||
<div class="line"><span class="lineno"> 55</span> uint32_t size = 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"> 56</span> </div>
|
||||
<div class="line"><span class="lineno"> 57</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<T></a> out(</div>
|
||||
<div class="line"><span class="lineno"> 58</span> arr); <span class="comment">// create a copy of input vector. this way, the original input</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> <span class="comment">// vector does not get modified. a sorted array is is returned.</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; i += 2) {</div>
|
||||
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">if</span> (i > 0 && out[i - 1] > out[i]) {</div>
|
||||
<div class="line"><span class="lineno"> 63</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>(out[i], out[i - 1]); <span class="comment">// swapping the two values</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> }</div>
|
||||
<div class="line"><span class="lineno"> 65</span> </div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">if</span> (i < size - 1 && out[i] < out[i + 1]) {</div>
|
||||
<div class="line"><span class="lineno"> 67</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a>(out[i], out[i + 1]); <span class="comment">// swapping the two values</span></div>
|
||||
<div class="line"><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><span class="lineno"> 69</span> }</div>
|
||||
<div class="line"><span class="lineno"> 70</span> </div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="keywordflow">return</span> out; <span class="comment">// returns the sorted vector</span></div>
|
||||
<div class="line"><span class="lineno"> 72</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="aswap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a></div><div class="ttdeci">T swap(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>
|
||||
|
||||
@@ -129,7 +129,7 @@ Functions</h2></td></tr>
|
||||
<div class="textblock"><p>for assert </p>
|
||||
<p>Numerical Methods.</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/map.html">std::map</a> container</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></p>
|
||||
<p>for storing points and coefficents</p>
|
||||
<p>for io operations</p>
|
||||
<p>for math functions</p>
|
||||
<p>for IO operations</p>
|
||||
@@ -138,7 +138,7 @@ Functions</h2></td></tr>
|
||||
<p>Numerical algorithms/methods</p>
|
||||
<p>for math operations</p>
|
||||
<p>Numerical methods</p>
|
||||
<p>for assert for mathematical-related functions for storing points and coefficents for IO operations</p>
|
||||
<p>for assert for mathematical-related functions for IO operations for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></p>
|
||||
<p>Numerical algorithms/methods</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a> for assert for fabs</p>
|
||||
<p>Numerical Methods algorithms</p>
|
||||
@@ -251,61 +251,61 @@ y if n!=1 </dd></dl>
|
||||
<p>Updating the last n/2 elements</p>
|
||||
<p>Deleting dynamic array ye</p>
|
||||
<p>Deleting dynamic array yo</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 41</span> {</div>
|
||||
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">if</span> (n == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 43</span> <span class="keywordflow">return</span> p; <span class="comment">/// Base Case To return</span></div>
|
||||
<div class="line"><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><span class="lineno"> 46</span> <span class="keywordtype">double</span> pi = 2 * asin(1.0); <span class="comment">/// Declaring value of pi</span></div>
|
||||
<div class="line"><span class="lineno"> 47</span> </div>
|
||||
<div class="line"><span class="lineno"> 48</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> om = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>(</div>
|
||||
<div class="line"><span class="lineno"> 49</span> cos(2 * pi / n), sin(2 * pi / n)); <span class="comment">/// Calculating value of omega</span></div>
|
||||
<div class="line"><span class="lineno"> 50</span> </div>
|
||||
<div class="line"><span class="lineno"> 51</span> <span class="keyword">auto</span> *pe = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of even power</span></div>
|
||||
<div class="line"><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><span class="lineno"> 53</span> <span class="keyword">auto</span> *po = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of odd power</span></div>
|
||||
<div class="line"><span class="lineno"> 54</span> </div>
|
||||
<div class="line"><span class="lineno"> 55</span> <span class="keywordtype">int</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < n; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 57</span> <span class="keywordflow">if</span> (j % 2 == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 58</span> pe[k1++] = p[j]; <span class="comment">/// Assigning values of even Coefficients</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> </div>
|
||||
<div class="line"><span class="lineno"> 60</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 61</span> po[k2++] = p[j]; <span class="comment">/// Assigning value of odd Coefficients</span></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> </div>
|
||||
<div class="line"><span class="lineno"> 65</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *ye =</div>
|
||||
<div class="line"><span class="lineno"> 66</span> <a class="code hl_function" href="#a158fd271b9a53e8f3f60b08b18857150">FastFourierTransform</a>(pe, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *yo =</div>
|
||||
<div class="line"><span class="lineno"> 69</span> <a class="code hl_function" href="#a158fd271b9a53e8f3f60b08b18857150">FastFourierTransform</a>(po, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 70</span> </div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="keyword">auto</span> *y = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n]; <span class="comment">/// Final value representation list</span></div>
|
||||
<div class="line"><span class="lineno"> 72</span> </div>
|
||||
<div class="line"><span class="lineno"> 73</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 74</span> </div>
|
||||
<div class="line"><span class="lineno"> 75</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n / 2; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 76</span> y[i] =</div>
|
||||
<div class="line"><span class="lineno"> 77</span> ye[k1] + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the first n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 78</span> y[i + n / 2] =</div>
|
||||
<div class="line"><span class="lineno"> 79</span> ye[k1] - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the last n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 80</span> </div>
|
||||
<div class="line"><span class="lineno"> 81</span> k1++;</div>
|
||||
<div class="line"><span class="lineno"> 82</span> k2++;</div>
|
||||
<div class="line"><span class="lineno"> 83</span> }</div>
|
||||
<div class="line"><span class="lineno"> 84</span> </div>
|
||||
<div class="line"><span class="lineno"> 85</span> <span class="keywordflow">if</span> (n != 2) {</div>
|
||||
<div class="line"><span class="lineno"> 86</span> <span class="keyword">delete</span>[] pe;</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keyword">delete</span>[] po;</div>
|
||||
<div class="line"><span class="lineno"> 88</span> }</div>
|
||||
<div class="line"><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><span class="lineno"> 90</span> <span class="keyword">delete</span>[] ye; <span class="comment">/// Deleting dynamic array ye</span></div>
|
||||
<div class="line"><span class="lineno"> 91</span> <span class="keyword">delete</span>[] yo; <span class="comment">/// Deleting dynamic array yo</span></div>
|
||||
<div class="line"><span class="lineno"> 92</span> <span class="keywordflow">return</span> y;</div>
|
||||
<div class="line"><span class="lineno"> 93</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 42</span> {</div>
|
||||
<div class="line"><span class="lineno"> 43</span> <span class="keywordflow">if</span> (n == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 44</span> <span class="keywordflow">return</span> p; <span class="comment">/// Base Case To return</span></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> <span class="keywordtype">double</span> pi = 2 * asin(1.0); <span class="comment">/// Declaring value of pi</span></div>
|
||||
<div class="line"><span class="lineno"> 48</span> </div>
|
||||
<div class="line"><span class="lineno"> 49</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> om = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>(</div>
|
||||
<div class="line"><span class="lineno"> 50</span> cos(2 * pi / n), sin(2 * pi / n)); <span class="comment">/// Calculating value of omega</span></div>
|
||||
<div class="line"><span class="lineno"> 51</span> </div>
|
||||
<div class="line"><span class="lineno"> 52</span> <span class="keyword">auto</span> *pe = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of even power</span></div>
|
||||
<div class="line"><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><span class="lineno"> 54</span> <span class="keyword">auto</span> *po = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of odd power</span></div>
|
||||
<div class="line"><span class="lineno"> 55</span> </div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keywordtype">int</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 57</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < n; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 58</span> <span class="keywordflow">if</span> (j % 2 == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 59</span> pe[k1++] = p[j]; <span class="comment">/// Assigning values of even Coefficients</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><span class="lineno"> 61</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 62</span> po[k2++] = p[j]; <span class="comment">/// Assigning value of odd Coefficients</span></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> </div>
|
||||
<div class="line"><span class="lineno"> 66</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *ye =</div>
|
||||
<div class="line"><span class="lineno"> 67</span> <a class="code hl_function" href="#a158fd271b9a53e8f3f60b08b18857150">FastFourierTransform</a>(pe, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 68</span> </div>
|
||||
<div class="line"><span class="lineno"> 69</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *yo =</div>
|
||||
<div class="line"><span class="lineno"> 70</span> <a class="code hl_function" href="#a158fd271b9a53e8f3f60b08b18857150">FastFourierTransform</a>(po, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><span class="lineno"> 72</span> <span class="keyword">auto</span> *y = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n]; <span class="comment">/// Final value representation list</span></div>
|
||||
<div class="line"><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><span class="lineno"> 74</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 75</span> </div>
|
||||
<div class="line"><span class="lineno"> 76</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n / 2; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 77</span> y[i] =</div>
|
||||
<div class="line"><span class="lineno"> 78</span> ye[k1] + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the first n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 79</span> y[i + n / 2] =</div>
|
||||
<div class="line"><span class="lineno"> 80</span> ye[k1] - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the last n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><span class="lineno"> 82</span> k1++;</div>
|
||||
<div class="line"><span class="lineno"> 83</span> k2++;</div>
|
||||
<div class="line"><span class="lineno"> 84</span> }</div>
|
||||
<div class="line"><span class="lineno"> 85</span> </div>
|
||||
<div class="line"><span class="lineno"> 86</span> <span class="keywordflow">if</span> (n != 2) {</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keyword">delete</span>[] pe;</div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keyword">delete</span>[] po;</div>
|
||||
<div class="line"><span class="lineno"> 89</span> }</div>
|
||||
<div class="line"><span class="lineno"> 90</span> </div>
|
||||
<div class="line"><span class="lineno"> 91</span> <span class="keyword">delete</span>[] ye; <span class="comment">/// Deleting dynamic array ye</span></div>
|
||||
<div class="line"><span class="lineno"> 92</span> <span class="keyword">delete</span>[] yo; <span class="comment">/// Deleting dynamic array yo</span></div>
|
||||
<div class="line"><span class="lineno"> 93</span> <span class="keywordflow">return</span> y;</div>
|
||||
<div class="line"><span class="lineno"> 94</span>}</div>
|
||||
<div class="ttc" id="acomplex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex</a></div></div>
|
||||
<div class="ttc" id="anamespacenumerical__methods_html_a158fd271b9a53e8f3f60b08b18857150"><div class="ttname"><a href="#a158fd271b9a53e8f3f60b08b18857150">numerical_methods::FastFourierTransform</a></div><div class="ttdeci">std::complex< double > * FastFourierTransform(std::complex< double > *p, uint8_t n)</div><div class="ttdoc">FastFourierTransform is a recursive function which returns list of complex numbers.</div><div class="ttdef"><b>Definition</b> fast_fourier_transform.cpp:41</div></div>
|
||||
<div class="ttc" id="anamespacenumerical__methods_html_a158fd271b9a53e8f3f60b08b18857150"><div class="ttname"><a href="#a158fd271b9a53e8f3f60b08b18857150">numerical_methods::FastFourierTransform</a></div><div class="ttdeci">std::complex< double > * FastFourierTransform(std::complex< double > *p, uint8_t n)</div><div class="ttdoc">FastFourierTransform is a recursive function which returns list of complex numbers.</div><div class="ttdef"><b>Definition</b> fast_fourier_transform.cpp:42</div></div>
|
||||
<div class="ttc" id="apow_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a></div><div class="ttdeci">T pow(T... args)</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
@@ -361,64 +361,64 @@ y if n!=1 </dd></dl>
|
||||
<p>Updating the last n/2 elements</p>
|
||||
<p>Deleting dynamic array ye</p>
|
||||
<p>Deleting dynamic array yo</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="keywordflow">if</span> (n == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">return</span> p; <span class="comment">/// Base Case To return</span></div>
|
||||
<div class="line"><span class="lineno"> 37</span> }</div>
|
||||
<div class="line"><span class="lineno"> 38</span> </div>
|
||||
<div class="line"><span class="lineno"> 39</span> <span class="keywordtype">double</span> pi = 2 * asin(1.0); <span class="comment">/// Declaring value of pi</span></div>
|
||||
<div class="line"><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><span class="lineno"> 41</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> om = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>(</div>
|
||||
<div class="line"><span class="lineno"> 42</span> cos(2 * pi / n), sin(2 * pi / n)); <span class="comment">/// Calculating value of omega</span></div>
|
||||
<div class="line"><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><span class="lineno"> 44</span> om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/real.html">real</a>(om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/real.html">real</a>() / n); <span class="comment">/// One change in comparison with DFT</span></div>
|
||||
<div class="line"><span class="lineno"> 45</span> om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/imag.html">imag</a>(om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/imag.html">imag</a>() / n); <span class="comment">/// One change in comparison with DFT</span></div>
|
||||
<div class="line"><span class="lineno"> 46</span> </div>
|
||||
<div class="line"><span class="lineno"> 47</span> <span class="keyword">auto</span> *pe = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of even power</span></div>
|
||||
<div class="line"><span class="lineno"> 48</span> </div>
|
||||
<div class="line"><span class="lineno"> 49</span> <span class="keyword">auto</span> *po = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of odd power</span></div>
|
||||
<div class="line"><span class="lineno"> 50</span> </div>
|
||||
<div class="line"><span class="lineno"> 51</span> <span class="keywordtype">int</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 52</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < n; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 53</span> <span class="keywordflow">if</span> (j % 2 == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 54</span> pe[k1++] = p[j]; <span class="comment">/// Assigning values of even Coefficients</span></div>
|
||||
<div class="line"><span class="lineno"> 55</span> </div>
|
||||
<div class="line"><span class="lineno"> 56</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 57</span> po[k2++] = p[j]; <span class="comment">/// Assigning value of odd Coefficients</span></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> </div>
|
||||
<div class="line"><span class="lineno"> 61</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *ye =</div>
|
||||
<div class="line"><span class="lineno"> 62</span> <a class="code hl_function" href="#aee56dc85997b8cd42bad71a5d6bd2d93">InverseFastFourierTransform</a>(pe, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 63</span> </div>
|
||||
<div class="line"><span class="lineno"> 64</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *yo =</div>
|
||||
<div class="line"><span class="lineno"> 65</span> <a class="code hl_function" href="#aee56dc85997b8cd42bad71a5d6bd2d93">InverseFastFourierTransform</a>(po, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><span class="lineno"> 67</span> <span class="keyword">auto</span> *y = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n]; <span class="comment">/// Final value representation list</span></div>
|
||||
<div class="line"><span class="lineno"> 68</span> </div>
|
||||
<div class="line"><span class="lineno"> 69</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 70</span> </div>
|
||||
<div class="line"><span class="lineno"> 71</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n / 2; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 72</span> y[i] =</div>
|
||||
<div class="line"><span class="lineno"> 73</span> ye[k1] + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the first n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 74</span> y[i + n / 2] =</div>
|
||||
<div class="line"><span class="lineno"> 75</span> ye[k1] - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the last n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><span class="lineno"> 77</span> k1++;</div>
|
||||
<div class="line"><span class="lineno"> 78</span> k2++;</div>
|
||||
<div class="line"><span class="lineno"> 79</span> }</div>
|
||||
<div class="line"><span class="lineno"> 80</span> </div>
|
||||
<div class="line"><span class="lineno"> 81</span> <span class="keywordflow">if</span> (n != 2) {</div>
|
||||
<div class="line"><span class="lineno"> 82</span> <span class="keyword">delete</span>[] pe;</div>
|
||||
<div class="line"><span class="lineno"> 83</span> <span class="keyword">delete</span>[] po;</div>
|
||||
<div class="line"><span class="lineno"> 84</span> }</div>
|
||||
<div class="line"><span class="lineno"> 85</span> </div>
|
||||
<div class="line"><span class="lineno"> 86</span> <span class="keyword">delete</span>[] ye; <span class="comment">/// Deleting dynamic array ye</span></div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keyword">delete</span>[] yo; <span class="comment">/// Deleting dynamic array yo</span></div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keywordflow">return</span> y;</div>
|
||||
<div class="line"><span class="lineno"> 89</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 35</span> {</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">if</span> (n == 1) {</div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">return</span> p; <span class="comment">/// Base Case To return</span></div>
|
||||
<div class="line"><span class="lineno"> 38</span> }</div>
|
||||
<div class="line"><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><span class="lineno"> 40</span> <span class="keywordtype">double</span> pi = 2 * asin(1.0); <span class="comment">/// Declaring value of pi</span></div>
|
||||
<div class="line"><span class="lineno"> 41</span> </div>
|
||||
<div class="line"><span class="lineno"> 42</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> om = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>(</div>
|
||||
<div class="line"><span class="lineno"> 43</span> cos(2 * pi / n), sin(2 * pi / n)); <span class="comment">/// Calculating value of omega</span></div>
|
||||
<div class="line"><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><span class="lineno"> 45</span> om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/real.html">real</a>(om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/real.html">real</a>() / n); <span class="comment">/// One change in comparison with DFT</span></div>
|
||||
<div class="line"><span class="lineno"> 46</span> om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/imag.html">imag</a>(om.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex/imag.html">imag</a>() / n); <span class="comment">/// One change in comparison with DFT</span></div>
|
||||
<div class="line"><span class="lineno"> 47</span> </div>
|
||||
<div class="line"><span class="lineno"> 48</span> <span class="keyword">auto</span> *pe = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of even power</span></div>
|
||||
<div class="line"><span class="lineno"> 49</span> </div>
|
||||
<div class="line"><span class="lineno"> 50</span> <span class="keyword">auto</span> *po = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n / 2]; <span class="comment">/// Coefficients of odd power</span></div>
|
||||
<div class="line"><span class="lineno"> 51</span> </div>
|
||||
<div class="line"><span class="lineno"> 52</span> <span class="keywordtype">int</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 53</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < n; j++) {</div>
|
||||
<div class="line"><span class="lineno"> 54</span> <span class="keywordflow">if</span> (j % 2 == 0) {</div>
|
||||
<div class="line"><span class="lineno"> 55</span> pe[k1++] = p[j]; <span class="comment">/// Assigning values of even Coefficients</span></div>
|
||||
<div class="line"><span class="lineno"> 56</span> </div>
|
||||
<div class="line"><span class="lineno"> 57</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 58</span> po[k2++] = p[j]; <span class="comment">/// Assigning value of odd Coefficients</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> }</div>
|
||||
<div class="line"><span class="lineno"> 60</span> }</div>
|
||||
<div class="line"><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><span class="lineno"> 62</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *ye =</div>
|
||||
<div class="line"><span class="lineno"> 63</span> <a class="code hl_function" href="#aee56dc85997b8cd42bad71a5d6bd2d93">InverseFastFourierTransform</a>(pe, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><span class="lineno"> 65</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a> *yo =</div>
|
||||
<div class="line"><span class="lineno"> 66</span> <a class="code hl_function" href="#aee56dc85997b8cd42bad71a5d6bd2d93">InverseFastFourierTransform</a>(po, n / 2); <span class="comment">/// Recursive Call</span></div>
|
||||
<div class="line"><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><span class="lineno"> 68</span> <span class="keyword">auto</span> *y = <span class="keyword">new</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/complex.html">std::complex<double></a>[n]; <span class="comment">/// Final value representation list</span></div>
|
||||
<div class="line"><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><span class="lineno"> 70</span> k1 = 0, k2 = 0;</div>
|
||||
<div class="line"><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><span class="lineno"> 72</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n / 2; i++) {</div>
|
||||
<div class="line"><span class="lineno"> 73</span> y[i] =</div>
|
||||
<div class="line"><span class="lineno"> 74</span> ye[k1] + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the first n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 75</span> y[i + n / 2] =</div>
|
||||
<div class="line"><span class="lineno"> 76</span> ye[k1] - <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">pow</a>(om, i) * yo[k2]; <span class="comment">/// Updating the last n/2 elements</span></div>
|
||||
<div class="line"><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><span class="lineno"> 78</span> k1++;</div>
|
||||
<div class="line"><span class="lineno"> 79</span> k2++;</div>
|
||||
<div class="line"><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><span class="lineno"> 82</span> <span class="keywordflow">if</span> (n != 2) {</div>
|
||||
<div class="line"><span class="lineno"> 83</span> <span class="keyword">delete</span>[] pe;</div>
|
||||
<div class="line"><span class="lineno"> 84</span> <span class="keyword">delete</span>[] po;</div>
|
||||
<div class="line"><span class="lineno"> 85</span> }</div>
|
||||
<div class="line"><span class="lineno"> 86</span> </div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keyword">delete</span>[] ye; <span class="comment">/// Deleting dynamic array ye</span></div>
|
||||
<div class="line"><span class="lineno"> 88</span> <span class="keyword">delete</span>[] yo; <span class="comment">/// Deleting dynamic array yo</span></div>
|
||||
<div class="line"><span class="lineno"> 89</span> <span class="keywordflow">return</span> y;</div>
|
||||
<div class="line"><span class="lineno"> 90</span>}</div>
|
||||
<div class="ttc" id="aimag_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/complex/imag.html">std::complex::imag</a></div><div class="ttdeci">T imag(T... args)</div></div>
|
||||
<div class="ttc" id="anamespacenumerical__methods_html_aee56dc85997b8cd42bad71a5d6bd2d93"><div class="ttname"><a href="#aee56dc85997b8cd42bad71a5d6bd2d93">numerical_methods::InverseFastFourierTransform</a></div><div class="ttdeci">std::complex< double > * InverseFastFourierTransform(std::complex< double > *p, uint8_t n)</div><div class="ttdoc">InverseFastFourierTransform is a recursive function which returns list of complex numbers.</div><div class="ttdef"><b>Definition</b> inverse_fast_fourier_transform.cpp:33</div></div>
|
||||
<div class="ttc" id="anamespacenumerical__methods_html_aee56dc85997b8cd42bad71a5d6bd2d93"><div class="ttname"><a href="#aee56dc85997b8cd42bad71a5d6bd2d93">numerical_methods::InverseFastFourierTransform</a></div><div class="ttdeci">std::complex< double > * InverseFastFourierTransform(std::complex< double > *p, uint8_t n)</div><div class="ttdoc">InverseFastFourierTransform is a recursive function which returns list of complex numbers.</div><div class="ttdef"><b>Definition</b> inverse_fast_fourier_transform.cpp:34</div></div>
|
||||
<div class="ttc" id="areal_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/complex/real.html">std::complex::real</a></div><div class="ttdeci">T real(T... args)</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
|
||||
@@ -115,18 +115,19 @@ $(function(){initNavTree('d1/de9/integral__approximation_8cpp.html','../../'); i
|
||||
<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 <functional></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for integral_approximation.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d5/dc3/integral__approximation_8cpp__incl.svg" width="355" 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="../../d5/dc3/integral__approximation_8cpp__incl.svg" width="439" 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>
|
||||
@@ -166,10 +167,10 @@ 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"> 122</span> {</div>
|
||||
<div class="line"><span class="lineno"> 123</span> <a class="code hl_function" href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 124</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 125</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 133</span> {</div>
|
||||
<div class="line"><span class="lineno"> 134</span> <a class="code hl_function" href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 135</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 136</span>}</div>
|
||||
<div class="ttc" id="acaesar__cipher_8cpp_html_ae1a3968e7947464bee7714f6d43b7002"><div class="ttname"><a href="../../d6/d2c/caesar__cipher_8cpp.html#ae1a3968e7947464bee7714f6d43b7002">test</a></div><div class="ttdeci">void test()</div><div class="ttdef"><b>Definition</b> caesar_cipher.cpp:100</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
@@ -201,59 +202,59 @@ Here is the call graph for this function:</div>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 64</span> {</div>
|
||||
<div class="line"><span class="lineno"> 65</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 66</span> 3.24, 7.56, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x) + x; });</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">"Test Case 1"</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"> 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">"function: log(x) + e^x + x"</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"> 69</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">"range: [3.24, 7.56]"</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"> 70</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">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a> << <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"> 71</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a>, 1924.80384023549, .001);</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">"Test 1 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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"====================="</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="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(0.023, 3.69, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) {</div>
|
||||
<div class="line"><span class="lineno"> 76</span> <span class="keywordflow">return</span> x * x + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">cos</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x) * <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x);</div>
|
||||
<div class="line"><span class="lineno"> 77</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> << <span class="stringliteral">"Test Case 2"</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"> 79</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">"function: x^2 + cos(x) + e^x + log^2(x)"</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"> 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">"range: [.023, 3.69]"</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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a> << <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> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a>, 58.71291345202729, .001);</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">"Test 2 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="fragment"><div class="line"><span class="lineno"> 75</span> {</div>
|
||||
<div class="line"><span class="lineno"> 76</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 77</span> 3.24, 7.56, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x) + x; });</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> << <span class="stringliteral">"Test Case 1"</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"> 79</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">"function: log(x) + e^x + x"</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"> 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">"range: [3.24, 7.56]"</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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a> << <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> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a34b8683a2b429de5cce57e6d733ec817">test_1</a>, 1924.80384023549, .001);</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">"Test 1 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"> 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">"====================="</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"> 85</span> </div>
|
||||
<div class="line"><span class="lineno"> 86</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 87</span> 10.78, 24.899, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> x * x * x - x * x + 378; });</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">"Test Case 3"</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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"function: x^3 - x^2 + 378"</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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"range: [10.78, 24.899]"</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"> 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">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a> << <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"> 92</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a>, 93320.65915078377, .001);</div>
|
||||
<div class="line"><span class="lineno"> 93</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">"Test 3 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"> 94</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">"====================="</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"> 95</span> </div>
|
||||
<div class="line"><span class="lineno"> 96</span> <span class="keywordtype">double</span> test_4 = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 97</span> .101, .505,</div>
|
||||
<div class="line"><span class="lineno"> 98</span> [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">cos</a>(x) * <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/tan.html">tan</a>(x) * x * x + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x); },</div>
|
||||
<div class="line"><span class="lineno"> 99</span> .00001);</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">"Test Case 4"</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"> 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">"function: cos(x)*tan(x)*x^2 + e^x"</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"> 102</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">"range: [.101, .505]"</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"> 103</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">"value: "</span> << test_4 << <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"> 104</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(test_4, 0.566485986311631, .001);</div>
|
||||
<div class="line"><span class="lineno"> 105</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">"Test 4 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"> 106</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">"====================="</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"> 107</span> </div>
|
||||
<div class="line"><span class="lineno"> 108</span> <span class="keywordtype">double</span> test_5 = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 109</span> -1, 1, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(-1 / (x * x)); });</div>
|
||||
<div class="line"><span class="lineno"> 110</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">"Test Case 5"</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"> 111</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">"function: e^(-1/x^2)"</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"> 112</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">"range: [-1, 1]"</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"> 113</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">"value: "</span> << test_5 << <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"> 114</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(test_5, 0.1781477117815607, .001);</div>
|
||||
<div class="line"><span class="lineno"> 115</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">"Test 5 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"> 116</span>}</div>
|
||||
<div class="line"><span class="lineno"> 86</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(0.023, 3.69, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) {</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="keywordflow">return</span> x * x + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">cos</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x) + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x) * <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/log.html">log</a>(x);</div>
|
||||
<div class="line"><span class="lineno"> 88</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">"Test Case 2"</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> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"function: x^2 + cos(x) + e^x + log^2(x)"</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"> 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">"range: [.023, 3.69]"</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"> 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">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a> << <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"> 93</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a>, 58.71291345202729, .001);</div>
|
||||
<div class="line"><span class="lineno"> 94</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">"Test 2 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"> 95</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">"====================="</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"> 96</span> </div>
|
||||
<div class="line"><span class="lineno"> 97</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a> = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 98</span> 10.78, 24.899, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> x * x * x - x * x + 378; });</div>
|
||||
<div class="line"><span class="lineno"> 99</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">"Test Case 3"</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"> 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">"function: x^3 - x^2 + 378"</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"> 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">"range: [10.78, 24.899]"</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"> 102</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">"value: "</span> << <a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a> << <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"> 103</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(<a class="code hl_function" href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a>, 93320.65915078377, .001);</div>
|
||||
<div class="line"><span class="lineno"> 104</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">"Test 3 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"> 105</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">"====================="</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"> 106</span> </div>
|
||||
<div class="line"><span class="lineno"> 107</span> <span class="keywordtype">double</span> test_4 = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 108</span> .101, .505,</div>
|
||||
<div class="line"><span class="lineno"> 109</span> [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">cos</a>(x) * <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/tan.html">tan</a>(x) * x * x + <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(x); },</div>
|
||||
<div class="line"><span class="lineno"> 110</span> .00001);</div>
|
||||
<div class="line"><span class="lineno"> 111</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">"Test Case 4"</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"> 112</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">"function: cos(x)*tan(x)*x^2 + e^x"</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"> 113</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">"range: [.101, .505]"</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"> 114</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">"value: "</span> << test_4 << <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"> 115</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(test_4, 0.566485986311631, .001);</div>
|
||||
<div class="line"><span class="lineno"> 116</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">"Test 4 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"> 117</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">"====================="</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"> 118</span> </div>
|
||||
<div class="line"><span class="lineno"> 119</span> <span class="keywordtype">double</span> test_5 = <a class="code hl_function" href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a>(</div>
|
||||
<div class="line"><span class="lineno"> 120</span> -1, 1, [](<span class="keyword">const</span> <span class="keywordtype">double</span> x) { <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/numeric/math/exp.html">exp</a>(-1 / (x * x)); });</div>
|
||||
<div class="line"><span class="lineno"> 121</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">"Test Case 5"</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"> 122</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">"function: e^(-1/x^2)"</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"> 123</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">"range: [-1, 1]"</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"> 124</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">"value: "</span> << test_5 << <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"> 125</span> <a class="code hl_function" href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a>(test_5, 0.1781477117815607, .001);</div>
|
||||
<div class="line"><span class="lineno"> 126</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">"Test 5 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"> 127</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="acos_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/cos.html">std::cos</a></div><div class="ttdeci">T cos(T... args)</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>
|
||||
@@ -262,8 +263,8 @@ Here is the call graph for this function:</div>
|
||||
<div class="ttc" id="aheavy__light__decomposition_8cpp_html_a458410412185a5f09199deaff7157a8d"><div class="ttname"><a href="../../d2/de9/heavy__light__decomposition_8cpp.html#a458410412185a5f09199deaff7157a8d">test_2</a></div><div class="ttdeci">static void test_2()</div><div class="ttdef"><b>Definition</b> heavy_light_decomposition.cpp:549</div></div>
|
||||
<div class="ttc" id="aheavy__light__decomposition_8cpp_html_af31ec5409537703d9c8a47350386b32a"><div class="ttname"><a href="../../d2/de9/heavy__light__decomposition_8cpp.html#af31ec5409537703d9c8a47350386b32a">test_3</a></div><div class="ttdeci">static void test_3()</div><div class="ttdef"><b>Definition</b> heavy_light_decomposition.cpp:592</div></div>
|
||||
<div class="ttc" id="alog_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/log.html">std::log</a></div><div class="ttdeci">T log(T... args)</div></div>
|
||||
<div class="ttc" id="anamespacemath_html_a50936ee98f4d40f17823befc65a32aec"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a></div><div class="ttdeci">void test_eval(double approx, double expected, double threshold)</div><div class="ttdoc">Wrapper to evaluate if the approximated value is within .XX% threshold of the exact value.</div><div class="ttdef"><b>Definition</b> integral_approximation.cpp:51</div></div>
|
||||
<div class="ttc" id="anamespacemath_html_aec65db4e5c7317323227f026fe50ef11"><div class="ttname"><a href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a></div><div class="ttdeci">double integral_approx(double lb, double ub, const std::function< double(double)> &func, double delta=.0001)</div><div class="ttdoc">Computes integral approximation.</div><div class="ttdef"><b>Definition</b> integral_approximation.cpp:31</div></div>
|
||||
<div class="ttc" id="anamespacemath_html_a50936ee98f4d40f17823befc65a32aec"><div class="ttname"><a href="../../dd/d47/namespacemath.html#a50936ee98f4d40f17823befc65a32aec">math::test_eval</a></div><div class="ttdeci">void test_eval(double approx, double expected, double threshold)</div><div class="ttdoc">Wrapper to evaluate if the approximated value is within .XX% threshold of the exact value.</div><div class="ttdef"><b>Definition</b> integral_approximation.cpp:62</div></div>
|
||||
<div class="ttc" id="anamespacemath_html_aec65db4e5c7317323227f026fe50ef11"><div class="ttname"><a href="../../dd/d47/namespacemath.html#aec65db4e5c7317323227f026fe50ef11">math::integral_approx</a></div><div class="ttdeci">double integral_approx(double lb, double ub, const std::function< double(double)> &func, double delta=.0001)</div><div class="ttdoc">Computes integral approximation.</div><div class="ttdef"><b>Definition</b> integral_approximation.cpp:42</div></div>
|
||||
<div class="ttc" id="atan_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/tan.html">std::tan</a></div><div class="ttdeci">T tan(T... args)</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
<map id="graph/bidirectional_dijkstra.cpp" name="graph/bidirectional_dijkstra.cpp">
|
||||
<area shape="rect" id="Node000001" title="[Bidirectional Dijkstra Shortest Path Algorithm] (https://www.coursera.org/learn/algorithms-on-graphs..." alt="" coords="190,5,317,46"/>
|
||||
<area shape="rect" id="Node000001" title="[Bidirectional Dijkstra Shortest Path Algorithm] (https://www.coursera.org/learn/algorithms-on-graphs..." alt="" coords="236,5,362,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,70,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="200,49,85,91,83,86,199,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,165,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="224,49,163,88,160,83,221,44"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="189,94,241,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="246,48,230,81,225,79,242,45"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="265,94,322,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="266,45,283,79,278,81,261,48"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="346,94,398,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="284,44,343,83,340,87,281,49"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="422,94,480,120"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="304,44,408,86,407,91,302,49"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="236,49,86,94,84,89,234,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,94,154,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="256,49,166,90,164,85,254,44"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="178,94,249,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="280,48,240,85,236,81,276,44"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="273,94,325,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="302,46,302,78,296,78,296,46"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="349,94,406,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="320,45,357,81,353,85,316,48"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="430,94,482,120"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="339,44,420,84,417,89,337,49"/>
|
||||
<area shape="rect" id="Node000008" title=" " alt="" coords="506,94,564,120"/>
|
||||
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="359,44,492,89,491,94,357,49"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
49b4542a7433fd42322940a1995b914f
|
||||
09f3002d75836610aacd6e3b362db261
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: graph/bidirectional_dijkstra.cpp Pages: 1 -->
|
||||
<svg width="364pt" height="94pt"
|
||||
viewBox="0.00 0.00 363.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="427pt" height="94pt"
|
||||
viewBox="0.00 0.00 426.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="[Bidirectional Dijkstra Shortest Path Algorithm] (https://www.coursera.org/learn/algorithms-on-graphs...">
|
||||
<polygon fill="#999999" stroke="#666666" points="233.5,-85.75 138.75,-85.75 138.75,-55.25 233.5,-55.25 233.5,-85.75"/>
|
||||
<text text-anchor="start" x="146.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph/bidirectional</text>
|
||||
<text text-anchor="middle" x="186.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_dijkstra.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="267.5,-85.75 172.75,-85.75 172.75,-55.25 267.5,-55.25 267.5,-85.75"/>
|
||||
<text text-anchor="start" x="180.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph/bidirectional</text>
|
||||
<text text-anchor="middle" x="220.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_dijkstra.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="M145.66,-54.8C119.05,-45.12 84.57,-32.59 59.14,-23.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.51,-20.12 49.92,-20 58.12,-26.7 60.51,-20.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M172.43,-55.17C137.61,-44.71 91.17,-30.76 59.6,-21.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.72,-17.96 50.14,-18.44 58.71,-24.67 60.72,-17.96"/>
|
||||
</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->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M163.14,-54.95C149.11,-46.07 131.22,-34.74 117.03,-25.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="119.06,-22.9 108.74,-20.51 115.32,-28.82 119.06,-22.9"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M187.41,-54.8C166.59,-45.44 139.83,-33.41 119.49,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="121.15,-21.18 110.6,-20.27 118.28,-27.57 121.15,-21.18"/>
|
||||
</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="176.75,-19.25 137.5,-19.25 137.5,0 176.75,0 176.75,-19.25"/>
|
||||
<text text-anchor="middle" x="157.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">limits</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,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="M178.96,-54.95C175.22,-47.36 170.6,-37.99 166.58,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.82,-28.48 162.26,-21.06 163.54,-31.58 169.82,-28.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M204.3,-54.95C195.22,-46.59 183.76,-36.05 174.31,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="176.83,-24.92 167.11,-20.73 172.1,-30.07 176.83,-24.92"/>
|
||||
</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="237.25,-19.25 195,-19.25 195,0 237.25,0 237.25,-19.25"/>
|
||||
<text text-anchor="middle" x="216.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">queue</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="239.75,-19.25 200.5,-19.25 200.5,0 239.75,0 239.75,-19.25"/>
|
||||
<text text-anchor="middle" x="220.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">limits</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="M193.54,-54.95C197.41,-47.36 202.18,-37.99 206.35,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="209.39,-31.55 210.81,-21.05 203.15,-28.37 209.39,-31.55"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M220.12,-54.95C220.12,-47.71 220.12,-38.84 220.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="223.63,-31.21 220.13,-21.21 216.63,-31.21 223.63,-31.21"/>
|
||||
</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="294.75,-19.25 255.5,-19.25 255.5,0 294.75,0 294.75,-19.25"/>
|
||||
<text text-anchor="middle" x="275.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="300.25,-19.25 258,-19.25 258,0 300.25,0 300.25,-19.25"/>
|
||||
<text text-anchor="middle" x="279.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">queue</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -114,8 +114,8 @@
|
||||
<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="M208.13,-54.95C221.42,-46.15 238.34,-34.96 251.85,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="253.73,-28.97 260.14,-20.54 249.87,-23.13 253.73,-28.97"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M234.71,-54.95C243,-46.67 253.43,-36.27 262.09,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.35,-30.31 268.96,-20.77 259.41,-25.36 264.35,-30.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -123,8 +123,8 @@
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="355.62,-19.25 312.62,-19.25 312.62,0 355.62,0 355.62,-19.25"/>
|
||||
<text text-anchor="middle" x="334.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="357.75,-19.25 318.5,-19.25 318.5,0 357.75,0 357.75,-19.25"/>
|
||||
<text text-anchor="middle" x="338.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -132,8 +132,26 @@
|
||||
<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="M223.09,-54.8C247.22,-45.19 278.44,-32.78 301.62,-23.55"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="302.89,-26.82 310.89,-19.87 300.3,-20.31 302.89,-26.82"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M249.6,-54.8C268,-45.61 291.57,-33.86 309.76,-24.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.29,-27.93 318.67,-20.33 308.16,-21.66 311.29,-27.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="418.62,-19.25 375.62,-19.25 375.62,0 418.62,0 418.62,-19.25"/>
|
||||
<text text-anchor="middle" x="397.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge7_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M264.33,-54.8C295.47,-44.44 336.47,-30.8 364.62,-21.44"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="365.65,-24.78 374.04,-18.3 363.44,-18.14 365.65,-24.78"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.9 KiB |
@@ -4,17 +4,17 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: graph/bidirectional_dijkstra.cpp Pages: 1 -->
|
||||
<svg width="364pt" height="94pt"
|
||||
viewBox="0.00 0.00 363.62 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="427pt" height="94pt"
|
||||
viewBox="0.00 0.00 426.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>graph/bidirectional_dijkstra.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="[Bidirectional Dijkstra Shortest Path Algorithm] (https://www.coursera.org/learn/algorithms-on-graphs...">
|
||||
<polygon fill="#999999" stroke="#666666" points="233.5,-85.75 138.75,-85.75 138.75,-55.25 233.5,-55.25 233.5,-85.75"/>
|
||||
<text text-anchor="start" x="146.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph/bidirectional</text>
|
||||
<text text-anchor="middle" x="186.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_dijkstra.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="267.5,-85.75 172.75,-85.75 172.75,-55.25 267.5,-55.25 267.5,-85.75"/>
|
||||
<text text-anchor="start" x="180.75" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">graph/bidirectional</text>
|
||||
<text text-anchor="middle" x="220.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_dijkstra.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="M145.66,-54.8C119.05,-45.12 84.57,-32.59 59.14,-23.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.51,-20.12 49.92,-20 58.12,-26.7 60.51,-20.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M172.43,-55.17C137.61,-44.71 91.17,-30.76 59.6,-21.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="60.72,-17.96 50.14,-18.44 58.71,-24.67 60.72,-17.96"/>
|
||||
</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->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M163.14,-54.95C149.11,-46.07 131.22,-34.74 117.03,-25.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="119.06,-22.9 108.74,-20.51 115.32,-28.82 119.06,-22.9"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M187.41,-54.8C166.59,-45.44 139.83,-33.41 119.49,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="121.15,-21.18 110.6,-20.27 118.28,-27.57 121.15,-21.18"/>
|
||||
</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="176.75,-19.25 137.5,-19.25 137.5,0 176.75,0 176.75,-19.25"/>
|
||||
<text text-anchor="middle" x="157.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">limits</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,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="M178.96,-54.95C175.22,-47.36 170.6,-37.99 166.58,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="169.82,-28.48 162.26,-21.06 163.54,-31.58 169.82,-28.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M204.3,-54.95C195.22,-46.59 183.76,-36.05 174.31,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="176.83,-24.92 167.11,-20.73 172.1,-30.07 176.83,-24.92"/>
|
||||
</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="237.25,-19.25 195,-19.25 195,0 237.25,0 237.25,-19.25"/>
|
||||
<text text-anchor="middle" x="216.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">queue</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="239.75,-19.25 200.5,-19.25 200.5,0 239.75,0 239.75,-19.25"/>
|
||||
<text text-anchor="middle" x="220.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">limits</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="M193.54,-54.95C197.41,-47.36 202.18,-37.99 206.35,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="209.39,-31.55 210.81,-21.05 203.15,-28.37 209.39,-31.55"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M220.12,-54.95C220.12,-47.71 220.12,-38.84 220.12,-30.94"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="223.63,-31.21 220.13,-21.21 216.63,-31.21 223.63,-31.21"/>
|
||||
</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="294.75,-19.25 255.5,-19.25 255.5,0 294.75,0 294.75,-19.25"/>
|
||||
<text text-anchor="middle" x="275.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="300.25,-19.25 258,-19.25 258,0 300.25,0 300.25,-19.25"/>
|
||||
<text text-anchor="middle" x="279.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">queue</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -103,8 +103,8 @@
|
||||
<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="M208.13,-54.95C221.42,-46.15 238.34,-34.96 251.85,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="253.73,-28.97 260.14,-20.54 249.87,-23.13 253.73,-28.97"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M234.71,-54.95C243,-46.67 253.43,-36.27 262.09,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.35,-30.31 268.96,-20.77 259.41,-25.36 264.35,-30.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -112,8 +112,8 @@
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="355.62,-19.25 312.62,-19.25 312.62,0 355.62,0 355.62,-19.25"/>
|
||||
<text text-anchor="middle" x="334.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="357.75,-19.25 318.5,-19.25 318.5,0 357.75,0 357.75,-19.25"/>
|
||||
<text text-anchor="middle" x="338.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -121,8 +121,26 @@
|
||||
<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="M223.09,-54.8C247.22,-45.19 278.44,-32.78 301.62,-23.55"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="302.89,-26.82 310.89,-19.87 300.3,-20.31 302.89,-26.82"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M249.6,-54.8C268,-45.61 291.57,-33.86 309.76,-24.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.29,-27.93 318.67,-20.33 308.16,-21.66 311.29,-27.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="418.62,-19.25 375.62,-19.25 375.62,0 418.62,0 418.62,-19.25"/>
|
||||
<text text-anchor="middle" x="397.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge7_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M264.33,-54.8C295.47,-44.44 336.47,-30.8 364.62,-21.44"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="365.65,-24.78 374.04,-18.3 363.44,-18.14 365.65,-24.78"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 6.2 KiB |
@@ -112,7 +112,7 @@ $(function(){initNavTree('d1/df6/class_easter_year_month_day.html','../../'); in
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>for IO operations
|
||||
<p>for assert
|
||||
<a href="#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
@@ -136,8 +136,8 @@ uint64_t </td><td class="memItemRight" valign="bottom"><b>day</b></td></tr>
|
||||
<tr class="separator:ade0b934e5b1af24e19ff959673b2ec51"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>for IO operations </p>
|
||||
<p>for assert </p>
|
||||
<div class="textblock"><p>for assert </p>
|
||||
<p>for IO operations </p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="aa8db6676ddde31b0027a08d582615194" name="aa8db6676ddde31b0027a08d582615194"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa8db6676ddde31b0027a08d582615194">◆ </a></span>EasterYearMonthDay()</h2>
|
||||
@@ -170,14 +170,14 @@ uint64_t </td><td class="memItemRight" valign="bottom"><b>day</b></td></tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 32</span> {</div>
|
||||
<div class="line"><span class="lineno"> 33</span> <a class="code hl_variable" href="#a28d3cd09391390250932b7fb58fe61dc">year</a> = newYear; <span class="comment">// Assigns year to class</span></div>
|
||||
<div class="line"><span class="lineno"> 34</span> <a class="code hl_variable" href="#a01a068eae0b6fa8f86f5f60c2840bbde">month</a> = newMonth;</div>
|
||||
<div class="line"><span class="lineno"> 35</span> <a class="code hl_variable" href="#ade0b934e5b1af24e19ff959673b2ec51">day</a> = newDay;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> }</div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_a01a068eae0b6fa8f86f5f60c2840bbde"><div class="ttname"><a href="#a01a068eae0b6fa8f86f5f60c2840bbde">EasterYearMonthDay::month</a></div><div class="ttdeci">uint64_t month</div><div class="ttdoc">month Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:29</div></div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_a28d3cd09391390250932b7fb58fe61dc"><div class="ttname"><a href="#a28d3cd09391390250932b7fb58fe61dc">EasterYearMonthDay::year</a></div><div class="ttdeci">uint64_t year</div><div class="ttdoc">year Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:28</div></div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_ade0b934e5b1af24e19ff959673b2ec51"><div class="ttname"><a href="#ade0b934e5b1af24e19ff959673b2ec51">EasterYearMonthDay::day</a></div><div class="ttdeci">uint64_t day</div><div class="ttdoc">day Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:30</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><span class="lineno"> 34</span> <a class="code hl_variable" href="#a28d3cd09391390250932b7fb58fe61dc">year</a> = newYear; <span class="comment">// Assigns year to class</span></div>
|
||||
<div class="line"><span class="lineno"> 35</span> <a class="code hl_variable" href="#a01a068eae0b6fa8f86f5f60c2840bbde">month</a> = newMonth;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <a class="code hl_variable" href="#ade0b934e5b1af24e19ff959673b2ec51">day</a> = newDay;</div>
|
||||
<div class="line"><span class="lineno"> 37</span> }</div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_a01a068eae0b6fa8f86f5f60c2840bbde"><div class="ttname"><a href="#a01a068eae0b6fa8f86f5f60c2840bbde">EasterYearMonthDay::month</a></div><div class="ttdeci">uint64_t month</div><div class="ttdoc">month Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:30</div></div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_a28d3cd09391390250932b7fb58fe61dc"><div class="ttname"><a href="#a28d3cd09391390250932b7fb58fe61dc">EasterYearMonthDay::year</a></div><div class="ttdeci">uint64_t year</div><div class="ttdoc">year Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:29</div></div>
|
||||
<div class="ttc" id="aclass_easter_year_month_day_html_ade0b934e5b1af24e19ff959673b2ec51"><div class="ttname"><a href="#ade0b934e5b1af24e19ff959673b2ec51">EasterYearMonthDay::day</a></div><div class="ttdeci">uint64_t day</div><div class="ttdoc">day Easter is on</div><div class="ttdef"><b>Definition</b> easter.cpp:31</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -180,7 +180,7 @@ template<typename T > </div>
|
||||
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>;</div>
|
||||
<div class="line"><span class="lineno"> 63</span>}</div>
|
||||
<div class="ttc" id="afast__power_8cpp_html_a0d4e3f0099a6975b74a314a35bd0f94d"><div class="ttname"><a href="#a0d4e3f0099a6975b74a314a35bd0f94d">fast_power_linear</a></div><div class="ttdeci">double fast_power_linear(T a, T b)</div><div class="ttdef"><b>Definition</b> fast_power.cpp:50</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:76</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><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
|
||||
@@ -6,16 +6,18 @@
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="132,46,132,78,127,78,127,46"/>
|
||||
<area shape="rect" id="Node000004" href="$da/da3/uint256__t_8hpp.html" title=" " alt="" coords="189,94,288,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="158,44,211,82,208,87,155,49"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="142,241,195,267"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="235,121,183,228,178,226,231,119"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="219,241,272,267"/>
|
||||
<area shape="poly" id="edge5_Node000004_Node000006" title=" " alt="" coords="242,120,247,226,242,226,237,120"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="135,241,188,267"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="235,121,177,229,173,226,230,119"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="213,241,265,267"/>
|
||||
<area shape="poly" id="edge5_Node000004_Node000006" title=" " alt="" coords="242,120,242,226,236,226,236,120"/>
|
||||
<area shape="rect" id="Node000007" href="$da/d41/uint128__t_8hpp.html" title=" " alt="" coords="276,168,375,193"/>
|
||||
<area shape="poly" id="edge6_Node000004_Node000007" title=" " alt="" coords="255,118,301,156,298,160,252,122"/>
|
||||
<area shape="poly" id="edge9_Node000007_Node000005" title=" " alt="" coords="300,196,210,237,208,232,298,191"/>
|
||||
<area shape="poly" id="edge10_Node000007_Node000006" title=" " alt="" coords="314,196,272,233,268,229,310,192"/>
|
||||
<area shape="rect" id="Node000008" title=" " alt="" coords="296,241,371,267"/>
|
||||
<area shape="poly" id="edge7_Node000007_Node000008" title=" " alt="" coords="329,193,333,226,328,226,324,194"/>
|
||||
<area shape="rect" id="Node000009" title=" " alt="" coords="395,241,464,267"/>
|
||||
<area shape="poly" id="edge8_Node000007_Node000009" title=" " alt="" coords="345,192,401,230,398,235,342,196"/>
|
||||
<area shape="poly" id="edge10_Node000007_Node000005" title=" " alt="" coords="299,196,203,238,201,233,297,191"/>
|
||||
<area shape="poly" id="edge11_Node000007_Node000006" title=" " alt="" coords="312,196,267,233,263,229,309,192"/>
|
||||
<area shape="rect" id="Node000008" title=" " alt="" coords="290,241,364,267"/>
|
||||
<area shape="poly" id="edge7_Node000007_Node000008" title=" " alt="" coords="328,194,329,225,324,226,323,194"/>
|
||||
<area shape="rect" id="Node000009" title=" " alt="" coords="389,241,449,267"/>
|
||||
<area shape="poly" id="edge8_Node000007_Node000009" title=" " alt="" coords="343,192,393,230,390,234,340,196"/>
|
||||
<area shape="rect" id="Node000010" title=" " alt="" coords="473,241,541,267"/>
|
||||
<area shape="poly" id="edge9_Node000007_Node000010" title=" " alt="" coords="357,191,463,233,461,238,355,196"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
680c89ff1455d253239449d3217622e7
|
||||
18a8583b1488dd2c3047454e772a75a4
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: ciphers/elliptic_curve_key_exchange.cpp Pages: 1 -->
|
||||
<svg width="352pt" height="204pt"
|
||||
viewBox="0.00 0.00 351.75 204.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="410pt" height="204pt"
|
||||
viewBox="0.00 0.00 409.75 204.25" 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">
|
||||
|
||||
@@ -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="142.12,-19.25 102.12,-19.25 102.12,0 142.12,0 142.12,-19.25"/>
|
||||
<text text-anchor="middle" x="122.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="137.12,-19.25 97.12,-19.25 97.12,0 137.12,0 137.12,-19.25"/>
|
||||
<text text-anchor="middle" x="117.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -96,8 +96,8 @@
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M170.79,-110.25C162.25,-92.76 143.08,-53.52 131.51,-29.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.72,-28.44 127.19,-20.99 128.43,-31.51 134.72,-28.44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M170.38,-110.25C160.99,-92.68 139.86,-53.16 127.22,-29.52"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.45,-28.13 122.65,-20.96 124.28,-31.43 130.45,-28.13"/>
|
||||
</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="199.75,-19.25 160.5,-19.25 160.5,0 199.75,0 199.75,-19.25"/>
|
||||
<text text-anchor="middle" x="180.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="194.75,-19.25 155.5,-19.25 155.5,0 194.75,0 194.75,-19.25"/>
|
||||
<text text-anchor="middle" x="175.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -114,8 +114,8 @@
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M175.53,-110.25C176.33,-93 178.1,-54.58 179.19,-30.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="182.68,-31.29 179.64,-21.14 175.68,-30.97 182.68,-31.29"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M175.12,-110.25C175.12,-93 175.12,-54.58 175.12,-30.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="178.63,-31.14 175.13,-21.14 171.63,-31.14 178.63,-31.14"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -138,20 +138,20 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge9_Node000007_Node000005" class="edge">
|
||||
<g id="edge10_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge9_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M220.11,-54.84C201.63,-46.5 173.92,-34 152.68,-24.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="154.17,-21.25 143.62,-20.33 151.3,-27.63 154.17,-21.25"/>
|
||||
<g id="a_edge10_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M219.26,-54.84C199.59,-46.32 169.87,-33.46 147.56,-23.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="149.23,-20.71 138.66,-19.95 146.45,-27.13 149.23,-20.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node6 -->
|
||||
<g id="edge10_Node000007_Node000006" class="edge">
|
||||
<g id="edge11_Node000007_Node000006" class="edge">
|
||||
<title>Node7->Node6</title>
|
||||
<g id="a_edge10_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.95,-54.84C221.36,-47.22 208.86,-36.12 198.52,-26.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="201.09,-24.55 191.28,-20.53 196.44,-29.79 201.09,-24.55"/>
|
||||
<g id="a_edge11_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.1,-54.84C219.7,-47.15 205.98,-35.9 194.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.11,-24.11 187.16,-20.48 192.68,-29.53 197.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -159,8 +159,8 @@
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="274,-19.25 218.25,-19.25 218.25,0 274,0 274,-19.25"/>
|
||||
<text text-anchor="middle" x="246.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="269,-19.25 213.25,-19.25 213.25,0 269,0 269,-19.25"/>
|
||||
<text text-anchor="middle" x="241.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -168,8 +168,8 @@
|
||||
<g id="edge7_Node000007_Node000008" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M241.12,-55.08C241.86,-48.49 242.9,-39.21 243.85,-30.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="247.3,-31.44 244.94,-21.11 240.35,-30.66 247.3,-31.44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M240.29,-55.08C240.41,-48.57 240.58,-39.42 240.74,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="244.24,-31.19 240.93,-21.12 237.24,-31.05 244.24,-31.19"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -177,8 +177,8 @@
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="343.75,-19.25 292.5,-19.25 292.5,0 343.75,0 343.75,-19.25"/>
|
||||
<text text-anchor="middle" x="318.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="332.75,-19.25 287.5,-19.25 287.5,0 332.75,0 332.75,-19.25"/>
|
||||
<text text-anchor="middle" x="310.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -186,8 +186,26 @@
|
||||
<g id="edge8_Node000007_Node000009" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<g id="a_edge8_Node000007_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M253.36,-54.84C264.9,-46.96 281.89,-35.36 295.57,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.29,-29.08 303.58,-20.56 293.35,-23.3 297.29,-29.08"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M252,-54.84C262.22,-47.07 277.2,-35.67 289.39,-26.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="291.38,-29.28 297.22,-20.44 287.14,-23.71 291.38,-29.28"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="401.75,-19.25 350.5,-19.25 350.5,0 401.75,0 401.75,-19.25"/>
|
||||
<text text-anchor="middle" x="376.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node10 -->
|
||||
<g id="edge9_Node000007_Node000010" class="edge">
|
||||
<title>Node7->Node10</title>
|
||||
<g id="a_edge9_Node000007_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M263.2,-54.84C284.88,-46.35 317.61,-33.54 342.25,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="343.5,-27.16 351.53,-20.25 340.94,-20.64 343.5,-27.16"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 9.3 KiB |
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: ciphers/elliptic_curve_key_exchange.cpp Pages: 1 -->
|
||||
<svg width="352pt" height="204pt"
|
||||
viewBox="0.00 0.00 351.75 204.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="410pt" height="204pt"
|
||||
viewBox="0.00 0.00 409.75 204.25" 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 200.25)">
|
||||
<title>ciphers/elliptic_curve_key_exchange.cpp</title>
|
||||
<!-- Node1 -->
|
||||
@@ -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="142.12,-19.25 102.12,-19.25 102.12,0 142.12,0 142.12,-19.25"/>
|
||||
<text text-anchor="middle" x="122.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="137.12,-19.25 97.12,-19.25 97.12,0 137.12,0 137.12,-19.25"/>
|
||||
<text text-anchor="middle" x="117.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -85,8 +85,8 @@
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M170.79,-110.25C162.25,-92.76 143.08,-53.52 131.51,-29.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.72,-28.44 127.19,-20.99 128.43,-31.51 134.72,-28.44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M170.38,-110.25C160.99,-92.68 139.86,-53.16 127.22,-29.52"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.45,-28.13 122.65,-20.96 124.28,-31.43 130.45,-28.13"/>
|
||||
</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="199.75,-19.25 160.5,-19.25 160.5,0 199.75,0 199.75,-19.25"/>
|
||||
<text text-anchor="middle" x="180.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="194.75,-19.25 155.5,-19.25 155.5,0 194.75,0 194.75,-19.25"/>
|
||||
<text text-anchor="middle" x="175.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">utility</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -103,8 +103,8 @@
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M175.53,-110.25C176.33,-93 178.1,-54.58 179.19,-30.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="182.68,-31.29 179.64,-21.14 175.68,-30.97 182.68,-31.29"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M175.12,-110.25C175.12,-93 175.12,-54.58 175.12,-30.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="178.63,-31.14 175.13,-21.14 171.63,-31.14 178.63,-31.14"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -127,20 +127,20 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge9_Node000007_Node000005" class="edge">
|
||||
<g id="edge10_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge9_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M220.11,-54.84C201.63,-46.5 173.92,-34 152.68,-24.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="154.17,-21.25 143.62,-20.33 151.3,-27.63 154.17,-21.25"/>
|
||||
<g id="a_edge10_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M219.26,-54.84C199.59,-46.32 169.87,-33.46 147.56,-23.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="149.23,-20.71 138.66,-19.95 146.45,-27.13 149.23,-20.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node6 -->
|
||||
<g id="edge10_Node000007_Node000006" class="edge">
|
||||
<g id="edge11_Node000007_Node000006" class="edge">
|
||||
<title>Node7->Node6</title>
|
||||
<g id="a_edge10_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.95,-54.84C221.36,-47.22 208.86,-36.12 198.52,-26.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="201.09,-24.55 191.28,-20.53 196.44,-29.79 201.09,-24.55"/>
|
||||
<g id="a_edge11_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M229.1,-54.84C219.7,-47.15 205.98,-35.9 194.72,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="197.11,-24.11 187.16,-20.48 192.68,-29.53 197.11,-24.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -148,8 +148,8 @@
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="274,-19.25 218.25,-19.25 218.25,0 274,0 274,-19.25"/>
|
||||
<text text-anchor="middle" x="246.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="269,-19.25 213.25,-19.25 213.25,0 269,0 269,-19.25"/>
|
||||
<text text-anchor="middle" x="241.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -157,8 +157,8 @@
|
||||
<g id="edge7_Node000007_Node000008" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<g id="a_edge7_Node000007_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M241.12,-55.08C241.86,-48.49 242.9,-39.21 243.85,-30.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="247.3,-31.44 244.94,-21.11 240.35,-30.66 247.3,-31.44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M240.29,-55.08C240.41,-48.57 240.58,-39.42 240.74,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="244.24,-31.19 240.93,-21.12 237.24,-31.05 244.24,-31.19"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -166,8 +166,8 @@
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="343.75,-19.25 292.5,-19.25 292.5,0 343.75,0 343.75,-19.25"/>
|
||||
<text text-anchor="middle" x="318.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="332.75,-19.25 287.5,-19.25 287.5,0 332.75,0 332.75,-19.25"/>
|
||||
<text text-anchor="middle" x="310.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -175,8 +175,26 @@
|
||||
<g id="edge8_Node000007_Node000009" class="edge">
|
||||
<title>Node7->Node9</title>
|
||||
<g id="a_edge8_Node000007_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M253.36,-54.84C264.9,-46.96 281.89,-35.36 295.57,-26.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="297.29,-29.08 303.58,-20.56 293.35,-23.3 297.29,-29.08"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M252,-54.84C262.22,-47.07 277.2,-35.67 289.39,-26.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="291.38,-29.28 297.22,-20.44 287.14,-23.71 291.38,-29.28"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="401.75,-19.25 350.5,-19.25 350.5,0 401.75,0 401.75,-19.25"/>
|
||||
<text text-anchor="middle" x="376.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node10 -->
|
||||
<g id="edge9_Node000007_Node000010" class="edge">
|
||||
<title>Node7->Node10</title>
|
||||
<g id="a_edge9_Node000007_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M263.2,-54.84C284.88,-46.35 317.61,-33.54 342.25,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="343.5,-27.16 351.53,-20.25 340.94,-20.64 343.5,-27.16"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 8.6 KiB |
@@ -146,7 +146,7 @@ Functions</h2></td></tr>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>for string class </p>
|
||||
<p>for uint32_t</p>
|
||||
<p>for assert</p>
|
||||
<p>Greedy Algorithms.</p>
|
||||
<p>For <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> to store separated digits.</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></p>
|
||||
<p>for reverse function for tests for input and outputs</p>
|
||||
@@ -155,8 +155,7 @@ Functions</h2></td></tr>
|
||||
<p>Greedy Algorithms</p>
|
||||
<p>For reveresing the vector For assert() function to check for errors For abs() function For int64_t data type to handle large numbers For input/output operations</p>
|
||||
<p>Greedy Algorithms</p>
|
||||
<p>for std::u32int_t for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/find.html">std::find</a></p>
|
||||
<p>Greedy Algorithms</p>
|
||||
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/find.html">std::find</a> for assert for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></p>
|
||||
<p>for assert for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></p>
|
||||
<p>Greedy Algorithms</p>
|
||||
<p>for array for IO operations for numeric limits</p>
|
||||
|
||||
@@ -1,26 +1,28 @@
|
||||
<map id="ciphers/hill_cipher.cpp" name="ciphers/hill_cipher.cpp">
|
||||
<area shape="rect" id="Node000001" title="Implementation of Hill cipher algorithm." alt="" coords="296,5,446,31"/>
|
||||
<area shape="rect" id="Node000001" title="Implementation of Hill cipher algorithm." alt="" coords="338,5,487,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,86,70,112"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="296,34,195,53,84,82,79,83,77,78,82,76,193,48,295,28"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="338,31,217,50,84,82,78,83,77,78,82,76,216,45,337,26"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="94,86,152,112"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="320,34,246,54,164,82,161,82,159,77,162,76,244,49,319,29"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="346,34,258,54,164,82,161,82,159,77,162,76,257,49,344,29"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="175,86,236,112"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="347,34,246,82,243,77,344,29"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="260,86,314,112"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="360,33,312,78,309,74,356,29"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="338,86,404,112"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="374,31,374,71,368,71,368,31"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="427,86,493,112"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="386,29,437,74,433,78,383,33"/>
|
||||
<area shape="rect" id="Node000008" title=" " alt="" coords="542,168,613,193"/>
|
||||
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="414,29,461,48,507,77,542,114,567,153,562,156,538,118,504,81,458,53,412,34"/>
|
||||
<area shape="rect" id="Node000009" title=" " alt="" coords="568,86,622,112"/>
|
||||
<area shape="poly" id="edge8_Node000001_Node000009" title=" " alt="" coords="411,29,550,76,554,78,552,83,549,82,409,34"/>
|
||||
<area shape="rect" id="Node000010" href="$d1/dbe/lu__decomposition_8h.html" title="Functions associated with LU Decomposition of a square matrix." alt="" coords="646,79,792,120"/>
|
||||
<area shape="poly" id="edge9_Node000001_Node000010" title=" " alt="" coords="425,29,631,75,630,81,424,34"/>
|
||||
<area shape="poly" id="edge10_Node000010_Node000008" title=" " alt="" coords="685,123,614,162,611,157,682,118"/>
|
||||
<area shape="rect" id="Node000011" title=" " alt="" coords="641,168,708,193"/>
|
||||
<area shape="poly" id="edge11_Node000010_Node000011" title=" " alt="" coords="710,121,691,155,687,153,706,119"/>
|
||||
<area shape="rect" id="Node000012" title=" " alt="" coords="733,168,790,193"/>
|
||||
<area shape="poly" id="edge12_Node000010_Node000012" title=" " alt="" coords="732,119,750,152,745,155,727,121"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="377,34,248,81,245,82,243,78,246,77,375,29"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="259,86,320,112"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="395,34,322,80,319,76,392,29"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="344,86,398,112"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="408,33,387,74,382,71,404,30"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="422,86,488,112"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="421,30,443,72,439,74,416,33"/>
|
||||
<area shape="rect" id="Node000008" title=" " alt="" coords="511,86,577,112"/>
|
||||
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="434,29,512,76,509,80,431,34"/>
|
||||
<area shape="rect" id="Node000009" title=" " alt="" coords="626,168,697,193"/>
|
||||
<area shape="poly" id="edge8_Node000001_Node000009" title=" " alt="" coords="480,29,536,47,565,60,591,77,610,94,627,114,652,153,647,156,623,117,607,98,588,81,562,65,534,52,478,34"/>
|
||||
<area shape="rect" id="Node000010" title=" " alt="" coords="652,86,706,112"/>
|
||||
<area shape="poly" id="edge9_Node000001_Node000010" title=" " alt="" coords="466,29,546,50,634,76,638,78,637,83,633,82,544,55,464,34"/>
|
||||
<area shape="rect" id="Node000011" href="$d1/dbe/lu__decomposition_8h.html" title="Functions associated with LU Decomposition of a square matrix." alt="" coords="730,79,876,120"/>
|
||||
<area shape="poly" id="edge10_Node000001_Node000011" title=" " alt="" coords="478,29,715,76,714,81,477,34"/>
|
||||
<area shape="poly" id="edge11_Node000011_Node000009" title=" " alt="" coords="769,123,698,162,695,157,766,118"/>
|
||||
<area shape="rect" id="Node000012" title=" " alt="" coords="725,168,792,193"/>
|
||||
<area shape="poly" id="edge12_Node000011_Node000012" title=" " alt="" coords="794,121,775,155,771,153,790,119"/>
|
||||
<area shape="rect" id="Node000013" title=" " alt="" coords="817,168,874,193"/>
|
||||
<area shape="poly" id="edge13_Node000011_Node000013" title=" " alt="" coords="816,119,834,152,829,155,811,121"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
770c77c44a8202fdf083ac3e26375873
|
||||
5f39a4538d52363e8eade1e12188ed5e
|
||||
@@ -47,7 +47,7 @@
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 598;
|
||||
var viewWidth = 661;
|
||||
var viewHeight = 149;
|
||||
var sectionId = 'dynsection-0';
|
||||
</script>
|
||||
@@ -59,8 +59,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Implementation of Hill cipher algorithm.">
|
||||
<polygon fill="#999999" stroke="#666666" points="330.12,-141 218.12,-141 218.12,-121.75 330.12,-121.75 330.12,-141"/>
|
||||
<text text-anchor="middle" x="274.12" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">ciphers/hill_cipher.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="361.12,-141 249.12,-141 249.12,-121.75 361.12,-121.75 361.12,-141"/>
|
||||
<text text-anchor="middle" x="305.12" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">ciphers/hill_cipher.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -77,8 +77,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M217.88,-121.82C173.84,-114.39 111.35,-102.23 58.12,-85.75 56.96,-85.39 55.79,-85.01 54.6,-84.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.03,-81.4 45.44,-81.13 53.55,-87.94 56.03,-81.4"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M248.89,-123.77C198.29,-117 122.26,-104.74 58.12,-85.75 56.78,-85.35 55.41,-84.92 54.04,-84.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.64,-81.32 45.05,-81.07 53.18,-87.87 55.64,-81.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -95,8 +95,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M235.73,-121.27C203.8,-113.26 157.39,-100.58 118.12,-85.75 117.5,-85.51 116.87,-85.27 116.24,-85.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="117.96,-81.95 107.39,-81.18 115.17,-88.37 117.96,-81.95"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M254.7,-121.32C216.59,-113.76 163.3,-101.67 118.12,-85.75 117.48,-85.52 116.83,-85.29 116.18,-85.04"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="117.6,-81.84 107.03,-81.16 114.87,-88.29 117.6,-81.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -105,7 +105,7 @@ var sectionId = 'dynsection-0';
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="172.75,-80.12 127.5,-80.12 127.5,-60.88 172.75,-60.88 172.75,-80.12"/>
|
||||
<text text-anchor="middle" x="150.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<text text-anchor="middle" x="150.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -113,8 +113,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M255.02,-121.3C234.85,-111.73 202.79,-96.5 179.41,-85.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="180.95,-82.26 170.41,-81.13 177.95,-88.58 180.95,-82.26"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M277.78,-121.29C252.48,-112.7 213.95,-99.17 181.12,-85.75 180.51,-85.5 179.89,-85.24 179.26,-84.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="180.98,-81.91 170.42,-81.11 178.17,-88.32 180.98,-81.91"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -122,8 +122,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="231.12,-80.12 191.12,-80.12 191.12,-60.88 231.12,-60.88 231.12,-80.12"/>
|
||||
<text text-anchor="middle" x="211.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="235.75,-80.12 190.5,-80.12 190.5,-60.88 235.75,-60.88 235.75,-80.12"/>
|
||||
<text text-anchor="middle" x="213.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -131,8 +131,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M264.56,-121.43C255.12,-112.62 240.47,-98.93 228.9,-88.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="231.59,-85.83 221.89,-81.56 226.81,-90.94 231.59,-85.83"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M291.15,-121.43C276.7,-112.18 253.87,-97.57 236.63,-86.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.81,-83.78 228.5,-81.34 235.04,-89.68 238.81,-83.78"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -140,8 +140,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="298.62,-80.12 249.62,-80.12 249.62,-60.88 298.62,-60.88 298.62,-80.12"/>
|
||||
<text text-anchor="middle" x="274.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">fstream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="294.12,-80.12 254.12,-80.12 254.12,-60.88 294.12,-60.88 294.12,-80.12"/>
|
||||
<text text-anchor="middle" x="274.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -149,8 +149,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M274.12,-121.43C274.12,-113.65 274.12,-102.08 274.12,-92.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="277.63,-92.04 274.13,-82.04 270.63,-92.04 277.63,-92.04"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M300.42,-121.43C296.14,-113.31 289.68,-101.04 284.24,-90.7"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.34,-89.08 279.58,-81.87 281.14,-92.34 287.34,-89.08"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -158,8 +158,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="366,-80.12 316.25,-80.12 316.25,-60.88 366,-60.88 366,-80.12"/>
|
||||
<text text-anchor="middle" x="341.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">iomanip</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="361.62,-80.12 312.62,-80.12 312.62,-60.88 361.62,-60.88 361.62,-80.12"/>
|
||||
<text text-anchor="middle" x="337.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">fstream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -167,8 +167,8 @@ var sectionId = 'dynsection-0';
|
||||
<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="M284.3,-121.43C294.34,-112.62 309.91,-98.93 322.22,-88.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="324.51,-90.76 329.72,-81.53 319.89,-85.5 324.51,-90.76"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M309.99,-121.43C314.45,-113.22 321.21,-100.78 326.87,-90.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="329.8,-92.31 331.5,-81.86 323.65,-88.97 329.8,-92.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -176,8 +176,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="455.88,-19.25 402.38,-19.25 402.38,0 455.88,0 455.88,-19.25"/>
|
||||
<text text-anchor="middle" x="429.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="429,-80.12 379.25,-80.12 379.25,-60.88 429,-60.88 429,-80.12"/>
|
||||
<text text-anchor="middle" x="404.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">iomanip</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -185,8 +185,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="edge7_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M305.63,-121.3C326.84,-114.09 354.58,-102.42 375.12,-85.75 394.36,-70.14 410.02,-46.07 419.43,-29.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="422.28,-31.48 423.96,-21.01 416.13,-28.15 422.28,-31.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M320.16,-121.43C335.79,-112.14 360.51,-97.44 379.09,-86.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="380.84,-89.42 387.65,-81.3 377.26,-83.4 380.84,-89.42"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -194,8 +194,8 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="462.12,-80.12 422.12,-80.12 422.12,-60.88 462.12,-60.88 462.12,-80.12"/>
|
||||
<text text-anchor="middle" x="442.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="518.88,-19.25 465.38,-19.25 465.38,0 518.88,0 518.88,-19.25"/>
|
||||
<text text-anchor="middle" x="492.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -203,18 +203,17 @@ var sectionId = 'dynsection-0';
|
||||
<g id="edge8_Node000001_Node000009" class="edge">
|
||||
<title>Node1->Node9</title>
|
||||
<g id="a_edge8_Node000001_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M303.63,-121.26C330.93,-112.65 372.54,-99.11 408.12,-85.75 409.09,-85.39 410.08,-85.01 411.07,-84.63"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.35,-87.88 420.32,-80.91 409.74,-81.39 412.35,-87.88"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M355.36,-121.32C381.86,-114.71 413.82,-103.68 438.12,-85.75 458.27,-70.89 473.9,-46.28 483.05,-29.29"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.97,-31.26 487.42,-20.76 479.74,-28.07 485.97,-31.26"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:href="../../d1/dbe/lu__decomposition_8h.html" target="_top" xlink:title="Functions associated with LU Decomposition of a square matrix.">
|
||||
<polygon fill="white" stroke="#666666" points="590,-85.75 480.25,-85.75 480.25,-55.25 590,-55.25 590,-85.75"/>
|
||||
<text text-anchor="start" x="488.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">../numerical_methods</text>
|
||||
<text text-anchor="middle" x="535.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/lu_decomposition.h</text>
|
||||
<g id="a_Node000010"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="525.12,-80.12 485.12,-80.12 485.12,-60.88 525.12,-60.88 525.12,-80.12"/>
|
||||
<text text-anchor="middle" x="505.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -222,35 +221,36 @@ var sectionId = 'dynsection-0';
|
||||
<g id="edge9_Node000001_Node000010" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<g id="a_edge9_Node000001_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M314.33,-121.3C355.46,-112.03 420.05,-97.46 468.76,-86.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="469.38,-89.92 478.36,-84.3 467.84,-83.09 469.38,-89.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node8 -->
|
||||
<g id="edge10_Node000010_Node000008" class="edge">
|
||||
<title>Node10->Node8</title>
|
||||
<g id="a_edge10_Node000010_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M508.65,-54.8C492.35,-45.74 471.55,-34.19 455.3,-25.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="457.15,-22.18 446.7,-20.39 453.75,-28.3 457.15,-22.18"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M344.82,-121.29C378.73,-113.16 428.63,-100.29 471.12,-85.75 472.11,-85.41 473.1,-85.06 474.1,-84.7"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="475.34,-87.98 483.39,-81.09 472.8,-81.45 475.34,-87.98"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="527.38,-19.25 476.88,-19.25 476.88,0 527.38,0 527.38,-19.25"/>
|
||||
<text text-anchor="middle" x="502.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">valarray</text>
|
||||
<g id="a_Node000011"><a xlink:href="../../d1/dbe/lu__decomposition_8h.html" target="_top" xlink:title="Functions associated with LU Decomposition of a square matrix.">
|
||||
<polygon fill="white" stroke="#666666" points="653,-85.75 543.25,-85.75 543.25,-55.25 653,-55.25 653,-85.75"/>
|
||||
<text text-anchor="start" x="551.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">../numerical_methods</text>
|
||||
<text text-anchor="middle" x="598.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/lu_decomposition.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge11_Node000010_Node000011" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<g id="a_edge11_Node000010_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M526.97,-54.95C522.67,-47.28 517.34,-37.77 512.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="515.89,-28.03 507.95,-21.02 509.79,-31.46 515.89,-28.03"/>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge10_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge10_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M353.89,-121.26C397.86,-112.96 464.57,-100.14 531.76,-86.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="532.43,-89.65 541.51,-84.18 531,-82.79 532.43,-89.65"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node9 -->
|
||||
<g id="edge11_Node000011_Node000009" class="edge">
|
||||
<title>Node11->Node9</title>
|
||||
<g id="a_edge11_Node000011_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M571.65,-54.8C555.35,-45.74 534.55,-34.19 518.3,-25.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520.15,-22.18 509.7,-20.39 516.75,-28.3 520.15,-22.18"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -258,17 +258,35 @@ var sectionId = 'dynsection-0';
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="588.62,-19.25 545.62,-19.25 545.62,0 588.62,0 588.62,-19.25"/>
|
||||
<text text-anchor="middle" x="567.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="590.38,-19.25 539.88,-19.25 539.88,0 590.38,0 590.38,-19.25"/>
|
||||
<text text-anchor="middle" x="565.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">valarray</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge12_Node000010_Node000012" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<g id="a_edge12_Node000010_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M543.04,-54.95C547.16,-47.36 552.25,-37.99 556.69,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="559.77,-31.49 561.47,-21.03 553.62,-28.15 559.77,-31.49"/>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge12_Node000011_Node000012" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<g id="a_edge12_Node000011_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M589.97,-54.95C585.67,-47.28 580.34,-37.77 575.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="578.89,-28.03 570.95,-21.02 572.79,-31.46 578.89,-28.03"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="651.62,-19.25 608.62,-19.25 608.62,0 651.62,0 651.62,-19.25"/>
|
||||
<text text-anchor="middle" x="630.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node13 -->
|
||||
<g id="edge13_Node000011_Node000013" class="edge">
|
||||
<title>Node11->Node13</title>
|
||||
<g id="a_edge13_Node000011_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M606.04,-54.95C610.16,-47.36 615.25,-37.99 619.69,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="622.77,-31.49 624.47,-21.03 616.62,-28.15 622.77,-31.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: ciphers/hill_cipher.cpp Pages: 1 -->
|
||||
<svg width="598pt" height="149pt"
|
||||
viewBox="0.00 0.00 598.00 149.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="661pt" height="149pt"
|
||||
viewBox="0.00 0.00 661.00 149.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 145)">
|
||||
<title>ciphers/hill_cipher.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Implementation of Hill cipher algorithm.">
|
||||
<polygon fill="#999999" stroke="#666666" points="330.12,-141 218.12,-141 218.12,-121.75 330.12,-121.75 330.12,-141"/>
|
||||
<text text-anchor="middle" x="274.12" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">ciphers/hill_cipher.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="361.12,-141 249.12,-141 249.12,-121.75 361.12,-121.75 361.12,-141"/>
|
||||
<text text-anchor="middle" x="305.12" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">ciphers/hill_cipher.cpp</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="M217.88,-121.82C173.84,-114.39 111.35,-102.23 58.12,-85.75 56.96,-85.39 55.79,-85.01 54.6,-84.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="56.03,-81.4 45.44,-81.13 53.55,-87.94 56.03,-81.4"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M248.89,-123.77C198.29,-117 122.26,-104.74 58.12,-85.75 56.78,-85.35 55.41,-84.92 54.04,-84.45"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="55.64,-81.32 45.05,-81.07 53.18,-87.87 55.64,-81.32"/>
|
||||
</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="M235.73,-121.27C203.8,-113.26 157.39,-100.58 118.12,-85.75 117.5,-85.51 116.87,-85.27 116.24,-85.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="117.96,-81.95 107.39,-81.18 115.17,-88.37 117.96,-81.95"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M254.7,-121.32C216.59,-113.76 163.3,-101.67 118.12,-85.75 117.48,-85.52 116.83,-85.29 116.18,-85.04"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="117.6,-81.84 107.03,-81.16 114.87,-88.29 117.6,-81.84"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -58,7 +58,7 @@
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="172.75,-80.12 127.5,-80.12 127.5,-60.88 172.75,-60.88 172.75,-80.12"/>
|
||||
<text text-anchor="middle" x="150.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
<text text-anchor="middle" x="150.12" y="-66.62" 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->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M255.02,-121.3C234.85,-111.73 202.79,-96.5 179.41,-85.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="180.95,-82.26 170.41,-81.13 177.95,-88.58 180.95,-82.26"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M277.78,-121.29C252.48,-112.7 213.95,-99.17 181.12,-85.75 180.51,-85.5 179.89,-85.24 179.26,-84.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="180.98,-81.91 170.42,-81.11 178.17,-88.32 180.98,-81.91"/>
|
||||
</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="231.12,-80.12 191.12,-80.12 191.12,-60.88 231.12,-60.88 231.12,-80.12"/>
|
||||
<text text-anchor="middle" x="211.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="235.75,-80.12 190.5,-80.12 190.5,-60.88 235.75,-60.88 235.75,-80.12"/>
|
||||
<text text-anchor="middle" x="213.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">cstring</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -84,8 +84,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="M264.56,-121.43C255.12,-112.62 240.47,-98.93 228.9,-88.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="231.59,-85.83 221.89,-81.56 226.81,-90.94 231.59,-85.83"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M291.15,-121.43C276.7,-112.18 253.87,-97.57 236.63,-86.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.81,-83.78 228.5,-81.34 235.04,-89.68 238.81,-83.78"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -93,8 +93,8 @@
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="298.62,-80.12 249.62,-80.12 249.62,-60.88 298.62,-60.88 298.62,-80.12"/>
|
||||
<text text-anchor="middle" x="274.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">fstream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="294.12,-80.12 254.12,-80.12 254.12,-60.88 294.12,-60.88 294.12,-80.12"/>
|
||||
<text text-anchor="middle" x="274.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -102,8 +102,8 @@
|
||||
<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="M274.12,-121.43C274.12,-113.65 274.12,-102.08 274.12,-92.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="277.63,-92.04 274.13,-82.04 270.63,-92.04 277.63,-92.04"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M300.42,-121.43C296.14,-113.31 289.68,-101.04 284.24,-90.7"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.34,-89.08 279.58,-81.87 281.14,-92.34 287.34,-89.08"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -111,8 +111,8 @@
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="366,-80.12 316.25,-80.12 316.25,-60.88 366,-60.88 366,-80.12"/>
|
||||
<text text-anchor="middle" x="341.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">iomanip</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="361.62,-80.12 312.62,-80.12 312.62,-60.88 361.62,-60.88 361.62,-80.12"/>
|
||||
<text text-anchor="middle" x="337.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">fstream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -120,8 +120,8 @@
|
||||
<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="M284.3,-121.43C294.34,-112.62 309.91,-98.93 322.22,-88.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="324.51,-90.76 329.72,-81.53 319.89,-85.5 324.51,-90.76"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M309.99,-121.43C314.45,-113.22 321.21,-100.78 326.87,-90.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="329.8,-92.31 331.5,-81.86 323.65,-88.97 329.8,-92.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -129,8 +129,8 @@
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="455.88,-19.25 402.38,-19.25 402.38,0 455.88,0 455.88,-19.25"/>
|
||||
<text text-anchor="middle" x="429.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="429,-80.12 379.25,-80.12 379.25,-60.88 429,-60.88 429,-80.12"/>
|
||||
<text text-anchor="middle" x="404.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">iomanip</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -138,8 +138,8 @@
|
||||
<g id="edge7_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge7_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M305.63,-121.3C326.84,-114.09 354.58,-102.42 375.12,-85.75 394.36,-70.14 410.02,-46.07 419.43,-29.4"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="422.28,-31.48 423.96,-21.01 416.13,-28.15 422.28,-31.48"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M320.16,-121.43C335.79,-112.14 360.51,-97.44 379.09,-86.39"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="380.84,-89.42 387.65,-81.3 377.26,-83.4 380.84,-89.42"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -147,8 +147,8 @@
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="462.12,-80.12 422.12,-80.12 422.12,-60.88 462.12,-60.88 462.12,-80.12"/>
|
||||
<text text-anchor="middle" x="442.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="518.88,-19.25 465.38,-19.25 465.38,0 518.88,0 518.88,-19.25"/>
|
||||
<text text-anchor="middle" x="492.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -156,18 +156,17 @@
|
||||
<g id="edge8_Node000001_Node000009" class="edge">
|
||||
<title>Node1->Node9</title>
|
||||
<g id="a_edge8_Node000001_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M303.63,-121.26C330.93,-112.65 372.54,-99.11 408.12,-85.75 409.09,-85.39 410.08,-85.01 411.07,-84.63"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.35,-87.88 420.32,-80.91 409.74,-81.39 412.35,-87.88"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M355.36,-121.32C381.86,-114.71 413.82,-103.68 438.12,-85.75 458.27,-70.89 473.9,-46.28 483.05,-29.29"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.97,-31.26 487.42,-20.76 479.74,-28.07 485.97,-31.26"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:href="../../d1/dbe/lu__decomposition_8h.html" target="_top" xlink:title="Functions associated with LU Decomposition of a square matrix.">
|
||||
<polygon fill="white" stroke="#666666" points="590,-85.75 480.25,-85.75 480.25,-55.25 590,-55.25 590,-85.75"/>
|
||||
<text text-anchor="start" x="488.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">../numerical_methods</text>
|
||||
<text text-anchor="middle" x="535.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/lu_decomposition.h</text>
|
||||
<g id="a_Node000010"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="525.12,-80.12 485.12,-80.12 485.12,-60.88 525.12,-60.88 525.12,-80.12"/>
|
||||
<text text-anchor="middle" x="505.12" y="-66.62" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -175,35 +174,36 @@
|
||||
<g id="edge9_Node000001_Node000010" class="edge">
|
||||
<title>Node1->Node10</title>
|
||||
<g id="a_edge9_Node000001_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M314.33,-121.3C355.46,-112.03 420.05,-97.46 468.76,-86.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="469.38,-89.92 478.36,-84.3 467.84,-83.09 469.38,-89.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node8 -->
|
||||
<g id="edge10_Node000010_Node000008" class="edge">
|
||||
<title>Node10->Node8</title>
|
||||
<g id="a_edge10_Node000010_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M508.65,-54.8C492.35,-45.74 471.55,-34.19 455.3,-25.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="457.15,-22.18 446.7,-20.39 453.75,-28.3 457.15,-22.18"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M344.82,-121.29C378.73,-113.16 428.63,-100.29 471.12,-85.75 472.11,-85.41 473.1,-85.06 474.1,-84.7"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="475.34,-87.98 483.39,-81.09 472.8,-81.45 475.34,-87.98"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="527.38,-19.25 476.88,-19.25 476.88,0 527.38,0 527.38,-19.25"/>
|
||||
<text text-anchor="middle" x="502.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">valarray</text>
|
||||
<g id="a_Node000011"><a xlink:href="../../d1/dbe/lu__decomposition_8h.html" target="_top" xlink:title="Functions associated with LU Decomposition of a square matrix.">
|
||||
<polygon fill="white" stroke="#666666" points="653,-85.75 543.25,-85.75 543.25,-55.25 653,-55.25 653,-85.75"/>
|
||||
<text text-anchor="start" x="551.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">../numerical_methods</text>
|
||||
<text text-anchor="middle" x="598.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/lu_decomposition.h</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge11_Node000010_Node000011" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<g id="a_edge11_Node000010_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M526.97,-54.95C522.67,-47.28 517.34,-37.77 512.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="515.89,-28.03 507.95,-21.02 509.79,-31.46 515.89,-28.03"/>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge10_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge10_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M353.89,-121.26C397.86,-112.96 464.57,-100.14 531.76,-86.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="532.43,-89.65 541.51,-84.18 531,-82.79 532.43,-89.65"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node9 -->
|
||||
<g id="edge11_Node000011_Node000009" class="edge">
|
||||
<title>Node11->Node9</title>
|
||||
<g id="a_edge11_Node000011_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M571.65,-54.8C555.35,-45.74 534.55,-34.19 518.3,-25.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520.15,-22.18 509.7,-20.39 516.75,-28.3 520.15,-22.18"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -211,17 +211,35 @@
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="588.62,-19.25 545.62,-19.25 545.62,0 588.62,0 588.62,-19.25"/>
|
||||
<text text-anchor="middle" x="567.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="590.38,-19.25 539.88,-19.25 539.88,0 590.38,0 590.38,-19.25"/>
|
||||
<text text-anchor="middle" x="565.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">valarray</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge12_Node000010_Node000012" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<g id="a_edge12_Node000010_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M543.04,-54.95C547.16,-47.36 552.25,-37.99 556.69,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="559.77,-31.49 561.47,-21.03 553.62,-28.15 559.77,-31.49"/>
|
||||
<!-- Node11->Node12 -->
|
||||
<g id="edge12_Node000011_Node000012" class="edge">
|
||||
<title>Node11->Node12</title>
|
||||
<g id="a_edge12_Node000011_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M589.97,-54.95C585.67,-47.28 580.34,-37.77 575.73,-29.54"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="578.89,-28.03 570.95,-21.02 572.79,-31.46 578.89,-28.03"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="651.62,-19.25 608.62,-19.25 608.62,0 651.62,0 651.62,-19.25"/>
|
||||
<text text-anchor="middle" x="630.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node13 -->
|
||||
<g id="edge13_Node000011_Node000013" class="edge">
|
||||
<title>Node11->Node13</title>
|
||||
<g id="a_edge13_Node000011_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M606.04,-54.95C610.16,-47.36 615.25,-37.99 619.69,-29.82"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="622.77,-31.49 624.47,-21.03 616.62,-28.15 622.77,-31.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 11 KiB |
@@ -114,18 +114,19 @@ $(function(){initNavTree('d3/d22/saddleback__search_8cpp.html','../../'); initRe
|
||||
<p>Implementation of <a href="https://www.geeksforgeeks.org/saddleback-search-algorithm-in-a-2d-array" target="_blank">Saddleback Algorithm</a> for 2D arrays.
|
||||
<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 saddleback_search.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d4c/saddleback__search_8cpp__incl.svg" width="252" 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="../../de/d4c/saddleback__search_8cpp__incl.svg" width="336" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><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="../../d9/dca/namespacesearch.html">search</a></td></tr>
|
||||
<tr class="memdesc:d9/dca/namespacesearch"><td class="mdescLeft"> </td><td class="mdescRight">for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> <br /></td></tr>
|
||||
<tr class="memdesc:d9/dca/namespacesearch"><td class="mdescLeft"> </td><td class="mdescRight">for std::assert <br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dda/namespacesaddleback.html">saddleback</a></td></tr>
|
||||
<tr class="memdesc:d0/dda/namespacesaddleback"><td class="mdescLeft"> </td><td class="mdescRight">Function for implementing <a href="https://www.geeksforgeeks.org/saddleback-search-algorithm-in-a-2d-array" target="_blank">Saddleback Algorithm</a>. <br /></td></tr>
|
||||
@@ -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">// execute the tests</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="asaddleback__search_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> saddleback_search.cpp:70</div></div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 112</span> {</div>
|
||||
<div class="line"><span class="lineno"> 113</span> <a class="code hl_function" href="#aa8dca7b867074164d5f45b0f3851269d">test</a>(); <span class="comment">// execute the tests</span></div>
|
||||
<div class="line"><span class="lineno"> 114</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 115</span>}</div>
|
||||
<div class="ttc" id="asaddleback__search_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> saddleback_search.cpp:78</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -205,35 +206,37 @@ Here is the call graph for this function:</div>
|
||||
<dl class="section return"><dt>Returns</dt><dd>An <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a> of with row and column populated within it, if the element is present. </dd>
|
||||
<dd>
|
||||
An <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a> with (0, 0), if the element is not present. </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 34</span> {</div>
|
||||
<div class="line"><span class="lineno"> 35</span> uint32_t left_index = 0;</div>
|
||||
<div class="line"><span class="lineno"> 36</span> uint32_t right_index = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[0].<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() - 1; <span class="comment">// Start from top right corner</span></div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">while</span> (left_index < <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>()) { <span class="comment">// Exit once the value of indexes get out of range.</span></div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">if</span> (element ==</div>
|
||||
<div class="line"><span class="lineno"> 39</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 40</span> [right_index]) { <span class="comment">// If value on this position of matrix is</span></div>
|
||||
<div class="line"><span class="lineno"> 41</span> <span class="comment">// equal to element, return (row, column).</span></div>
|
||||
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(left_index+1, right_index+1);</div>
|
||||
<div class="line"><span class="lineno"> 43</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (element ></div>
|
||||
<div class="line"><span class="lineno"> 44</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 45</span> [right_index]) { <span class="comment">// Else if value on this position of</span></div>
|
||||
<div class="line"><span class="lineno"> 46</span> <span class="comment">// matrix is less than the element,</span></div>
|
||||
<div class="line"><span class="lineno"> 47</span> <span class="comment">// move left.</span></div>
|
||||
<div class="line"><span class="lineno"> 48</span> ++left_index;</div>
|
||||
<div class="line"><span class="lineno"> 49</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (element <</div>
|
||||
<div class="line"><span class="lineno"> 50</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 51</span> [right_index]) { <span class="comment">// Else if value on this position of</span></div>
|
||||
<div class="line"><span class="lineno"> 52</span> <span class="comment">// matrix is greater than the</span></div>
|
||||
<div class="line"><span class="lineno"> 53</span> <span class="comment">// element, move down.</span></div>
|
||||
<div class="line"><span class="lineno"> 54</span> <span class="keywordflow">if</span>(!right_index)</div>
|
||||
<div class="line"><span class="lineno"> 55</span> <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><span class="lineno"> 56</span> <span class="keywordflow">else</span> --right_index;</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="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(</div>
|
||||
<div class="line"><span class="lineno"> 60</span> 0, 0); <span class="comment">// If the program reaches here, that means one of the index</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="comment">// went out of index, hence no element present.</span></div>
|
||||
<div class="line"><span class="lineno"> 62</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 40</span> {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> uint32_t left_index = 0;</div>
|
||||
<div class="line"><span class="lineno"> 42</span> uint32_t right_index = <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[0].<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() - 1; <span class="comment">// Start from top right corner</span></div>
|
||||
<div class="line"><span class="lineno"> 43</span> <span class="keywordflow">while</span> (left_index <</div>
|
||||
<div class="line"><span class="lineno"> 44</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>()) { <span class="comment">// Exit once the value of indexes get out of range.</span></div>
|
||||
<div class="line"><span class="lineno"> 45</span> <span class="keywordflow">if</span> (element ==</div>
|
||||
<div class="line"><span class="lineno"> 46</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 47</span> [right_index]) { <span class="comment">// If value on this position of matrix is</span></div>
|
||||
<div class="line"><span class="lineno"> 48</span> <span class="comment">// equal to element, return (row, column).</span></div>
|
||||
<div class="line"><span class="lineno"> 49</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(left_index + 1, right_index + 1);</div>
|
||||
<div class="line"><span class="lineno"> 50</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (element ></div>
|
||||
<div class="line"><span class="lineno"> 51</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 52</span> [right_index]) { <span class="comment">// Else if value on this position of</span></div>
|
||||
<div class="line"><span class="lineno"> 53</span> <span class="comment">// matrix is less than the element,</span></div>
|
||||
<div class="line"><span class="lineno"> 54</span> <span class="comment">// move left.</span></div>
|
||||
<div class="line"><span class="lineno"> 55</span> ++left_index;</div>
|
||||
<div class="line"><span class="lineno"> 56</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (element <</div>
|
||||
<div class="line"><span class="lineno"> 57</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>[left_index]</div>
|
||||
<div class="line"><span class="lineno"> 58</span> [right_index]) { <span class="comment">// Else if value on this position of</span></div>
|
||||
<div class="line"><span class="lineno"> 59</span> <span class="comment">// matrix is greater than the</span></div>
|
||||
<div class="line"><span class="lineno"> 60</span> <span class="comment">// element, move down.</span></div>
|
||||
<div class="line"><span class="lineno"> 61</span> <span class="keywordflow">if</span> (!right_index)</div>
|
||||
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">break</span>;</div>
|
||||
<div class="line"><span class="lineno"> 63</span> <span class="keywordflow">else</span></div>
|
||||
<div class="line"><span class="lineno"> 64</span> --right_index;</div>
|
||||
<div class="line"><span class="lineno"> 65</span> }</div>
|
||||
<div class="line"><span class="lineno"> 66</span> }</div>
|
||||
<div class="line"><span class="lineno"> 67</span> <span class="keywordflow">return</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(</div>
|
||||
<div class="line"><span class="lineno"> 68</span> 0, 0); <span class="comment">// If the program reaches here, that means one of the index</span></div>
|
||||
<div class="line"><span class="lineno"> 69</span> <span class="comment">// went out of index, hence no element present.</span></div>
|
||||
<div class="line"><span class="lineno"> 70</span>}</div>
|
||||
<div class="ttc" id="amake_pair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a></div><div class="ttdeci">T make_pair(T... args)</div></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="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
@@ -270,36 +273,37 @@ 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"> 70</span> {</div>
|
||||
<div class="line"><span class="lineno"> 71</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::vector<int32_t></a>> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a> = {{1, 10, 100, 1000, 10000},</div>
|
||||
<div class="line"><span class="lineno"> 72</span> {2, 20, 200, 2000, 20000},</div>
|
||||
<div class="line"><span class="lineno"> 73</span> {3, 30, 300, 3000, 30000},</div>
|
||||
<div class="line"><span class="lineno"> 74</span> {4, 40, 400, 4000, 40000},</div>
|
||||
<div class="line"><span class="lineno"> 75</span> {5, 50, 500, 5000, 50000}};</div>
|
||||
<div class="line"><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><span class="lineno"> 77</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<uint32_t, uint32_t></a> not_found = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(0, 0);</div>
|
||||
<div class="line"><span class="lineno"> 78</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<uint32_t, uint32_t></a> test_answer;</div>
|
||||
<div class="line"><span class="lineno"> 79</span> <span class="comment">// Test 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/utility/pair.html">std::pair<uint32_t, uint32_t></a> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 123);</div>
|
||||
<div class="line"><span class="lineno"> 81</span> assert(not_found == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 82</span> <span class="comment">// Test 2</span></div>
|
||||
<div class="line"><span class="lineno"> 83</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 0);</div>
|
||||
<div class="line"><span class="lineno"> 84</span> assert(not_found == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 85</span> <span class="comment">// Test 3</span></div>
|
||||
<div class="line"><span class="lineno"> 86</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 1);</div>
|
||||
<div class="line"><span class="lineno"> 87</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(1, 1);</div>
|
||||
<div class="line"><span class="lineno"> 88</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 89</span> <span class="comment">// Test 4</span></div>
|
||||
<div class="line"><span class="lineno"> 90</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 50000);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(5, 5);</div>
|
||||
<div class="line"><span class="lineno"> 92</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 93</span> <span class="comment">// Test 5</span></div>
|
||||
<div class="line"><span class="lineno"> 94</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 300);</div>
|
||||
<div class="line"><span class="lineno"> 95</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(3, 3);</div>
|
||||
<div class="line"><span class="lineno"> 96</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 97</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 78</span> {</div>
|
||||
<div class="line"><span class="lineno"> 79</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::vector<int32_t></a>> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a> = {{1, 10, 100, 1000, 10000},</div>
|
||||
<div class="line"><span class="lineno"> 80</span> {2, 20, 200, 2000, 20000},</div>
|
||||
<div class="line"><span class="lineno"> 81</span> {3, 30, 300, 3000, 30000},</div>
|
||||
<div class="line"><span class="lineno"> 82</span> {4, 40, 400, 4000, 40000},</div>
|
||||
<div class="line"><span class="lineno"> 83</span> {5, 50, 500, 5000, 50000}};</div>
|
||||
<div class="line"><span class="lineno"> 84</span> </div>
|
||||
<div class="line"><span class="lineno"> 85</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<uint32_t, uint32_t></a> not_found = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(0, 0);</div>
|
||||
<div class="line"><span class="lineno"> 86</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<uint32_t, uint32_t></a> test_answer;</div>
|
||||
<div class="line"><span class="lineno"> 87</span> <span class="comment">// Test 1</span></div>
|
||||
<div class="line"><span class="lineno"> 88</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair<uint32_t, uint32_t></a> answer1 =</div>
|
||||
<div class="line"><span class="lineno"> 89</span> <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 123);</div>
|
||||
<div class="line"><span class="lineno"> 90</span> assert(not_found == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 91</span> <span class="comment">// Test 2</span></div>
|
||||
<div class="line"><span class="lineno"> 92</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 0);</div>
|
||||
<div class="line"><span class="lineno"> 93</span> assert(not_found == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 94</span> <span class="comment">// Test 3</span></div>
|
||||
<div class="line"><span class="lineno"> 95</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 1);</div>
|
||||
<div class="line"><span class="lineno"> 96</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(1, 1);</div>
|
||||
<div class="line"><span class="lineno"> 97</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 98</span> <span class="comment">// Test 4</span></div>
|
||||
<div class="line"><span class="lineno"> 99</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 50000);</div>
|
||||
<div class="line"><span class="lineno"> 100</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(5, 5);</div>
|
||||
<div class="line"><span class="lineno"> 101</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 102</span> <span class="comment">// Test 5</span></div>
|
||||
<div class="line"><span class="lineno"> 103</span> answer1 = <a class="code hl_function" href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a>(<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">matrix</a>, 300);</div>
|
||||
<div class="line"><span class="lineno"> 104</span> test_answer = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/pair/make_pair.html">std::make_pair</a>(3, 3);</div>
|
||||
<div class="line"><span class="lineno"> 105</span> assert(test_answer == answer1);</div>
|
||||
<div class="line"><span class="lineno"> 106</span>}</div>
|
||||
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></div></div>
|
||||
<div class="ttc" id="asaddleback__search_8cpp_html_ad1e0ca34797d88490747c08eca70a2e6"><div class="ttname"><a href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a></div><div class="ttdeci">std::pair< uint32_t, uint32_t > saddleback(std::vector< std::vector< int32_t > > matrix, int32_t element)</div><div class="ttdef"><b>Definition</b> saddleback_search.cpp:33</div></div>
|
||||
<div class="ttc" id="asaddleback__search_8cpp_html_ad1e0ca34797d88490747c08eca70a2e6"><div class="ttname"><a href="#ad1e0ca34797d88490747c08eca70a2e6">search::saddleback::saddleback</a></div><div class="ttdeci">std::pair< uint32_t, uint32_t > saddleback(std::vector< std::vector< int32_t > > matrix, int32_t element)</div><div class="ttdef"><b>Definition</b> saddleback_search.cpp:39</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
|
||||
@@ -418,7 +418,7 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 210</span> </div>
|
||||
<div class="line"><span class="lineno"> 211</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/dc3/fibonacci__sum_8cpp.html#aadb40ac4c74a7efc0680b83eeee138aa">result</a>;</div>
|
||||
<div class="line"><span class="lineno"> 212</span> }</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:76</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="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<map id="sorting/wiggle_sort.cpp" name="sorting/wiggle_sort.cpp">
|
||||
<area shape="rect" id="Node000001" title="[Wiggle Sort Algorithm] (https://leetcode.com/problems/wiggle-sort-ii/) Implementation" alt="" coords="141,5,296,31"/>
|
||||
<area shape="rect" id="Node000001" title="[Wiggle Sort Algorithm] (https://leetcode.com/problems/wiggle-sort-ii/) Implementation" alt="" coords="185,5,340,31"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,79,80,105"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="190,34,87,75,85,70,188,29"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="226,34,95,76,93,71,224,29"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="104,79,168,105"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="206,34,163,71,159,67,203,30"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="192,79,245,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="221,31,221,63,216,63,216,31"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="270,79,341,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="235,29,281,67,277,71,232,34"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="364,79,422,105"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="249,29,351,70,349,75,247,34"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="242,34,172,73,169,69,240,29"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="192,79,253,105"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="258,33,239,67,234,64,254,30"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="277,79,330,105"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="272,30,292,64,287,67,267,33"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="355,79,426,105"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="286,29,357,69,354,73,283,34"/>
|
||||
<area shape="rect" id="Node000007" title=" " alt="" coords="450,79,507,105"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="300,29,436,74,434,79,298,34"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
d77d9a15db4b2cc46df759ac220e1367
|
||||
4b656474ef6a70465ad4fb6a648ac076
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: sorting/wiggle_sort.cpp Pages: 1 -->
|
||||
<svg width="320pt" height="83pt"
|
||||
viewBox="0.00 0.00 320.38 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="384pt" height="83pt"
|
||||
viewBox="0.00 0.00 384.38 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="[Wiggle Sort Algorithm] (https://leetcode.com/problems/wiggle-sort-ii/) Implementation">
|
||||
<polygon fill="#999999" stroke="#666666" points="218.12,-74.5 101.62,-74.5 101.62,-55.25 218.12,-55.25 218.12,-74.5"/>
|
||||
<text text-anchor="middle" x="159.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">sorting/wiggle_sort.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="251.12,-74.5 134.62,-74.5 134.62,-55.25 251.12,-55.25 251.12,-74.5"/>
|
||||
<text text-anchor="middle" x="192.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">sorting/wiggle_sort.cpp</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="M137.48,-54.84C116.43,-46.35 84.67,-33.54 60.75,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.36,-20.76 51.78,-20.27 59.74,-27.26 62.36,-20.76"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.88,-54.84C137.86,-46.12 96.72,-32.84 66.57,-23.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.03,-19.91 57.44,-20.17 65.88,-26.57 68.03,-19.91"/>
|
||||
</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="M149.36,-54.84C140.49,-47.22 127.56,-36.12 116.89,-26.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="119.25,-24.37 109.39,-20.51 114.69,-29.68 119.25,-24.37"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M176.76,-54.84C162.29,-46.73 140.8,-34.68 123.89,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="125.82,-22.28 115.39,-20.44 122.4,-28.39 125.82,-22.28"/>
|
||||
</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="179.88,-19.25 139.88,-19.25 139.88,0 179.88,0 179.88,-19.25"/>
|
||||
<text text-anchor="middle" x="159.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="185.5,-19.25 140.25,-19.25 140.25,0 185.5,0 185.5,-19.25"/>
|
||||
<text text-anchor="middle" x="162.88" 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->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M159.88,-55.08C159.88,-48.57 159.88,-39.42 159.88,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.38,-31.12 159.88,-21.12 156.38,-31.12 163.38,-31.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M187.92,-55.08C183.99,-48.11 178.36,-38.12 173.44,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="176.64,-27.92 168.68,-20.93 170.54,-31.36 176.64,-27.92"/>
|
||||
</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="251.62,-19.25 198.12,-19.25 198.12,0 251.62,0 251.62,-19.25"/>
|
||||
<text text-anchor="middle" x="224.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="243.88,-19.25 203.88,-19.25 203.88,0 243.88,0 243.88,-19.25"/>
|
||||
<text text-anchor="middle" x="223.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -95,8 +95,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="M170.9,-54.84C180.3,-47.15 194.02,-35.9 205.28,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="207.32,-29.53 212.84,-20.48 202.89,-24.11 207.32,-29.53"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M197.99,-55.08C202.05,-48.11 207.87,-38.12 212.96,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.88,-31.32 217.88,-20.92 209.83,-27.8 215.88,-31.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -104,8 +104,8 @@
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.38,-19.25 269.38,-19.25 269.38,0 312.38,0 312.38,-19.25"/>
|
||||
<text text-anchor="middle" x="290.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="315.62,-19.25 262.12,-19.25 262.12,0 315.62,0 315.62,-19.25"/>
|
||||
<text text-anchor="middle" x="288.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -113,8 +113,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="M182.1,-54.84C203.02,-46.34 234.6,-33.5 258.36,-23.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="259.63,-27.1 267.58,-20.09 257,-20.62 259.63,-27.1"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M209.16,-54.84C223.78,-46.73 245.5,-34.68 262.58,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.14,-28.35 271.19,-20.44 260.74,-22.23 264.14,-28.35"/>
|
||||
</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="376.38,-19.25 333.38,-19.25 333.38,0 376.38,0 376.38,-19.25"/>
|
||||
<text text-anchor="middle" x="354.88" 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="M220.36,-54.84C248.53,-45.58 292.35,-31.18 322.26,-21.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="323.14,-24.74 331.55,-18.29 320.95,-18.09 323.14,-24.74"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.1 KiB |
@@ -4,16 +4,16 @@
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: sorting/wiggle_sort.cpp Pages: 1 -->
|
||||
<svg width="320pt" height="83pt"
|
||||
viewBox="0.00 0.00 320.38 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="384pt" height="83pt"
|
||||
viewBox="0.00 0.00 384.38 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>sorting/wiggle_sort.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="[Wiggle Sort Algorithm] (https://leetcode.com/problems/wiggle-sort-ii/) Implementation">
|
||||
<polygon fill="#999999" stroke="#666666" points="218.12,-74.5 101.62,-74.5 101.62,-55.25 218.12,-55.25 218.12,-74.5"/>
|
||||
<text text-anchor="middle" x="159.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">sorting/wiggle_sort.cpp</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="251.12,-74.5 134.62,-74.5 134.62,-55.25 251.12,-55.25 251.12,-74.5"/>
|
||||
<text text-anchor="middle" x="192.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">sorting/wiggle_sort.cpp</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="M137.48,-54.84C116.43,-46.35 84.67,-33.54 60.75,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.36,-20.76 51.78,-20.27 59.74,-27.26 62.36,-20.76"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M164.88,-54.84C137.86,-46.12 96.72,-32.84 66.57,-23.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="68.03,-19.91 57.44,-20.17 65.88,-26.57 68.03,-19.91"/>
|
||||
</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="M149.36,-54.84C140.49,-47.22 127.56,-36.12 116.89,-26.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="119.25,-24.37 109.39,-20.51 114.69,-29.68 119.25,-24.37"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M176.76,-54.84C162.29,-46.73 140.8,-34.68 123.89,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="125.82,-22.28 115.39,-20.44 122.4,-28.39 125.82,-22.28"/>
|
||||
</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="179.88,-19.25 139.88,-19.25 139.88,0 179.88,0 179.88,-19.25"/>
|
||||
<text text-anchor="middle" x="159.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="185.5,-19.25 140.25,-19.25 140.25,0 185.5,0 185.5,-19.25"/>
|
||||
<text text-anchor="middle" x="162.88" 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->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M159.88,-55.08C159.88,-48.57 159.88,-39.42 159.88,-31.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.38,-31.12 159.88,-21.12 156.38,-31.12 163.38,-31.12"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M187.92,-55.08C183.99,-48.11 178.36,-38.12 173.44,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="176.64,-27.92 168.68,-20.93 170.54,-31.36 176.64,-27.92"/>
|
||||
</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="251.62,-19.25 198.12,-19.25 198.12,0 251.62,0 251.62,-19.25"/>
|
||||
<text text-anchor="middle" x="224.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="243.88,-19.25 203.88,-19.25 203.88,0 243.88,0 243.88,-19.25"/>
|
||||
<text text-anchor="middle" x="223.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">ctime</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -84,8 +84,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="M170.9,-54.84C180.3,-47.15 194.02,-35.9 205.28,-26.68"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="207.32,-29.53 212.84,-20.48 202.89,-24.11 207.32,-29.53"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M197.99,-55.08C202.05,-48.11 207.87,-38.12 212.96,-29.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.88,-31.32 217.88,-20.92 209.83,-27.8 215.88,-31.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -93,8 +93,8 @@
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.38,-19.25 269.38,-19.25 269.38,0 312.38,0 312.38,-19.25"/>
|
||||
<text text-anchor="middle" x="290.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="315.62,-19.25 262.12,-19.25 262.12,0 315.62,0 315.62,-19.25"/>
|
||||
<text text-anchor="middle" x="288.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -102,8 +102,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="M182.1,-54.84C203.02,-46.34 234.6,-33.5 258.36,-23.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="259.63,-27.1 267.58,-20.09 257,-20.62 259.63,-27.1"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M209.16,-54.84C223.78,-46.73 245.5,-34.68 262.58,-25.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="264.14,-28.35 271.19,-20.44 260.74,-22.23 264.14,-28.35"/>
|
||||
</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="376.38,-19.25 333.38,-19.25 333.38,0 376.38,0 376.38,-19.25"/>
|
||||
<text text-anchor="middle" x="354.88" 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="M220.36,-54.84C248.53,-45.58 292.35,-31.18 322.26,-21.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="323.14,-24.74 331.55,-18.29 320.95,-18.09 323.14,-24.74"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.3 KiB |