mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-12 03:28:29 +08:00
Documentation for 882ba119dc
This commit is contained in:
@@ -99,12 +99,13 @@ $(document).ready(function(){initNavTree('d6/d2e/fenwick__tree_8cpp.html','../..
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">fenwick_tree.cpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Fenwick tree.
|
||||
<p><a href="https://en.wikipedia.org/wiki/Fenwick_tree" target="_blank">Fenwick Tree</a> algorithm implementation
|
||||
<a href="#details">More...</a></p>
|
||||
<div class="textblock"><code>#include <cassert></code><br />
|
||||
<code>#include <iostream></code><br />
|
||||
@@ -117,17 +118,32 @@ Include dependency graph for fenwick_tree.cpp:</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The class that initializes the Fenwick Tree. <a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#details">More...</a><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="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:dd/d69/namespacerange__queries"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d69/namespacerange__queries.html">range_queries</a></td></tr>
|
||||
<tr class="memdesc:dd/d69/namespacerange__queries"><td class="mdescLeft"> </td><td class="mdescRight">Algorithms and Data Structures that support range queries and updates. <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>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a> ()</td></tr>
|
||||
<tr class="memdesc:a483bb8ccf42aaf7375a83e91490eda1e"><td class="mdescLeft"> </td><td class="mdescRight">Self-test implementations. <br /></td></tr>
|
||||
<tr class="separator:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft"> </td><td class="mdescRight">Main function. <br /></td></tr>
|
||||
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Fenwick tree. </p>
|
||||
<p>A Fenwick tree or binary indexed tree is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers. </p>
|
||||
<div class="textblock"><p><a href="https://en.wikipedia.org/wiki/Fenwick_tree" target="_blank">Fenwick Tree</a> algorithm implementation </p>
|
||||
<p><em>From Wikipedia, the free encyclopedia.</em></p>
|
||||
<p>A Fenwick tree or binary indexed tree (BIT) is a clever implementation of a datastructure called bionomal tree. It can update values and solve range queries with operations that is; commulative, associative and has an inverse for this type of element. It can also solve immutable range queries (min/max), when operations only are associative over this type of element. Some of these restrictions can be removed, by storing redunant information; like in max/min range queries.</p>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/mateusz-grzegorzek" target="_blank">Mateusz Grzegorzek</a> </dd>
|
||||
<dd>
|
||||
<a href="https://github.com/Panquesito7" target="_blank">David Leal</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">◆ </a></span>main()</h2>
|
||||
@@ -144,27 +160,67 @@ Functions</h2></td></tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>Main function </p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 69</span> {</div>
|
||||
<div class="line"><span class="lineno"> 70</span> <span class="keywordtype">int</span> n = 5;</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<int></a> arr = {1, 2, 3, 4, 5};</div>
|
||||
<div class="line"><span class="lineno"> 72</span> <a class="code hl_class" href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a> fenwick_tree(arr);</div>
|
||||
<div class="line"><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><span class="lineno"> 74</span> assert(fenwick_tree.sum_range(0, 0) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 75</span> assert(fenwick_tree.sum_range(0, 1) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 76</span> assert(fenwick_tree.sum_range(0, 2) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 77</span> fenwick_tree.update(0, 6);</div>
|
||||
<div class="line"><span class="lineno"> 78</span> assert(fenwick_tree.sum_range(0, 0) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 79</span> assert(fenwick_tree.sum_range(0, 1) == 8);</div>
|
||||
<div class="line"><span class="lineno"> 80</span> assert(fenwick_tree.sum_range(0, 2) == 11);</div>
|
||||
<div class="line"><span class="lineno"> 81</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 82</span>}</div>
|
||||
<div class="ttc" id="aclass_fenwick_tree_html"><div class="ttname"><a href="../../dd/d91/class_fenwick_tree.html">FenwickTree</a></div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:17</div></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"> 132</span> {</div>
|
||||
<div class="line"><span class="lineno"> 133</span> <a class="code hl_function" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 134</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 135</span>}</div>
|
||||
<div class="ttc" id="afenwick__tree_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:114</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="388"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">◆ </a></span>tests()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">static void tests </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 114</span> {</div>
|
||||
<div class="line"><span class="lineno"> 115</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<int></a> arr = {1, 2, 3, 4, 5};</div>
|
||||
<div class="line"><span class="lineno"> 116</span> <a class="code hl_class" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a> fenwick_tree(arr);</div>
|
||||
<div class="line"><span class="lineno"> 117</span> </div>
|
||||
<div class="line"><span class="lineno"> 118</span> assert(fenwick_tree.sum_range(0, 0) == 1);</div>
|
||||
<div class="line"><span class="lineno"> 119</span> assert(fenwick_tree.sum_range(0, 1) == 3);</div>
|
||||
<div class="line"><span class="lineno"> 120</span> assert(fenwick_tree.sum_range(0, 2) == 6);</div>
|
||||
<div class="line"><span class="lineno"> 121</span> assert(fenwick_tree.sum_range(0, 3) == 10);</div>
|
||||
<div class="line"><span class="lineno"> 122</span> assert(fenwick_tree.sum_range(0, 4) == 15);</div>
|
||||
<div class="line"><span class="lineno"> 123</span> </div>
|
||||
<div class="line"><span class="lineno"> 124</span> fenwick_tree.update(0, 6);</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">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 126</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="aclassrange__queries_1_1fenwick__tree_html"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></div><div class="ttdoc">The class that initializes the Fenwick Tree.</div><div class="ttdef"><b>Definition</b> fenwick_tree.cpp:32</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>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="654" height="87"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d6/d2e/fenwick__tree_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="100%" height="388"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
var fenwick__tree_8cpp =
|
||||
[
|
||||
[ "FenwickTree", "dd/d91/class_fenwick_tree.html", "dd/d91/class_fenwick_tree" ],
|
||||
[ "main", "d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ]
|
||||
[ "range_queries::fenwick_tree", "de/d0d/classrange__queries_1_1fenwick__tree.html", "de/d0d/classrange__queries_1_1fenwick__tree" ],
|
||||
[ "main", "d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
|
||||
[ "tests", "d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e", null ]
|
||||
];
|
||||
@@ -0,0 +1,12 @@
|
||||
<map id="tests" name="tests">
|
||||
<area shape="rect" id="Node000001" title="Self-test implementations." alt="" coords="5,46,56,72"/>
|
||||
<area shape="rect" id="Node000002" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" title="Returns the prefix sum in range from L to R." alt="" coords="104,8,259,49"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="56,51,89,44,90,50,57,57"/>
|
||||
<area shape="rect" id="Node000005" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="307,71,462,111"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="56,59,292,80,292,85,56,64"/>
|
||||
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" title="Returns the sum of elements in range from 0 to ID." alt="" coords="307,5,462,46"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="259,25,292,24,292,30,259,30"/>
|
||||
<area shape="rect" id="Node000004" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="510,39,666,79"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="463,36,496,41,495,46,462,41"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000004" title=" " alt="" coords="462,76,495,71,496,76,463,81"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
801f348fab4dd2587848853a07163bf5
|
||||
@@ -0,0 +1,188 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<!--zoomable 88 -->
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 503;
|
||||
var viewHeight = 88;
|
||||
var sectionId = 'dynsection-2';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Self-test implementations.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-48.88 0,-48.88 0,-29.62 37.75,-29.62 37.75,-48.88"/>
|
||||
<text text-anchor="middle" x="18.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
|
||||
<polygon fill="white" stroke="#666666" points="190.25,-77.5 73.75,-77.5 73.75,-47 190.25,-47 190.25,-77.5"/>
|
||||
<text text-anchor="start" x="81.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="132" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<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="M38.23,-43.05C45.39,-44.53 54.09,-46.33 63.25,-48.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.23,-51.8 72.73,-50.4 63.65,-44.94 62.23,-51.8"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-30.5 226.25,-30.5 226.25,0 342.75,0 342.75,-30.5"/>
|
||||
<text text-anchor="start" x="234.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="284.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</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="M38,-37.6C73.92,-34.33 155.8,-26.88 215.15,-21.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.31,-24.88 224.95,-20.49 214.68,-17.91 215.31,-24.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-79.5 226.25,-79.5 226.25,-49 342.75,-49 342.75,-79.5"/>
|
||||
<text text-anchor="start" x="234.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="284.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.33,-63.01C198.41,-63.12 206.79,-63.23 215.06,-63.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.79,-66.85 224.83,-63.48 214.88,-59.85 214.79,-66.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
|
||||
<polygon fill="white" stroke="#666666" points="495.25,-54.5 378.75,-54.5 378.75,-24 495.25,-24 495.25,-54.5"/>
|
||||
<text text-anchor="start" x="386.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="437" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.83,-54.73C350.91,-53.38 359.29,-51.99 367.56,-50.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="368.04,-53.92 377.33,-48.83 366.9,-47.02 368.04,-53.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node4 -->
|
||||
<g id="edge5_Node000005_Node000004" class="edge">
|
||||
<title>Node5->Node4</title>
|
||||
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.83,-24.39C350.91,-25.68 359.29,-27.02 367.56,-28.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.91,-31.94 377.33,-30.05 368.01,-25.02 366.91,-31.94"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="fenwick__tree_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.2 KiB |
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<svg width="503pt" height="88pt"
|
||||
viewBox="0.00 0.00 503.25 87.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 83.5)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Self-test implementations.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-48.88 0,-48.88 0,-29.62 37.75,-29.62 37.75,-48.88"/>
|
||||
<text text-anchor="middle" x="18.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
|
||||
<polygon fill="white" stroke="#666666" points="190.25,-77.5 73.75,-77.5 73.75,-47 190.25,-47 190.25,-77.5"/>
|
||||
<text text-anchor="start" x="81.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="132" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<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="M38.23,-43.05C45.39,-44.53 54.09,-46.33 63.25,-48.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.23,-51.8 72.73,-50.4 63.65,-44.94 62.23,-51.8"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-30.5 226.25,-30.5 226.25,0 342.75,0 342.75,-30.5"/>
|
||||
<text text-anchor="start" x="234.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="284.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</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="M38,-37.6C73.92,-34.33 155.8,-26.88 215.15,-21.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.31,-24.88 224.95,-20.49 214.68,-17.91 215.31,-24.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-79.5 226.25,-79.5 226.25,-49 342.75,-49 342.75,-79.5"/>
|
||||
<text text-anchor="start" x="234.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="284.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.33,-63.01C198.41,-63.12 206.79,-63.23 215.06,-63.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.79,-66.85 224.83,-63.48 214.88,-59.85 214.79,-66.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
|
||||
<polygon fill="white" stroke="#666666" points="495.25,-54.5 378.75,-54.5 378.75,-24 495.25,-24 495.25,-54.5"/>
|
||||
<text text-anchor="start" x="386.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="437" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.83,-54.73C350.91,-53.38 359.29,-51.99 367.56,-50.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="368.04,-53.92 377.33,-48.83 366.9,-47.02 368.04,-53.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node4 -->
|
||||
<g id="edge5_Node000005_Node000004" class="edge">
|
||||
<title>Node5->Node4</title>
|
||||
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.83,-24.39C350.91,-25.68 359.29,-27.02 367.56,-28.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.91,-31.94 377.33,-30.05 368.01,-25.02 366.91,-31.94"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.3 KiB |
@@ -1,12 +1,14 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title=" " alt="" coords="5,31,55,56"/>
|
||||
<area shape="rect" id="Node000002" href="$dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" title=" " alt="" coords="103,5,271,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,37,89,31,90,37,56,42"/>
|
||||
<area shape="rect" id="Node000005" href="$dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" title=" " alt="" coords="319,56,462,82"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="55,43,305,60,304,65,55,48"/>
|
||||
<area shape="rect" id="Node000003" href="$dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" title=" " alt="" coords="326,7,455,32"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="271,16,311,16,311,22,271,21"/>
|
||||
<area shape="rect" id="Node000004" href="$dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" title=" " alt="" coords="510,32,648,58"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="456,26,496,31,495,36,456,31"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000004" title=" " alt="" coords="462,57,496,53,496,58,463,62"/>
|
||||
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,46,55,72"/>
|
||||
<area shape="rect" id="Node000002" href="$d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="Self-test implementations." alt="" coords="103,46,153,72"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,56,88,56,88,62,55,62"/>
|
||||
<area shape="rect" id="Node000003" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" title="Returns the prefix sum in range from L to R." alt="" coords="201,8,356,49"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="153,51,186,44,188,50,154,57"/>
|
||||
<area shape="rect" id="Node000006" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" title="Updates the value of an element in original array and accordingly updates the values in BIT array." alt="" coords="404,71,560,111"/>
|
||||
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="154,59,390,80,389,85,153,64"/>
|
||||
<area shape="rect" id="Node000004" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" title="Returns the sum of elements in range from 0 to ID." alt="" coords="404,5,560,46"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="356,25,389,24,389,30,356,30"/>
|
||||
<area shape="rect" id="Node000005" href="$de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" title="Returns the highest power of two which is not more than x." alt="" coords="608,39,763,79"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="560,36,593,41,592,46,559,41"/>
|
||||
<area shape="poly" id="edge6_Node000006_Node000005" title=" " alt="" coords="559,76,592,71,593,76,560,81"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
bd1af1053c41f75219f37eaba0886f70
|
||||
7615878d501bf0fd90c054122b1f0fad
|
||||
@@ -4,8 +4,7 @@
|
||||
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="490pt" height="65pt"
|
||||
viewBox="0.00 0.00 489.75 65.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!--zoomable 88 -->
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
@@ -14,25 +13,62 @@
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 576;
|
||||
var viewHeight = 88;
|
||||
var sectionId = 'dynsection-1';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 61.25)">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title=" ">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-38.25 0,-38.25 0,-19 37,-19 37,-38.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-24.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
<g id="a_Node000001"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-48.88 0,-48.88 0,-29.62 37,-29.62 37,-48.88"/>
|
||||
<text text-anchor="middle" x="18.5" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="199.25,-57.25 73,-57.25 73,-38 199.25,-38 199.25,-57.25"/>
|
||||
<text text-anchor="middle" x="136.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
|
||||
<g id="a_Node000002"><a xlink:href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self-test implementations.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-48.88 73,-48.88 73,-29.62 110.75,-29.62 110.75,-48.88"/>
|
||||
<text text-anchor="middle" x="91.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -40,35 +76,18 @@
|
||||
<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="M37.31,-31.55C44.54,-32.74 53.4,-34.2 62.81,-35.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.17,-39.35 72.61,-37.52 63.31,-32.44 62.17,-39.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-19.25 235.25,-19.25 235.25,0 342.75,0 342.75,-19.25"/>
|
||||
<text text-anchor="middle" x="289" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</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="M37.12,-27.38C74.43,-24.74 163.01,-18.47 224.25,-14.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.25,-17.57 233.97,-13.38 223.75,-10.59 224.25,-17.57"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-39.25C44.64,-39.25 53.57,-39.25 61.98,-39.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-42.75 71.94,-39.25 61.94,-35.75 61.94,-42.75"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="337.5,-56.25 240.5,-56.25 240.5,-37 337.5,-37 337.5,-56.25"/>
|
||||
<text text-anchor="middle" x="289" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
|
||||
<polygon fill="white" stroke="#666666" points="263.25,-77.5 146.75,-77.5 146.75,-47 263.25,-47 263.25,-77.5"/>
|
||||
<text text-anchor="start" x="154.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="205" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -76,17 +95,37 @@
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.36,-47.21C209.27,-47.15 219.49,-47.08 229.32,-47.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="229.22,-50.51 239.2,-46.94 229.17,-43.51 229.22,-50.51"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M111.23,-43.05C118.39,-44.53 127.09,-46.33 136.25,-48.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.23,-51.8 145.73,-50.4 136.65,-44.94 135.23,-51.8"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-30.5 299.25,-30.5 299.25,0 415.75,0 415.75,-30.5"/>
|
||||
<text text-anchor="start" x="307.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="357.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111,-37.6C146.92,-34.33 228.8,-26.88 288.15,-21.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.31,-24.88 297.95,-20.49 287.68,-17.91 288.31,-24.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="481.75,-37.25 378.75,-37.25 378.75,-18 481.75,-18 481.75,-37.25"/>
|
||||
<text text-anchor="middle" x="430.25" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-79.5 299.25,-79.5 299.25,-49 415.75,-49 415.75,-79.5"/>
|
||||
<text text-anchor="start" x="307.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="357.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -94,22 +133,62 @@
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M337.92,-40.09C347.51,-38.78 357.71,-37.39 367.69,-36.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.95,-39.38 377.39,-34.56 367.01,-32.45 367.95,-39.38"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M263.33,-63.01C271.41,-63.12 279.79,-63.23 288.06,-63.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.79,-66.85 297.83,-63.48 287.88,-59.85 287.79,-66.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node4 -->
|
||||
<g id="edge5_Node000005_Node000004" class="edge">
|
||||
<title>Node5->Node4</title>
|
||||
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.04,-16.48C351.16,-17.53 359.61,-18.62 367.89,-19.69"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.29,-23.27 377.65,-21.08 368.18,-16.33 367.29,-23.27"/>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
|
||||
<polygon fill="white" stroke="#666666" points="568.25,-54.5 451.75,-54.5 451.75,-24 568.25,-24 568.25,-54.5"/>
|
||||
<text text-anchor="start" x="459.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="510" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<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="M415.83,-54.73C423.91,-53.38 432.29,-51.99 440.56,-50.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="441.04,-53.92 450.33,-48.83 439.9,-47.02 441.04,-53.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge6_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge6_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.83,-24.39C423.91,-25.68 432.29,-27.02 440.56,-28.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.91,-31.94 450.33,-30.05 441.01,-25.02 439.91,-31.94"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="fenwick__tree_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 10 KiB |
@@ -4,25 +4,25 @@
|
||||
<!-- Generated by graphviz version 8.1.0 (20230707.0739)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="490pt" height="65pt"
|
||||
viewBox="0.00 0.00 489.75 65.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 61.25)">
|
||||
<svg width="576pt" height="88pt"
|
||||
viewBox="0.00 0.00 576.25 87.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 83.5)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title=" ">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-38.25 0,-38.25 0,-19 37,-19 37,-38.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-24.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
<g id="a_Node000001"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-48.88 0,-48.88 0,-29.62 37,-29.62 37,-48.88"/>
|
||||
<text text-anchor="middle" x="18.5" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a115ff5c548b429b737ea09f75817d1f9" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="199.25,-57.25 73,-57.25 73,-38 199.25,-38 199.25,-57.25"/>
|
||||
<text text-anchor="middle" x="136.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum_range</text>
|
||||
<g id="a_Node000002"><a xlink:href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self-test implementations.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-48.88 73,-48.88 73,-29.62 110.75,-29.62 110.75,-48.88"/>
|
||||
<text text-anchor="middle" x="91.88" y="-35.38" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -30,35 +30,18 @@
|
||||
<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="M37.31,-31.55C44.54,-32.74 53.4,-34.2 62.81,-35.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.17,-39.35 72.61,-37.52 63.31,-32.44 62.17,-39.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../dd/d91/class_fenwick_tree.html#a2e9ea4fcbe0786487f4535c1cfc7aa00" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="342.75,-19.25 235.25,-19.25 235.25,0 342.75,0 342.75,-19.25"/>
|
||||
<text text-anchor="middle" x="289" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::update</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="M37.12,-27.38C74.43,-24.74 163.01,-18.47 224.25,-14.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.25,-17.57 233.97,-13.38 223.75,-10.59 224.25,-17.57"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-39.25C44.64,-39.25 53.57,-39.25 61.98,-39.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-42.75 71.94,-39.25 61.94,-35.75 61.94,-42.75"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../dd/d91/class_fenwick_tree.html#ade1d6a3d49af9d9df33e2fb26cab1699" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="337.5,-56.25 240.5,-56.25 240.5,-37 337.5,-37 337.5,-56.25"/>
|
||||
<text text-anchor="middle" x="289" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::sum</text>
|
||||
<g id="a_Node000003"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe" target="_top" xlink:title="Returns the prefix sum in range from L to R.">
|
||||
<polygon fill="white" stroke="#666666" points="263.25,-77.5 146.75,-77.5 146.75,-47 263.25,-47 263.25,-77.5"/>
|
||||
<text text-anchor="start" x="154.75" y="-64" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="205" y="-52.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum_range</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -66,17 +49,37 @@
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.36,-47.21C209.27,-47.15 219.49,-47.08 229.32,-47.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="229.22,-50.51 239.2,-46.94 229.17,-43.51 229.22,-50.51"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M111.23,-43.05C118.39,-44.53 127.09,-46.33 136.25,-48.23"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.23,-51.8 145.73,-50.4 136.65,-44.94 135.23,-51.8"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9" target="_top" xlink:title="Updates the value of an element in original array and accordingly updates the values in BIT array.">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-30.5 299.25,-30.5 299.25,0 415.75,0 415.75,-30.5"/>
|
||||
<text text-anchor="start" x="307.25" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="357.5" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::update</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111,-37.6C146.92,-34.33 228.8,-26.88 288.15,-21.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="288.31,-24.88 297.95,-20.49 287.68,-17.91 288.31,-24.88"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../dd/d91/class_fenwick_tree.html#aaae15ea71455315e257baa11017cec10" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="481.75,-37.25 378.75,-37.25 378.75,-18 481.75,-18 481.75,-37.25"/>
|
||||
<text text-anchor="middle" x="430.25" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">FenwickTree::offset</text>
|
||||
<g id="a_Node000004"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd" target="_top" xlink:title="Returns the sum of elements in range from 0 to ID.">
|
||||
<polygon fill="white" stroke="#666666" points="415.75,-79.5 299.25,-79.5 299.25,-49 415.75,-49 415.75,-79.5"/>
|
||||
<text text-anchor="start" x="307.25" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="357.5" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::sum</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -84,17 +87,36 @@
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M337.92,-40.09C347.51,-38.78 357.71,-37.39 367.69,-36.02"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.95,-39.38 377.39,-34.56 367.01,-32.45 367.95,-39.38"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M263.33,-63.01C271.41,-63.12 279.79,-63.23 288.06,-63.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.79,-66.85 297.83,-63.48 287.88,-59.85 287.79,-66.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node4 -->
|
||||
<g id="edge5_Node000005_Node000004" class="edge">
|
||||
<title>Node5->Node4</title>
|
||||
<g id="a_edge5_Node000005_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.04,-16.48C351.16,-17.53 359.61,-18.62 367.89,-19.69"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.29,-23.27 377.65,-21.08 368.18,-16.33 367.29,-23.27"/>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801" target="_top" xlink:title="Returns the highest power of two which is not more than x.">
|
||||
<polygon fill="white" stroke="#666666" points="568.25,-54.5 451.75,-54.5 451.75,-24 568.25,-24 568.25,-54.5"/>
|
||||
<text text-anchor="start" x="459.75" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">range_queries::fenwick</text>
|
||||
<text text-anchor="middle" x="510" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">_tree::offset</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<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="M415.83,-54.73C423.91,-53.38 432.29,-51.99 440.56,-50.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="441.04,-53.92 450.33,-48.83 439.9,-47.02 441.04,-53.92"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge6_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge6_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.83,-24.39C423.91,-25.68 432.29,-27.02 440.56,-28.34"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.91,-31.94 450.33,-30.05 441.01,-25.02 439.91,-31.94"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 6.2 KiB |
Reference in New Issue
Block a user