mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-16 11:32:44 +08:00
Documentation for 1a1570d775
This commit is contained in:
595
dd/d95/classdata__structures_1_1_segment_tree.html
Normal file
595
dd/d95/classdata__structures_1_1_segment_tree.html
Normal file
@@ -0,0 +1,595 @@
|
||||
<!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.9.6"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: data_structures::SegmentTree< T > Class Template Reference</title>
|
||||
<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>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.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/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
</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>
|
||||
<link href="../../doxygen.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="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.6 -->
|
||||
<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" 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');
|
||||
$(document).ready(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 */
|
||||
$(document).ready(function(){initNavTree('dd/d95/classdata__structures_1_1_segment_tree.html','../../'); initResizable(); });
|
||||
/* @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="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pri-methods">Private Member Functions</a> |
|
||||
<a href="#pri-attribs">Private Attributes</a> |
|
||||
<a href="../../da/dac/classdata__structures_1_1_segment_tree-members.html">List of all members</a> </div>
|
||||
<div class="headertitle"><div class="title">data_structures::SegmentTree< T > Class Template Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>class representation of the segment tree
|
||||
<a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a330724f79c5d1bdb745c29474ff3eac2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a330724f79c5d1bdb745c29474ff3eac2">SegmentTree</a> (int n)</td></tr>
|
||||
<tr class="separator:a330724f79c5d1bdb745c29474ff3eac2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad0e78179ab979ae2bc4304bdc181db17"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#ad0e78179ab979ae2bc4304bdc181db17">update</a> (int pos, T val)</td></tr>
|
||||
<tr class="memdesc:ad0e78179ab979ae2bc4304bdc181db17"><td class="mdescLeft"> </td><td class="mdescRight">Updates a value at a certain position. <br /></td></tr>
|
||||
<tr class="separator:ad0e78179ab979ae2bc4304bdc181db17"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1c5331b509d9b55bedfadf979b30dd5b"><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a1c5331b509d9b55bedfadf979b30dd5b">range_comb</a> (int l, int r)</td></tr>
|
||||
<tr class="memdesc:a1c5331b509d9b55bedfadf979b30dd5b"><td class="mdescLeft"> </td><td class="mdescRight">Returns comb across all values between l and r. <br /></td></tr>
|
||||
<tr class="separator:a1c5331b509d9b55bedfadf979b30dd5b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
|
||||
Private Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a8d22286b7be3dcbb701ac5c7d9c79841"><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841">comb</a> (T x, T y)</td></tr>
|
||||
<tr class="memdesc:a8d22286b7be3dcbb701ac5c7d9c79841"><td class="mdescLeft"> </td><td class="mdescRight">Any associative function that combines x and y. <br /></td></tr>
|
||||
<tr class="separator:a8d22286b7be3dcbb701ac5c7d9c79841"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6d3beccc936af2377c8eeb17067fd141"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141">mid</a> (int l, int r)</td></tr>
|
||||
<tr class="memdesc:a6d3beccc936af2377c8eeb17067fd141"><td class="mdescLeft"> </td><td class="mdescRight">Gives the midpoint between two integers. <br /></td></tr>
|
||||
<tr class="separator:a6d3beccc936af2377c8eeb17067fd141"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2a04f1832c5ce86def50c3021b2ab6b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1">update</a> (int i, int l, int r, int pos, T val)</td></tr>
|
||||
<tr class="memdesc:a2a04f1832c5ce86def50c3021b2ab6b1"><td class="mdescLeft"> </td><td class="mdescRight">Helper method for update method below. <br /></td></tr>
|
||||
<tr class="separator:a2a04f1832c5ce86def50c3021b2ab6b1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8fecc48e8e3f6f5f6e728495a4282e52"><td class="memItemLeft" align="right" valign="top">T </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52">range_comb</a> (int i, int l, int r, int tl, int tr)</td></tr>
|
||||
<tr class="memdesc:a8fecc48e8e3f6f5f6e728495a4282e52"><td class="mdescLeft"> </td><td class="mdescRight">Helper method for range_comb method below. <br /></td></tr>
|
||||
<tr class="separator:a8fecc48e8e3f6f5f6e728495a4282e52"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
|
||||
Private Attributes</h2></td></tr>
|
||||
<tr class="memitem:a10ffa5fc03c66170f0bc2592b843baa3"><td class="memItemLeft" align="right" valign="top"><a id="a10ffa5fc03c66170f0bc2592b843baa3" name="a10ffa5fc03c66170f0bc2592b843baa3"></a>
|
||||
const T </td><td class="memItemRight" valign="bottom"><b>ID</b> = 0</td></tr>
|
||||
<tr class="memdesc:a10ffa5fc03c66170f0bc2592b843baa3"><td class="mdescLeft"> </td><td class="mdescRight">Comb(ID, x) = x. <br /></td></tr>
|
||||
<tr class="separator:a10ffa5fc03c66170f0bc2592b843baa3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a735d072a603f3abb7c03818440575258"><td class="memItemLeft" align="right" valign="top"><a id="a735d072a603f3abb7c03818440575258" name="a735d072a603f3abb7c03818440575258"></a>
|
||||
<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< T > </td><td class="memItemRight" valign="bottom"><b>t</b></td></tr>
|
||||
<tr class="memdesc:a735d072a603f3abb7c03818440575258"><td class="mdescLeft"> </td><td class="mdescRight">Vector to represent the tree. <br /></td></tr>
|
||||
<tr class="separator:a735d072a603f3abb7c03818440575258"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a167fd91b68048e49e97859a8947690f3"><td class="memItemLeft" align="right" valign="top"><a id="a167fd91b68048e49e97859a8947690f3" name="a167fd91b68048e49e97859a8947690f3"></a>
|
||||
int </td><td class="memItemRight" valign="bottom"><b>size</b> = 0</td></tr>
|
||||
<tr class="memdesc:a167fd91b68048e49e97859a8947690f3"><td class="mdescLeft"> </td><td class="mdescRight">Number of elements available for querying in the tree. <br /></td></tr>
|
||||
<tr class="separator:a167fd91b68048e49e97859a8947690f3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><div class="compoundTemplParams">template<class T><br />
|
||||
class data_structures::SegmentTree< T ></div><p>class representation of the segment tree </p>
|
||||
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
||||
<table class="tparams">
|
||||
<tr><td class="paramname">T</td><td>The type of the class that goes in the datastructure </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a330724f79c5d1bdb745c29474ff3eac2" name="a330724f79c5d1bdb745c29474ff3eac2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a330724f79c5d1bdb745c29474ff3eac2">◆ </a></span>SegmentTree()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::SegmentTree </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>n</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 87</span>: <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>(n * 4, <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a10ffa5fc03c66170f0bc2592b843baa3">ID</a>), <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a167fd91b68048e49e97859a8947690f3">size</a>(n) {}</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a10ffa5fc03c66170f0bc2592b843baa3"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a10ffa5fc03c66170f0bc2592b843baa3">data_structures::SegmentTree::ID</a></div><div class="ttdeci">const T ID</div><div class="ttdoc">Comb(ID, x) = x.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:32</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a167fd91b68048e49e97859a8947690f3"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a167fd91b68048e49e97859a8947690f3">data_structures::SegmentTree::size</a></div><div class="ttdeci">int size</div><div class="ttdoc">Number of elements available for querying in the tree.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:34</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a735d072a603f3abb7c03818440575258"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">data_structures::SegmentTree::t</a></div><div class="ttdeci">std::vector< T > t</div><div class="ttdoc">Vector to represent the tree.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:33</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a8d22286b7be3dcbb701ac5c7d9c79841" name="a8d22286b7be3dcbb701ac5c7d9c79841"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a8d22286b7be3dcbb701ac5c7d9c79841">◆ </a></span>comb()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">T <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::comb </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Any associative function that combines x and y. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>The first operand </td></tr>
|
||||
<tr><td class="paramname">y</td><td>The second operand </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>Some associative operation applied to these two values. In this case, I used addition </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 42</span> {</div>
|
||||
<div class="line"><span class="lineno"> 43</span> <span class="keywordflow">return</span> x + y;</div>
|
||||
<div class="line"><span class="lineno"> 44</span> }</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6d3beccc936af2377c8eeb17067fd141" name="a6d3beccc936af2377c8eeb17067fd141"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6d3beccc936af2377c8eeb17067fd141">◆ </a></span>mid()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::mid </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>l</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>r</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Gives the midpoint between two integers. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">l</td><td>The left endpoint </td></tr>
|
||||
<tr><td class="paramname">r</td><td>The right endpoint </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the middle point between them </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 51</span> {</div>
|
||||
<div class="line"><span class="lineno"> 52</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a> + (r - <a class="code hl_function" href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">l</a>) / 2;</div>
|
||||
<div class="line"><span class="lineno"> 53</span> }</div>
|
||||
<div class="ttc" id="acomposite__simpson__rule_8cpp_html_a6d8df83a6f26ce24a75d3b358b7f5b8a"><div class="ttname"><a href="../../d4/d18/composite__simpson__rule_8cpp.html#a6d8df83a6f26ce24a75d3b358b7f5b8a">numerical_methods::simpson_method::l</a></div><div class="ttdeci">double l(double x)</div><div class="ttdoc">Another test function.</div><div class="ttdef"><b>Definition:</b> composite_simpson_rule.cpp:119</div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a8fecc48e8e3f6f5f6e728495a4282e52" name="a8fecc48e8e3f6f5f6e728495a4282e52"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a8fecc48e8e3f6f5f6e728495a4282e52">◆ </a></span>range_comb() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">T <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::range_comb </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>i</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>l</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>r</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>tl</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>tr</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Helper method for range_comb method below. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">i</td><td>The current node </td></tr>
|
||||
<tr><td class="paramname">l</td><td>The leftmost node of the current node </td></tr>
|
||||
<tr><td class="paramname">r</td><td>The rightmost node of the current node </td></tr>
|
||||
<tr><td class="paramname">tl</td><td>The left endpoint of the range </td></tr>
|
||||
<tr><td class="paramname">tr</td><td>The right endpoint of the range </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>The comb operation applied to all values between tl and tr </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 80</span> {</div>
|
||||
<div class="line"><span class="lineno"> 81</span> <span class="keywordflow">if</span>(l == tl && r == tr) <span class="keywordflow">return</span> <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>[i];</div>
|
||||
<div class="line"><span class="lineno"> 82</span> <span class="keywordflow">if</span>(tl > tr) <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 83</span> <span class="keywordtype">int</span> m = <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141">mid</a>(l, r);</div>
|
||||
<div class="line"><span class="lineno"> 84</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841">comb</a>(<a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52">range_comb</a>(i * 2, l, m, tl, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/min.html">std::min</a>(tr, m)), <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52">range_comb</a>(i * 2 + 1, m + 1, r, <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a>(tl, m + 1), tr));</div>
|
||||
<div class="line"><span class="lineno"> 85</span> }</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a6d3beccc936af2377c8eeb17067fd141"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141">data_structures::SegmentTree::mid</a></div><div class="ttdeci">int mid(int l, int r)</div><div class="ttdoc">Gives the midpoint between two integers.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:51</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a8d22286b7be3dcbb701ac5c7d9c79841"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841">data_structures::SegmentTree::comb</a></div><div class="ttdeci">T comb(T x, T y)</div><div class="ttdoc">Any associative function that combines x and y.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:42</div></div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a8fecc48e8e3f6f5f6e728495a4282e52"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52">data_structures::SegmentTree::range_comb</a></div><div class="ttdeci">T range_comb(int i, int l, int r, int tl, int tr)</div><div class="ttdoc">Helper method for range_comb method below.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:80</div></div>
|
||||
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
|
||||
<div class="ttc" id="amin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/min.html">std::min</a></div><div class="ttdeci">T min(T... args)</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d95/classdata__structures_1_1_segment_tree_a8fecc48e8e3f6f5f6e728495a4282e52_cgraph.svg" width="402" height="216"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1c5331b509d9b55bedfadf979b30dd5b" name="a1c5331b509d9b55bedfadf979b30dd5b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1c5331b509d9b55bedfadf979b30dd5b">◆ </a></span>range_comb() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">T <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::range_comb </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>l</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>r</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns comb across all values between l and r. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">l</td><td>The left endpoint of the range </td></tr>
|
||||
<tr><td class="paramname">r</td><td>The right endpoint of the range </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>The value of the comb operations </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 102</span> {</div>
|
||||
<div class="line"><span class="lineno"> 103</span> <span class="keywordflow">return</span> <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52">range_comb</a>(1, 1, <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a167fd91b68048e49e97859a8947690f3">size</a>, l, r);</div>
|
||||
<div class="line"><span class="lineno"> 104</span> }</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d95/classdata__structures_1_1_segment_tree_a1c5331b509d9b55bedfadf979b30dd5b_cgraph.svg" width="622" height="216"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2a04f1832c5ce86def50c3021b2ab6b1" name="a2a04f1832c5ce86def50c3021b2ab6b1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2a04f1832c5ce86def50c3021b2ab6b1">◆ </a></span>update() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::update </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>i</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>l</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>r</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>pos</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>val</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Helper method for update method below. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">i</td><td>The index of the current node </td></tr>
|
||||
<tr><td class="paramname">l</td><td>The leftmost node of the current node </td></tr>
|
||||
<tr><td class="paramname">r</td><td>The rightmost node of the current node </td></tr>
|
||||
<tr><td class="paramname">pos</td><td>The position to update </td></tr>
|
||||
<tr><td class="paramname">val</td><td>The value to update it to </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 62</span> {</div>
|
||||
<div class="line"><span class="lineno"> 63</span> <span class="keywordflow">if</span>(l == r) <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>[i] = val;</div>
|
||||
<div class="line"><span class="lineno"> 64</span> <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 65</span> <span class="keywordtype">int</span> m = <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141">mid</a>(l, r);</div>
|
||||
<div class="line"><span class="lineno"> 66</span> <span class="keywordflow">if</span>(pos <= m) <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1">update</a>(i * 2, l, m, pos, val);</div>
|
||||
<div class="line"><span class="lineno"> 67</span> <span class="keywordflow">else</span> <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1">update</a>(i * 2 + 1, m + 1, r, pos, val);</div>
|
||||
<div class="line"><span class="lineno"> 68</span> <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>[i] = <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841">comb</a>(<a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>[i * 2], <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258">t</a>[i * 2 + 1]);</div>
|
||||
<div class="line"><span class="lineno"> 69</span> }</div>
|
||||
<div class="line"><span class="lineno"> 70</span> }</div>
|
||||
<div class="ttc" id="aclassdata__structures_1_1_segment_tree_html_a2a04f1832c5ce86def50c3021b2ab6b1"><div class="ttname"><a href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1">data_structures::SegmentTree::update</a></div><div class="ttdeci">void update(int i, int l, int r, int pos, T val)</div><div class="ttdoc">Helper method for update method below.</div><div class="ttdef"><b>Definition:</b> segment_tree.cpp:62</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d95/classdata__structures_1_1_segment_tree_a2a04f1832c5ce86def50c3021b2ab6b1_cgraph.svg" width="402" height="118"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad0e78179ab979ae2bc4304bdc181db17" name="ad0e78179ab979ae2bc4304bdc181db17"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad0e78179ab979ae2bc4304bdc181db17">◆ </a></span>update() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<div class="memtemplate">
|
||||
template<class T > </div>
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void <a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">data_structures::SegmentTree</a>< T >::update </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>pos</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>val</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Updates a value at a certain position. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">pos</td><td>The position to update </td></tr>
|
||||
<tr><td class="paramname">val</td><td>The value to update it to </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 93</span> {</div>
|
||||
<div class="line"><span class="lineno"> 94</span> <a class="code hl_function" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1">update</a>(1, 1, <a class="code hl_variable" href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a167fd91b68048e49e97859a8947690f3">size</a>, pos, val);</div>
|
||||
<div class="line"><span class="lineno"> 95</span> }</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d95/classdata__structures_1_1_segment_tree_ad0e78179ab979ae2bc4304bdc181db17_cgraph.svg" width="622" height="118"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>data_structures/<a class="el" href="../../de/dd1/segment__tree_8cpp.html">segment_tree.cpp</a></li>
|
||||
</ul>
|
||||
</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="../../d5/d3c/namespacedata__structures.html">data_structures</a></li><li class="navelem"><a class="el" href="../../dd/d95/classdata__structures_1_1_segment_tree.html">SegmentTree</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.6 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
12
dd/d95/classdata__structures_1_1_segment_tree.js
Normal file
12
dd/d95/classdata__structures_1_1_segment_tree.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var classdata__structures_1_1_segment_tree =
|
||||
[
|
||||
[ "comb", "dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841", null ],
|
||||
[ "mid", "dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141", null ],
|
||||
[ "range_comb", "dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52", null ],
|
||||
[ "range_comb", "dd/d95/classdata__structures_1_1_segment_tree.html#a1c5331b509d9b55bedfadf979b30dd5b", null ],
|
||||
[ "update", "dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1", null ],
|
||||
[ "update", "dd/d95/classdata__structures_1_1_segment_tree.html#ad0e78179ab979ae2bc4304bdc181db17", null ],
|
||||
[ "ID", "dd/d95/classdata__structures_1_1_segment_tree.html#a10ffa5fc03c66170f0bc2592b843baa3", null ],
|
||||
[ "size", "dd/d95/classdata__structures_1_1_segment_tree.html#a167fd91b68048e49e97859a8947690f3", null ],
|
||||
[ "t", "dd/d95/classdata__structures_1_1_segment_tree.html#a735d072a603f3abb7c03818440575258", null ]
|
||||
];
|
||||
@@ -0,0 +1,8 @@
|
||||
<map id="data_structures::SegmentTree::range_comb" name="data_structures::SegmentTree::range_comb">
|
||||
<area shape="rect" id="node1" title="Returns comb across all values between l and r." alt="" coords="5,92,177,133"/>
|
||||
<area shape="rect" id="node2" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52" title="Helper method for range_comb method below." alt="" coords="225,92,396,133"/>
|
||||
<area shape="rect" id="node3" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" title="Any associative function that combines x and y." alt="" coords="444,5,615,46"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="494,70,566,96"/>
|
||||
<area shape="rect" id="node5" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" title="Gives the midpoint between two integers." alt="" coords="444,120,615,161"/>
|
||||
<area shape="rect" id="node6" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="496,185,564,211"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
d82c0315b4b887af78154de1cb5651b2
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 8.0.4 (20230421.1958)
|
||||
-->
|
||||
<!-- Title: data_structures::SegmentTree::range_comb Pages: 1 -->
|
||||
<svg width="466pt" height="162pt"
|
||||
viewBox="0.00 0.00 465.50 161.88" 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 157.88)">
|
||||
<title>data_structures::SegmentTree::range_comb</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Returns comb across all values between l and r.">
|
||||
<polygon fill="#999999" stroke="#666666" points="128.5,-88.88 0,-88.88 0,-58.38 128.5,-58.38 128.5,-88.88"/>
|
||||
<text text-anchor="start" x="8" y="-75.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="64.25" y="-64.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::range_comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8fecc48e8e3f6f5f6e728495a4282e52" target="_top" xlink:title="Helper method for range_comb method below.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-88.88 164.5,-88.88 164.5,-58.38 293,-58.38 293,-88.88"/>
|
||||
<text text-anchor="start" x="172.5" y="-75.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-64.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::range_comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-73.62C136.66,-73.62 145.03,-73.62 153.3,-73.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.1,-77.13 163.1,-73.62 153.1,-70.13 153.1,-77.13"/>
|
||||
</g>
|
||||
<!-- Node2->Node2 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>Node2->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M199.6,-89.36C193.65,-98.43 203.37,-106.88 228.75,-106.88 243.03,-106.88 252.35,-104.2 256.71,-100.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.29,-100.68 257.9,-90.36 253.34,-99.92 260.29,-100.68"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" target="_top" xlink:title="Any associative function that combines x and y.">
|
||||
<polygon fill="white" stroke="#666666" points="457.5,-153.88 329,-153.88 329,-123.38 457.5,-123.38 457.5,-153.88"/>
|
||||
<text text-anchor="start" x="337" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="393.25" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M266.88,-89.26C285.48,-97.02 308.37,-106.45 329,-114.62 332.65,-116.07 336.43,-117.55 340.24,-119.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="338.75,-122.59 349.34,-122.92 341.26,-116.06 338.75,-122.59"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="420.38,-105.25 366.12,-105.25 366.12,-86 420.38,-86 420.38,-105.25"/>
|
||||
<text text-anchor="middle" x="393.25" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M293.04,-82.19C314,-85.03 336.64,-88.1 354.99,-90.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="354.43,-94.17 364.81,-92.05 355.37,-87.24 354.43,-94.17"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" target="_top" xlink:title="Gives the midpoint between two integers.">
|
||||
<polygon fill="white" stroke="#666666" points="457.5,-67.88 329,-67.88 329,-37.38 457.5,-37.38 457.5,-67.88"/>
|
||||
<text text-anchor="start" x="337" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="393.25" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::mid</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node2->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M293.04,-65.45C301.16,-64.4 309.53,-63.32 317.8,-62.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="318.13,-65.6 327.6,-60.85 317.23,-58.66 318.13,-65.6"/>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="418.88,-19.25 367.62,-19.25 367.62,0 418.88,0 418.88,-19.25"/>
|
||||
<text text-anchor="middle" x="393.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M261.48,-57.93C280.74,-48.73 305.97,-37.26 329,-28.62 337.95,-25.27 347.78,-22.08 356.97,-19.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="357.75,-22.44 366.36,-16.27 355.78,-15.72 357.75,-22.44"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.7 KiB |
@@ -0,0 +1,5 @@
|
||||
<map id="data_structures::SegmentTree::update" name="data_structures::SegmentTree::update">
|
||||
<area shape="rect" id="node1" title="Helper method for update method below." alt="" coords="5,39,177,79"/>
|
||||
<area shape="rect" id="node2" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" title="Any associative function that combines x and y." alt="" coords="225,5,396,46"/>
|
||||
<area shape="rect" id="node3" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" title="Gives the midpoint between two integers." alt="" coords="225,71,396,111"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
4e1da4903edbfa90391f8d4de222c934
|
||||
@@ -0,0 +1,60 @@
|
||||
<?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.0.4 (20230421.1958)
|
||||
-->
|
||||
<!-- Title: data_structures::SegmentTree::update Pages: 1 -->
|
||||
<svg width="301pt" height="88pt"
|
||||
viewBox="0.00 0.00 301.00 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>data_structures::SegmentTree::update</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Helper method for update method below.">
|
||||
<polygon fill="#999999" stroke="#666666" points="128.5,-54.5 0,-54.5 0,-24 128.5,-24 128.5,-54.5"/>
|
||||
<text text-anchor="start" x="8" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="64.25" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::update</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M35.1,-54.99C29.15,-64.06 38.87,-72.5 64.25,-72.5 78.53,-72.5 87.85,-69.83 92.21,-65.88"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="95.79,-66.31 93.4,-55.99 88.84,-65.55 95.79,-66.31"/>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" target="_top" xlink:title="Any associative function that combines x and y.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-79.5 164.5,-79.5 164.5,-49 293,-49 293,-79.5"/>
|
||||
<text text-anchor="start" x="172.5" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-48.99C136.66,-50.24 145.03,-51.52 153.3,-52.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="152.68,-56.4 163.1,-54.46 153.74,-49.48 152.68,-56.4"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" target="_top" xlink:title="Gives the midpoint between two integers.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-30.5 164.5,-30.5 164.5,0 293,0 293,-30.5"/>
|
||||
<text text-anchor="start" x="172.5" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::mid</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-29.9C136.66,-28.7 145.03,-27.47 153.3,-26.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.71,-29.57 163.1,-24.65 152.69,-22.65 153.71,-29.57"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,7 @@
|
||||
<map id="data_structures::SegmentTree::range_comb" name="data_structures::SegmentTree::range_comb">
|
||||
<area shape="rect" id="node1" title="Helper method for range_comb method below." alt="" coords="5,92,177,133"/>
|
||||
<area shape="rect" id="node2" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" title="Any associative function that combines x and y." alt="" coords="225,5,396,46"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="274,70,347,96"/>
|
||||
<area shape="rect" id="node4" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" title="Gives the midpoint between two integers." alt="" coords="225,120,396,161"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="276,185,345,211"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
f9bd3d8fd42a361db24783962a315141
|
||||
@@ -0,0 +1,90 @@
|
||||
<?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.0.4 (20230421.1958)
|
||||
-->
|
||||
<!-- Title: data_structures::SegmentTree::range_comb Pages: 1 -->
|
||||
<svg width="301pt" height="162pt"
|
||||
viewBox="0.00 0.00 301.00 161.88" 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 157.88)">
|
||||
<title>data_structures::SegmentTree::range_comb</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Helper method for range_comb method below.">
|
||||
<polygon fill="#999999" stroke="#666666" points="128.5,-88.88 0,-88.88 0,-58.38 128.5,-58.38 128.5,-88.88"/>
|
||||
<text text-anchor="start" x="8" y="-75.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="64.25" y="-64.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::range_comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M35.1,-89.36C29.15,-98.43 38.87,-106.88 64.25,-106.88 78.53,-106.88 87.85,-104.2 92.21,-100.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="95.79,-100.68 93.4,-90.36 88.84,-99.92 95.79,-100.68"/>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" target="_top" xlink:title="Any associative function that combines x and y.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-153.88 164.5,-153.88 164.5,-123.38 293,-123.38 293,-153.88"/>
|
||||
<text text-anchor="start" x="172.5" y="-140.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-129.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M102.38,-89.26C120.98,-97.02 143.87,-106.45 164.5,-114.62 168.15,-116.07 171.93,-117.55 175.74,-119.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="174.25,-122.59 184.84,-122.92 176.76,-116.06 174.25,-122.59"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="255.88,-105.25 201.62,-105.25 201.62,-86 255.88,-86 255.88,-105.25"/>
|
||||
<text text-anchor="middle" x="228.75" y="-91.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-82.19C149.5,-85.03 172.14,-88.1 190.49,-90.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="189.93,-94.17 200.31,-92.05 190.87,-87.24 189.93,-94.17"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" target="_top" xlink:title="Gives the midpoint between two integers.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-67.88 164.5,-67.88 164.5,-37.38 293,-37.38 293,-67.88"/>
|
||||
<text text-anchor="start" x="172.5" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::mid</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-65.45C136.66,-64.4 145.03,-63.32 153.3,-62.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.63,-65.6 163.1,-60.85 152.73,-58.66 153.63,-65.6"/>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="254.38,-19.25 203.12,-19.25 203.12,0 254.38,0 254.38,-19.25"/>
|
||||
<text text-anchor="middle" x="228.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M96.98,-57.93C116.24,-48.73 141.47,-37.26 164.5,-28.62 173.45,-25.27 183.28,-22.08 192.47,-19.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="193.25,-22.44 201.86,-16.27 191.28,-15.72 193.25,-22.44"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
@@ -0,0 +1,6 @@
|
||||
<map id="data_structures::SegmentTree::update" name="data_structures::SegmentTree::update">
|
||||
<area shape="rect" id="node1" title="Updates a value at a certain position." alt="" coords="5,39,177,79"/>
|
||||
<area shape="rect" id="node2" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1" title="Helper method for update method below." alt="" coords="225,39,396,79"/>
|
||||
<area shape="rect" id="node3" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" title="Any associative function that combines x and y." alt="" coords="444,5,615,46"/>
|
||||
<area shape="rect" id="node4" href="$dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" title="Gives the midpoint between two integers." alt="" coords="444,71,615,111"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
76408c2272e5803f98de5f022e2e0926
|
||||
@@ -0,0 +1,76 @@
|
||||
<?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.0.4 (20230421.1958)
|
||||
-->
|
||||
<!-- Title: data_structures::SegmentTree::update Pages: 1 -->
|
||||
<svg width="466pt" height="88pt"
|
||||
viewBox="0.00 0.00 465.50 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>data_structures::SegmentTree::update</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="Updates a value at a certain position.">
|
||||
<polygon fill="#999999" stroke="#666666" points="128.5,-54.5 0,-54.5 0,-24 128.5,-24 128.5,-54.5"/>
|
||||
<text text-anchor="start" x="8" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="64.25" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::update</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a2a04f1832c5ce86def50c3021b2ab6b1" target="_top" xlink:title="Helper method for update method below.">
|
||||
<polygon fill="white" stroke="#666666" points="293,-54.5 164.5,-54.5 164.5,-24 293,-24 293,-54.5"/>
|
||||
<text text-anchor="start" x="172.5" y="-41" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="228.75" y="-29.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::update</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M128.54,-39.25C136.66,-39.25 145.03,-39.25 153.3,-39.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.1,-42.75 163.1,-39.25 153.1,-35.75 153.1,-42.75"/>
|
||||
</g>
|
||||
<!-- Node2->Node2 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node2->Node2</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M199.6,-54.99C193.65,-64.06 203.37,-72.5 228.75,-72.5 243.03,-72.5 252.35,-69.83 256.71,-65.88"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="260.29,-66.31 257.9,-55.99 253.34,-65.55 260.29,-66.31"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a8d22286b7be3dcbb701ac5c7d9c79841" target="_top" xlink:title="Any associative function that combines x and y.">
|
||||
<polygon fill="white" stroke="#666666" points="457.5,-79.5 329,-79.5 329,-49 457.5,-49 457.5,-79.5"/>
|
||||
<text text-anchor="start" x="337" y="-66" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="393.25" y="-54.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::comb</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M293.04,-48.99C301.16,-50.24 309.53,-51.52 317.8,-52.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="317.18,-56.4 327.6,-54.46 318.24,-49.48 317.18,-56.4"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:href="../../dd/d95/classdata__structures_1_1_segment_tree.html#a6d3beccc936af2377c8eeb17067fd141" target="_top" xlink:title="Gives the midpoint between two integers.">
|
||||
<polygon fill="white" stroke="#666666" points="457.5,-30.5 329,-30.5 329,0 457.5,0 457.5,-30.5"/>
|
||||
<text text-anchor="start" x="337" y="-17" font-family="Helvetica,sans-Serif" font-size="10.00">data_structures::Segment</text>
|
||||
<text text-anchor="middle" x="393.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">Tree::mid</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<path fill="none" stroke="#63b8ff" d="M293.04,-29.9C301.16,-28.7 309.53,-27.47 317.8,-26.25"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="318.21,-29.57 327.6,-24.65 317.19,-22.65 318.21,-29.57"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.1 KiB |
Reference in New Issue
Block a user