mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-12 11:37:18 +08:00
Documentation for 8b1eab204b
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<!-- HTML header for doxygen 1.12.0-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
@@ -5,10 +6,15 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: range_queries/fenwick_tree.cpp File Reference</title>
|
||||
<title>TheAlgorithms/C++: range_queries/fenwick_tree.cpp File Reference</title>
|
||||
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
|
||||
<script type="text/javascript">
|
||||
DoxygenAwesomeDarkModeToggle.init()
|
||||
</script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
@@ -18,14 +24,24 @@
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
<script type="text/javascript">
|
||||
window.MathJax = {
|
||||
options: {
|
||||
ignoreHtmlClass: 'tex2jax_ignore',
|
||||
processHtmlClass: 'tex2jax_process'
|
||||
},
|
||||
loader: {
|
||||
load: ['[tex]/ams']
|
||||
},
|
||||
tex: {
|
||||
macros: {},
|
||||
packages: ['base','configmacros','ams']
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
@@ -33,10 +49,11 @@ MathJax.Hub.Config({
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
<div id="projectname">TheAlgorithms/C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
<div id="projectbrief">All the algorithms implemented in C++</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -122,7 +139,9 @@ Include dependency graph for fenwick_tree.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dc/dda/fenwick__tree_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>
|
||||
</div><table class="memberdecls">
|
||||
</div>
|
||||
<p><a href="../../d6/d2e/fenwick__tree_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<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="../../de/d0d/classrange__queries_1_1fenwick__tree.html">range_queries::fenwick_tree</a></td></tr>
|
||||
@@ -132,7 +151,7 @@ Classes</h2></td></tr>
|
||||
<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/d69/namespacerange__queries.html">range_queries</a></td></tr>
|
||||
<tr class="memdesc:dd/d69/namespacerange__queries"><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:dd/d69/namespacerange__queries"><td class="mdescLeft"> </td><td class="mdescRight">for std::vector <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>
|
||||
@@ -151,6 +170,8 @@ Functions</h2></td></tr>
|
||||
<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>
|
||||
|
||||
<p class="definition">Definition in file <a class="el" href="../../d6/d2e/fenwick__tree_8cpp_source.html">fenwick_tree.cpp</a>.</p>
|
||||
</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>
|
||||
@@ -169,17 +190,14 @@ Functions</h2></td></tr>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d6/d2e/fenwick__tree_8cpp_source.html#l00132">132</a> of file <a class="el" href="../../d6/d2e/fenwick__tree_8cpp_source.html">fenwick_tree.cpp</a>.</p>
|
||||
<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="#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="#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 class="ttc" id="afenwick__tree_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> <a href="../../d6/d2e/fenwick__tree_8cpp_source.html#l00114">fenwick_tree.cpp:114</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
|
||||
@@ -207,8 +225,10 @@ 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 class="definition">Definition at line <a class="el" href="../../d6/d2e/fenwick__tree_8cpp_source.html#l00114">114</a> of file <a class="el" href="../../d6/d2e/fenwick__tree_8cpp_source.html">fenwick_tree.cpp</a>.</p>
|
||||
<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"> 115</span> std::vector<int> 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>
|
||||
@@ -218,17 +238,10 @@ Here is the call graph for this function:</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"> 125</span> std::cout << <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"><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 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> <a href="../../d6/d2e/fenwick__tree_8cpp_source.html#l00032">fenwick_tree.cpp:32</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<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,88,45,89,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,291,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,291,24,291,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,495,41,494,46,462,41"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000004" title=" " alt="" coords="462,76,494,71,495,76,463,81"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
801f348fab4dd2587848853a07163bf5
|
||||
@@ -1,189 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: 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.24,-44.5 53.71,-46.25 62.66,-48.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.74,-51.49 72.25,-50.09 63.16,-44.64 61.74,-51.49"/>
|
||||
</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.84,-34.34 155.46,-26.91 214.78,-21.51"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.8,-25.02 224.44,-20.63 214.17,-18.05 214.8,-25.02"/>
|
||||
</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.23,-63.12 206.42,-63.23 214.5,-63.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.27,-66.83 224.32,-63.46 214.37,-59.83 214.27,-66.83"/>
|
||||
</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.73,-53.41 358.92,-52.05 367,-50.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.55,-54.17 376.84,-49.08 366.4,-47.26 367.55,-54.17"/>
|
||||
</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.73,-25.65 358.92,-26.96 367,-28.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.41,-31.7 376.84,-29.82 367.52,-24.78 366.41,-31.7"/>
|
||||
</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>
|
||||
|
Before Width: | Height: | Size: 9.2 KiB |
@@ -1,106 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: 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.24,-44.5 53.71,-46.25 62.66,-48.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.74,-51.49 72.25,-50.09 63.16,-44.64 61.74,-51.49"/>
|
||||
</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.84,-34.34 155.46,-26.91 214.78,-21.51"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.8,-25.02 224.44,-20.63 214.17,-18.05 214.8,-25.02"/>
|
||||
</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.23,-63.12 206.42,-63.23 214.5,-63.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="214.27,-66.83 224.32,-63.46 214.37,-59.83 214.27,-66.83"/>
|
||||
</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.73,-53.41 358.92,-52.05 367,-50.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="367.55,-54.17 376.84,-49.08 366.4,-47.26 367.55,-54.17"/>
|
||||
</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.73,-25.65 358.92,-26.96 367,-28.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="366.41,-31.7 376.84,-29.82 367.52,-24.78 366.41,-31.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.3 KiB |
@@ -1,14 +0,0 @@
|
||||
<map id="main" name="main">
|
||||
<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,45,187,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,389,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,592,41,592,46,559,41"/>
|
||||
<area shape="poly" id="edge6_Node000006_Node000005" title=" " alt="" coords="559,76,592,71,592,76,560,81"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
7615878d501bf0fd90c054122b1f0fad
|
||||
@@ -1,207 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main 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 = 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="viewport">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<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="../../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>
|
||||
<!-- 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="M37.14,-39.25C44.55,-39.25 53.37,-39.25 61.69,-39.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-42.75 71.43,-39.25 61.43,-35.75 61.43,-42.75"/>
|
||||
</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#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>
|
||||
<!-- 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="M111.23,-43.05C118.24,-44.5 126.71,-46.25 135.66,-48.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.74,-51.49 145.25,-50.09 136.16,-44.64 134.74,-51.49"/>
|
||||
</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.84,-34.34 228.46,-26.91 287.78,-21.51"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.8,-25.02 297.44,-20.63 287.17,-18.05 287.8,-25.02"/>
|
||||
</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#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>
|
||||
<!-- 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="M263.33,-63.01C271.23,-63.12 279.42,-63.23 287.5,-63.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.27,-66.83 297.32,-63.46 287.37,-59.83 287.27,-66.83"/>
|
||||
</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#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.73,-53.41 431.92,-52.05 440,-50.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="440.55,-54.17 449.84,-49.08 439.4,-47.26 440.55,-54.17"/>
|
||||
</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.73,-25.65 431.92,-26.96 440,-28.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.41,-31.7 449.84,-29.82 440.52,-24.78 439.41,-31.7"/>
|
||||
</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'>
|
||||
<![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>
|
||||
|
Before Width: | Height: | Size: 10 KiB |
@@ -1,124 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<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="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="../../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>
|
||||
<!-- 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="M37.14,-39.25C44.55,-39.25 53.37,-39.25 61.69,-39.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-42.75 71.43,-39.25 61.43,-35.75 61.43,-42.75"/>
|
||||
</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#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>
|
||||
<!-- 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="M111.23,-43.05C118.24,-44.5 126.71,-46.25 135.66,-48.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.74,-51.49 145.25,-50.09 136.16,-44.64 134.74,-51.49"/>
|
||||
</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.84,-34.34 228.46,-26.91 287.78,-21.51"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.8,-25.02 297.44,-20.63 287.17,-18.05 287.8,-25.02"/>
|
||||
</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#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>
|
||||
<!-- 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="M263.33,-63.01C271.23,-63.12 279.42,-63.23 287.5,-63.33"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="287.27,-66.83 297.32,-63.46 287.37,-59.83 287.27,-66.83"/>
|
||||
</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#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.73,-53.41 431.92,-52.05 440,-50.71"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="440.55,-54.17 449.84,-49.08 439.4,-47.26 440.55,-54.17"/>
|
||||
</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.73,-25.65 431.92,-26.96 440,-28.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="439.41,-31.7 449.84,-29.82 440.52,-24.78 439.41,-31.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.2 KiB |
228
d6/d2e/fenwick__tree_8cpp_source.html
Normal file
228
d6/d2e/fenwick__tree_8cpp_source.html
Normal file
@@ -0,0 +1,228 @@
|
||||
<!-- HTML header for doxygen 1.12.0-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>TheAlgorithms/C++: range_queries/fenwick_tree.cpp Source File</title>
|
||||
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
|
||||
<script type="text/javascript">
|
||||
DoxygenAwesomeDarkModeToggle.init()
|
||||
</script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.MathJax = {
|
||||
options: {
|
||||
ignoreHtmlClass: 'tex2jax_ignore',
|
||||
processHtmlClass: 'tex2jax_process'
|
||||
},
|
||||
loader: {
|
||||
load: ['[tex]/ams']
|
||||
},
|
||||
tex: {
|
||||
macros: {},
|
||||
packages: ['base','configmacros','ams']
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
|
||||
<td id="projectalign">
|
||||
<div id="projectname">TheAlgorithms/C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">All the algorithms implemented in C++</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d6/d2e/fenwick__tree_8cpp_source.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">fenwick_tree.cpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d6/d2e/fenwick__tree_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include <cassert></span> </div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include <iostream></span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include <vector></span> </div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
||||
<div class="foldopen" id="foldopen00028" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../dd/d69/namespacerange__queries.html"> 28</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../dd/d69/namespacerange__queries.html">range_queries</a> {</div>
|
||||
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html"> 32</a></span><span class="keyword">class </span><a class="code hl_class" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html">fenwick_tree</a> {</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6"> 33</a></span> <span class="keywordtype">size_t</span> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a> = 0; </div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6"> 34</a></span> std::vector<int> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>{}; </div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801"> 41</a></span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(<span class="keywordtype">int</span> x) { <span class="keywordflow">return</span> (x & (-x)); }</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
||||
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a"> 50</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a">fenwick_tree</a>(<span class="keyword">const</span> std::vector<T>& arr) : <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>(arr.size()) {</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>.assign(<a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a> + 1, 0);</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>; ++i) {</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a>(i, arr[i]);</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c"> 64</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c">fenwick_tree</a>(T x) : <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>(x) { <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>.assign(<a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a> + 1, 0); }</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
||||
<div class="foldopen" id="foldopen00075" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9"> 75</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a>(T <span class="keywordtype">id</span>, T val) {</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">id</span>++;</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> <= <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">n</a>) {</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>[id] += val;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordtype">id</span> += <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(<span class="keywordtype">id</span>);</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
||||
<div class="foldopen" id="foldopen00090" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd"> 90</a></span> <span class="keywordtype">int</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(T <span class="keywordtype">id</span>) {</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordtype">id</span>++;</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> T res = 0;</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">while</span> (<span class="keywordtype">id</span> > 0) {</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> res += <a class="code hl_variable" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">bit</a>[id];</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keywordtype">id</span> -= <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">offset</a>(<span class="keywordtype">id</span>);</div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> }</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> res;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe"> 106</a></span> <span class="keywordtype">int</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(<span class="keywordtype">int</span> l, <span class="keywordtype">int</span> r) { <span class="keywordflow">return</span> <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(r) - <a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">sum</a>(l - 1); }</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span>} <span class="comment">// namespace range_queries</span></div>
|
||||
</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
|
||||
<div class="foldopen" id="foldopen00114" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e"> 114</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d6/d2e/fenwick__tree_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>() {</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> std::vector<int> arr = {1, 2, 3, 4, 5};</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><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"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> assert(fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(0, 0) == 1);</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> assert(fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(0, 1) == 3);</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> assert(fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(0, 2) == 6);</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> assert(fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(0, 3) == 10);</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> assert(fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">sum_range</a>(0, 4) == 15);</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> fenwick_tree.<a class="code hl_function" href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">update</a>(0, 6);</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
|
||||
<div class="foldopen" id="foldopen00132" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="../../d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 132</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><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"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span>}</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> <a href="#l00032">fenwick_tree.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a0914a4b1401a7c427de91c92885724fe"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a0914a4b1401a7c427de91c92885724fe">range_queries::fenwick_tree::sum_range</a></div><div class="ttdeci">int sum_range(int l, int r)</div><div class="ttdoc">Returns the prefix sum in range from L to R.</div><div class="ttdef"><b>Definition</b> <a href="#l00106">fenwick_tree.cpp:106</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a19dea5e88bbd7683a719030623315de9"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a19dea5e88bbd7683a719030623315de9">range_queries::fenwick_tree::update</a></div><div class="ttdeci">void update(T id, T val)</div><div class="ttdoc">Updates the value of an element in original array and accordingly updates the values in BIT array.</div><div class="ttdef"><b>Definition</b> <a href="#l00075">fenwick_tree.cpp:75</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a1fa0559d987fde0044761b17b35f5abd"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a1fa0559d987fde0044761b17b35f5abd">range_queries::fenwick_tree::sum</a></div><div class="ttdeci">int sum(T id)</div><div class="ttdoc">Returns the sum of elements in range from 0 to ID.</div><div class="ttdef"><b>Definition</b> <a href="#l00090">fenwick_tree.cpp:90</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_a5ea37183524553bbf2234a36a44a4b9a"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#a5ea37183524553bbf2234a36a44a4b9a">range_queries::fenwick_tree::fenwick_tree</a></div><div class="ttdeci">fenwick_tree(const std::vector< T > &arr)</div><div class="ttdoc">Class Constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00050">fenwick_tree.cpp:50</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_ab492ebf07cab0e3c32d277ad986de801"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#ab492ebf07cab0e3c32d277ad986de801">range_queries::fenwick_tree::offset</a></div><div class="ttdeci">int offset(int x)</div><div class="ttdoc">Returns the highest power of two which is not more than x.</div><div class="ttdef"><b>Definition</b> <a href="#l00041">fenwick_tree.cpp:41</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_aef7ba885b91af093e9e514358fa0f36c"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#aef7ba885b91af093e9e514358fa0f36c">range_queries::fenwick_tree::fenwick_tree</a></div><div class="ttdeci">fenwick_tree(T x)</div><div class="ttdoc">Class Constructor.</div><div class="ttdef"><b>Definition</b> <a href="#l00064">fenwick_tree.cpp:64</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_af7b7a8c1c5724ed8683d7e28bef526e6"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af7b7a8c1c5724ed8683d7e28bef526e6">range_queries::fenwick_tree::bit</a></div><div class="ttdeci">std::vector< int > bit</div><div class="ttdoc">Array that represents Binary Indexed Tree.</div><div class="ttdef"><b>Definition</b> <a href="#l00034">fenwick_tree.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassrange__queries_1_1fenwick__tree_html_af9f543aa5976b8cc5422490b3d6250c6"><div class="ttname"><a href="../../de/d0d/classrange__queries_1_1fenwick__tree.html#af9f543aa5976b8cc5422490b3d6250c6">range_queries::fenwick_tree::n</a></div><div class="ttdeci">size_t n</div><div class="ttdoc">No. of elements present in input array.</div><div class="ttdef"><b>Definition</b> <a href="#l00033">fenwick_tree.cpp:33</a></div></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> <a href="#l00114">fenwick_tree.cpp:114</a></div></div>
|
||||
<div class="ttc" id="afenwick__tree_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../d6/d2e/fenwick__tree_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdoc">Main function.</div><div class="ttdef"><b>Definition</b> <a href="#l00132">fenwick_tree.cpp:132</a></div></div>
|
||||
<div class="ttc" id="anamespacerange__queries_html"><div class="ttname"><a href="../../dd/d69/namespacerange__queries.html">range_queries</a></div><div class="ttdoc">for std::vector</div><div class="ttdef"><b>Definition</b> <a href="#l00028">fenwick_tree.cpp:28</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_074119ce3a874b57120c49a0cc4bb5ad.html">range_queries</a></li><li class="navelem"><a class="el" href="../../d6/d2e/fenwick__tree_8cpp.html">fenwick_tree.cpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user