Documentation for 6376bf46af
@@ -3,7 +3,7 @@
|
||||
<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.9.7"/>
|
||||
<meta name="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: range_queries/prefix_sum_array.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.7 -->
|
||||
<!-- Generated by Doxygen 1.9.8 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
@@ -118,31 +118,31 @@ Include dependency graph for prefix_sum_array.cpp:</div>
|
||||
</div><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem: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="memitem:dd/d69/namespacerange__queries" id="r_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>
|
||||
<tr class="memitem:d7/d88/namespaceprefix__sum__array"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d88/namespaceprefix__sum__array.html">prefix_sum_array</a></td></tr>
|
||||
<tr class="memitem:d7/d88/namespaceprefix__sum__array" id="r_d7/d88/namespaceprefix__sum__array"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d88/namespaceprefix__sum__array.html">prefix_sum_array</a></td></tr>
|
||||
<tr class="memdesc:d7/d88/namespaceprefix__sum__array"><td class="mdescLeft"> </td><td class="mdescRight">Range sum queries using prefix-sum-array. <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:ab36151479ad37d53ef9fcb60a274b1d9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#ab36151479ad37d53ef9fcb60a274b1d9">range_queries::prefix_sum_array::build</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< int64_t > original_array)</td></tr>
|
||||
<tr class="memitem:ab36151479ad37d53ef9fcb60a274b1d9" id="r_ab36151479ad37d53ef9fcb60a274b1d9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#ab36151479ad37d53ef9fcb60a274b1d9">range_queries::prefix_sum_array::build</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< int64_t > original_array)</td></tr>
|
||||
<tr class="memdesc:ab36151479ad37d53ef9fcb60a274b1d9"><td class="mdescLeft"> </td><td class="mdescRight">function that builds the PSA <br /></td></tr>
|
||||
<tr class="separator:ab36151479ad37d53ef9fcb60a274b1d9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7c8fd967c36dbba5fdf9c71faed604cf"><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#a7c8fd967c36dbba5fdf9c71faed604cf">range_queries::prefix_sum_array::query</a> (int64_t beg, int64_t end)</td></tr>
|
||||
<tr class="memitem:a7c8fd967c36dbba5fdf9c71faed604cf" id="r_a7c8fd967c36dbba5fdf9c71faed604cf"><td class="memItemLeft" align="right" valign="top">int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#a7c8fd967c36dbba5fdf9c71faed604cf">range_queries::prefix_sum_array::query</a> (int64_t beg, int64_t end)</td></tr>
|
||||
<tr class="memdesc:a7c8fd967c36dbba5fdf9c71faed604cf"><td class="mdescLeft"> </td><td class="mdescRight">query function <br /></td></tr>
|
||||
<tr class="separator:a7c8fd967c36dbba5fdf9c71faed604cf"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memitem:aa8dca7b867074164d5f45b0f3851269d" id="r_aa8dca7b867074164d5f45b0f3851269d"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_8cpp.html#aa8dca7b867074164d5f45b0f3851269d">test</a> ()</td></tr>
|
||||
<tr class="memdesc:aa8dca7b867074164d5f45b0f3851269d"><td class="mdescLeft"> </td><td class="mdescRight">Self-test implementations. <br /></td></tr>
|
||||
<tr class="separator:aa8dca7b867074164d5f45b0f3851269d"><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="../../d1/d9e/prefix__sum__array_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
|
||||
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d9e/prefix__sum__array_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><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
|
||||
Variables</h2></td></tr>
|
||||
<tr class="memitem:aed6103aaebcbf1a8978d1e038d22e001"><td class="memItemLeft" align="right" valign="top"><a id="aed6103aaebcbf1a8978d1e038d22e001" name="aed6103aaebcbf1a8978d1e038d22e001"></a>
|
||||
<tr class="memitem:aed6103aaebcbf1a8978d1e038d22e001" id="r_aed6103aaebcbf1a8978d1e038d22e001"><td class="memItemLeft" align="right" valign="top"><a id="aed6103aaebcbf1a8978d1e038d22e001" name="aed6103aaebcbf1a8978d1e038d22e001"></a>
|
||||
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< int64_t > </td><td class="memItemRight" valign="bottom"><b>range_queries::prefix_sum_array::PSA</b> (1, 0)</td></tr>
|
||||
<tr class="separator:aed6103aaebcbf1a8978d1e038d22e001"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
@@ -319,7 +319,7 @@ Here is the call graph for this function:</div>
|
||||
<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="../../d1/d9e/prefix__sum__array_8cpp.html">prefix_sum_array.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.9.7 </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.9.8 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<map id="range_queries::prefix_sum_array::build" name="range_queries::prefix_sum_array::build">
|
||||
<area shape="rect" id="Node000001" title="function that builds the PSA" alt="" coords="5,29,148,70"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000001" title=" " alt="" coords="39,29,37,19,43,10,57,5,77,3,98,5,111,12,109,17,97,10,76,8,58,10,47,15,43,20,44,28"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000001" title=" " alt="" coords="39,29,37,19,43,10,57,5,77,3,98,5,111,11,108,16,96,10,76,8,58,10,47,15,43,20,44,28"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="196,12,350,37"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000002" title=" " alt="" coords="148,38,181,34,181,39,149,43"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000002" title=" " alt="" coords="148,38,180,34,181,39,149,43"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="215,61,331,87"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000003" title=" " alt="" coords="149,56,201,62,200,67,148,61"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000003" title=" " alt="" coords="149,56,200,62,199,67,148,61"/>
|
||||
</map>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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)
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: range_queries::prefix_sum_array::build Pages: 1 -->
|
||||
<svg width="267pt" height="69pt"
|
||||
@@ -32,8 +32,8 @@
|
||||
<g id="edge1_Node000001_Node000001" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<g id="a_edge1_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M27.28,-43.36C21.96,-52.43 30.65,-60.88 53.38,-60.88 66.16,-60.88 74.5,-58.2 78.4,-54.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.98,-54.65 79.47,-44.36 75.01,-53.97 81.98,-54.65"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M27.28,-43.36C21.96,-52.43 30.65,-60.88 53.38,-60.88 65.8,-60.88 74.03,-58.35 78.07,-54.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.52,-55.22 79.28,-44.86 74.57,-54.35 81.52,-55.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -50,8 +50,8 @@
|
||||
<g id="edge2_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge2_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-34.54C115.23,-35.59 123.59,-36.68 131.86,-37.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="131.28,-41.35 141.65,-39.17 132.19,-34.4 131.28,-41.35"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-34.54C115.05,-35.56 123.21,-36.63 131.3,-37.69"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.78,-41.15 141.15,-38.98 131.69,-34.21 130.78,-41.15"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -68,8 +68,8 @@
|
||||
<g id="edge3_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge3_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-21.08C119.9,-19.51 133.44,-17.83 146.14,-16.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="146.55,-19.61 156.04,-14.9 145.69,-12.66 146.55,-19.61"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-21.08C119.77,-19.52 133.17,-17.86 145.76,-16.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="146.05,-19.79 155.54,-15.09 145.19,-12.84 146.05,-19.79"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -1,7 +1,7 @@
|
||||
<?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)
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: range_queries::prefix_sum_array::build Pages: 1 -->
|
||||
<svg width="267pt" height="69pt"
|
||||
@@ -22,8 +22,8 @@
|
||||
<g id="edge1_Node000001_Node000001" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<g id="a_edge1_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M27.28,-43.36C21.96,-52.43 30.65,-60.88 53.38,-60.88 66.16,-60.88 74.5,-58.2 78.4,-54.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.98,-54.65 79.47,-44.36 75.01,-53.97 81.98,-54.65"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M27.28,-43.36C21.96,-52.43 30.65,-60.88 53.38,-60.88 65.8,-60.88 74.03,-58.35 78.07,-54.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.52,-55.22 79.28,-44.86 74.57,-54.35 81.52,-55.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -40,8 +40,8 @@
|
||||
<g id="edge2_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge2_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-34.54C115.23,-35.59 123.59,-36.68 131.86,-37.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="131.28,-41.35 141.65,-39.17 132.19,-34.4 131.28,-41.35"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-34.54C115.05,-35.56 123.21,-36.63 131.3,-37.69"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="130.78,-41.15 141.15,-38.98 131.69,-34.21 130.78,-41.15"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -58,8 +58,8 @@
|
||||
<g id="edge3_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge3_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-21.08C119.9,-19.51 133.44,-17.83 146.14,-16.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="146.55,-19.61 156.04,-14.9 145.69,-12.66 146.55,-19.61"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M107.22,-21.08C119.77,-19.52 133.17,-17.86 145.76,-16.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="146.05,-19.79 155.54,-15.09 145.19,-12.84 146.05,-19.79"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,5,55,31"/>
|
||||
<area shape="rect" id="Node000002" href="$d1/d9e/prefix__sum__array_8cpp.html#aa8dca7b867074164d5f45b0f3851269d" title="Self-test implementations." alt="" coords="103,5,146,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,16,88,16,88,21,55,21"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,16,87,16,87,21,55,21"/>
|
||||
</map>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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)
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="114pt" height="27pt"
|
||||
@@ -40,8 +40,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.2,-9.62C44.67,-9.62 53.52,-9.62 61.73,-9.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-13.13 71.71,-9.62 61.71,-6.13 61.71,-13.13"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.2,-9.62C44.58,-9.62 53.31,-9.62 61.45,-9.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-13.13 71.2,-9.63 61.2,-6.13 61.2,-13.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
@@ -1,7 +1,7 @@
|
||||
<?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)
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="114pt" height="27pt"
|
||||
@@ -30,8 +30,8 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.2,-9.62C44.67,-9.62 53.52,-9.62 61.73,-9.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.71,-13.13 71.71,-9.62 61.71,-6.13 61.71,-13.13"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M37.2,-9.62C44.58,-9.62 53.31,-9.62 61.45,-9.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.2,-13.13 71.2,-9.63 61.2,-6.13 61.2,-13.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |