Documentation for f1eddf4d65

This commit is contained in:
realstealthninja
2025-07-09 10:53:16 +00:00
parent e7edde96ab
commit b41207008f
2497 changed files with 31270 additions and 40283 deletions

View File

@@ -1,11 +1,11 @@
<?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.2.1 (20241206.2353)
<!-- Generated by graphviz version 13.0.1 (20250615.1724)
-->
<!-- Title: greedy_algorithms/binary_addition.cpp Pages: 1 -->
<svg width="260pt" height="94pt"
viewBox="0.00 0.00 259.88 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
viewBox="0.00 0.00 260.00 94.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
@@ -24,8 +24,8 @@
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Adds two binary numbers and outputs resulting string.">
<polygon fill="#999999" stroke="#666666" points="194.25,-85.75 69.5,-85.75 69.5,-55.25 194.25,-55.25 194.25,-85.75"/>
<text text-anchor="start" x="77.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms/binary</text>
<text text-anchor="middle" x="131.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_addition.cpp</text>
<text xml:space="preserve" text-anchor="start" x="77.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms/binary</text>
<text xml:space="preserve" text-anchor="middle" x="131.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_addition.cpp</text>
</a>
</g>
</g>
@@ -34,7 +34,7 @@
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="55.75,-19.25 0,-19.25 0,0 55.75,0 55.75,-19.25"/>
<text text-anchor="middle" x="27.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
<text xml:space="preserve" text-anchor="middle" x="27.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
</a>
</g>
</g>
@@ -52,7 +52,7 @@
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="122,-19.25 73.75,-19.25 73.75,0 122,0 122,-19.25"/>
<text text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
<text xml:space="preserve" text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
@@ -70,7 +70,7 @@
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="193.62,-19.25 140.12,-19.25 140.12,0 193.62,0 193.62,-19.25"/>
<text text-anchor="middle" x="166.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -88,7 +88,7 @@
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="251.88,-19.25 211.88,-19.25 211.88,0 251.88,0 251.88,-19.25"/>
<text text-anchor="middle" x="231.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
<text xml:space="preserve" text-anchor="middle" x="231.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -1,11 +1,11 @@
<?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.2.1 (20241206.2353)
<!-- Generated by graphviz version 13.0.1 (20250615.1724)
-->
<!-- Title: greedy_algorithms/binary_addition.cpp Pages: 1 -->
<svg width="260pt" height="94pt"
viewBox="0.00 0.00 259.88 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
viewBox="0.00 0.00 260.00 94.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
<title>greedy_algorithms/binary_addition.cpp</title>
<!-- Node1 -->
@@ -13,8 +13,8 @@
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Adds two binary numbers and outputs resulting string.">
<polygon fill="#999999" stroke="#666666" points="194.25,-85.75 69.5,-85.75 69.5,-55.25 194.25,-55.25 194.25,-85.75"/>
<text text-anchor="start" x="77.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms/binary</text>
<text text-anchor="middle" x="131.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_addition.cpp</text>
<text xml:space="preserve" text-anchor="start" x="77.5" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">greedy_algorithms/binary</text>
<text xml:space="preserve" text-anchor="middle" x="131.88" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">_addition.cpp</text>
</a>
</g>
</g>
@@ -23,7 +23,7 @@
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="55.75,-19.25 0,-19.25 0,0 55.75,0 55.75,-19.25"/>
<text text-anchor="middle" x="27.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
<text xml:space="preserve" text-anchor="middle" x="27.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
</a>
</g>
</g>
@@ -41,7 +41,7 @@
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="122,-19.25 73.75,-19.25 73.75,0 122,0 122,-19.25"/>
<text text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
<text xml:space="preserve" text-anchor="middle" x="97.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
@@ -59,7 +59,7 @@
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="193.62,-19.25 140.12,-19.25 140.12,0 193.62,0 193.62,-19.25"/>
<text text-anchor="middle" x="166.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<text xml:space="preserve" text-anchor="middle" x="166.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -77,7 +77,7 @@
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="251.88,-19.25 211.88,-19.25 211.88,0 251.88,0 251.88,-19.25"/>
<text text-anchor="middle" x="231.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
<text xml:space="preserve" text-anchor="middle" x="231.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -1,11 +1,11 @@
<?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.2.1 (20241206.2353)
<!-- Generated by graphviz version 13.0.1 (20250615.1724)
-->
<!-- Title: math/n_bonacci.cpp Pages: 1 -->
<svg width="252pt" height="83pt"
viewBox="0.00 0.00 251.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
viewBox="0.00 0.00 252.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
@@ -24,7 +24,7 @@
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of the N&#45;bonacci series.">
<polygon fill="#999999" stroke="#666666" points="174,-74.5 70.25,-74.5 70.25,-55.25 174,-55.25 174,-74.5"/>
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/n_bonacci.cpp</text>
<text xml:space="preserve" text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/n_bonacci.cpp</text>
</a>
</g>
</g>
@@ -33,7 +33,7 @@
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
<text xml:space="preserve" text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
@@ -51,7 +51,7 @@
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
<text xml:space="preserve" text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
@@ -69,7 +69,7 @@
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<text xml:space="preserve" text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -87,7 +87,7 @@
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="243.62,-19.25 200.62,-19.25 200.62,0 243.62,0 243.62,-19.25"/>
<text text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<text xml:space="preserve" text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -1,11 +1,11 @@
<?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.2.1 (20241206.2353)
<!-- Generated by graphviz version 13.0.1 (20250615.1724)
-->
<!-- Title: math/n_bonacci.cpp Pages: 1 -->
<svg width="252pt" height="83pt"
viewBox="0.00 0.00 251.62 82.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
viewBox="0.00 0.00 252.00 83.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 78.5)">
<title>math/n_bonacci.cpp</title>
<!-- Node1 -->
@@ -13,7 +13,7 @@
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Implementation of the N&#45;bonacci series.">
<polygon fill="#999999" stroke="#666666" points="174,-74.5 70.25,-74.5 70.25,-55.25 174,-55.25 174,-74.5"/>
<text text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/n_bonacci.cpp</text>
<text xml:space="preserve" text-anchor="middle" x="122.12" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">math/n_bonacci.cpp</text>
</a>
</g>
</g>
@@ -22,7 +22,7 @@
<title>Node2</title>
<g id="a_Node000002"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="48.25,-19.25 0,-19.25 0,0 48.25,0 48.25,-19.25"/>
<text text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
<text xml:space="preserve" text-anchor="middle" x="24.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
</a>
</g>
</g>
@@ -40,7 +40,7 @@
<title>Node3</title>
<g id="a_Node000003"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 66.5,-19.25 66.5,0 111.75,0 111.75,-19.25"/>
<text text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
<text xml:space="preserve" text-anchor="middle" x="89.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cstdint</text>
</a>
</g>
</g>
@@ -58,7 +58,7 @@
<title>Node4</title>
<g id="a_Node000004"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="182.88,-19.25 129.38,-19.25 129.38,0 182.88,0 182.88,-19.25"/>
<text text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
<text xml:space="preserve" text-anchor="middle" x="156.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
</a>
</g>
</g>
@@ -76,7 +76,7 @@
<title>Node5</title>
<g id="a_Node000005"><a xlink:title=" ">
<polygon fill="#e0e0e0" stroke="#999999" points="243.62,-19.25 200.62,-19.25 200.62,0 243.62,0 243.62,-19.25"/>
<text text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
<text xml:space="preserve" text-anchor="middle" x="222.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -4,7 +4,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.13.2"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TheAlgorithms/C++: data_structures::treap::Treap Struct Reference</title>
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
@@ -19,7 +19,6 @@
<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>
@@ -60,26 +59,20 @@ window.MathJax = {
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
$(function() { codefold.init(); });
</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&amp;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 -->
@@ -94,10 +87,9 @@ $(function() {
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('d5/d95/structdata__structures_1_1treap_1_1_treap.html','../../'); initResizable(true); });
/* @license-end */
$(function(){initNavTree('d5/d95/structdata__structures_1_1treap_1_1_treap.html','../../','df/ddb/structdata__structures_1_1treap_1_1_treap-members'); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
@@ -121,10 +113,6 @@ $(function(){initNavTree('d5/d95/structdata__structures_1_1treap_1_1_treap.html'
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../df/ddb/structdata__structures_1_1treap_1_1_treap-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">data_structures::treap::Treap Struct Reference</div></div>
</div><!--header-->
<div class="contents">
@@ -134,79 +122,59 @@ $(function(){initNavTree('d5/d95/structdata__structures_1_1treap_1_1_treap.html'
<div class="dynheader">
Collaboration diagram for data_structures::treap::Treap:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/db9/structdata__structures_1_1treap_1_1_treap__coll__graph.svg" width="363" height="200"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<div class="center"><iframe scrolling="no" loading="lazy" frameborder="0" src="../../d2/db9/structdata__structures_1_1treap_1_1_treap__coll__graph.svg" width="363" height="224"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
<tr class="heading"><td colspan="2"><h2 id="header-pub-methods" class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5d200493aeaa02a269f6b6deda39a683" id="r_a5d200493aeaa02a269f6b6deda39a683"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d200493aeaa02a269f6b6deda39a683">Treap</a> ()</td></tr>
<tr class="memdesc:a5d200493aeaa02a269f6b6deda39a683"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization. <br /></td></tr>
<tr class="separator:a5d200493aeaa02a269f6b6deda39a683"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae9facaede462ad924856c4d707646d7" id="r_aae9facaede462ad924856c4d707646d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae9facaede462ad924856c4d707646d7">update</a> (int x)</td></tr>
<tr class="memdesc:aae9facaede462ad924856c4d707646d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the subtree size of the node. <br /></td></tr>
<tr class="separator:aae9facaede462ad924856c4d707646d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75a48584a6560de20484fbba6229fd29" id="r_a75a48584a6560de20484fbba6229fd29"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a75a48584a6560de20484fbba6229fd29">rotate</a> (int &amp;x, int t)</td></tr>
<tr class="memdesc:a75a48584a6560de20484fbba6229fd29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotate without breaking the property of BST. <br /></td></tr>
<tr class="separator:a75a48584a6560de20484fbba6229fd29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a023a4f0c42fb8ed5b3368fba1a5f2c" id="r_a6a023a4f0c42fb8ed5b3368fba1a5f2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a023a4f0c42fb8ed5b3368fba1a5f2c">_insert</a> (int &amp;x, int k)</td></tr>
<tr class="memdesc:a6a023a4f0c42fb8ed5b3368fba1a5f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a value into the specified subtree (internal method) <br /></td></tr>
<tr class="separator:a6a023a4f0c42fb8ed5b3368fba1a5f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb4bb0db68c7c04ef9498c88c3777887" id="r_aeb4bb0db68c7c04ef9498c88c3777887"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeb4bb0db68c7c04ef9498c88c3777887">_erase</a> (int &amp;x, int k)</td></tr>
<tr class="memdesc:aeb4bb0db68c7c04ef9498c88c3777887"><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase a value from the specified subtree (internal method) <br /></td></tr>
<tr class="separator:aeb4bb0db68c7c04ef9498c88c3777887"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad08520c0617eb8dcfcbfa90d258aa6b2" id="r_ad08520c0617eb8dcfcbfa90d258aa6b2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad08520c0617eb8dcfcbfa90d258aa6b2">_get_k_th</a> (int &amp;x, int k)</td></tr>
<tr class="memdesc:ad08520c0617eb8dcfcbfa90d258aa6b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the KTH largest value (internal method) <br /></td></tr>
<tr class="separator:ad08520c0617eb8dcfcbfa90d258aa6b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a77d22f97add119123108211c6655ec" id="r_a9a77d22f97add119123108211c6655ec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9a77d22f97add119123108211c6655ec">_get_rank</a> (int x, int k)</td></tr>
<tr class="memdesc:a9a77d22f97add119123108211c6655ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Query the rank of specified element (internal method) <br /></td></tr>
<tr class="separator:a9a77d22f97add119123108211c6655ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b9899f22070cfa01db5bf874296126" id="r_ab8b9899f22070cfa01db5bf874296126"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab8b9899f22070cfa01db5bf874296126">get_predecessor</a> (int k)</td></tr>
<tr class="memdesc:ab8b9899f22070cfa01db5bf874296126"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the predecessor node of element k. <br /></td></tr>
<tr class="separator:ab8b9899f22070cfa01db5bf874296126"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a767b28f9911fc32b8462862be058a4a4" id="r_a767b28f9911fc32b8462862be058a4a4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a767b28f9911fc32b8462862be058a4a4">get_next</a> (int k)</td></tr>
<tr class="memdesc:a767b28f9911fc32b8462862be058a4a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the successor node of element k. <br /></td></tr>
<tr class="separator:a767b28f9911fc32b8462862be058a4a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e884d2686aff501ef589b0d1185492f" id="r_a5e884d2686aff501ef589b0d1185492f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5e884d2686aff501ef589b0d1185492f">insert</a> (int k)</td></tr>
<tr class="memdesc:a5e884d2686aff501ef589b0d1185492f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert element (External method) <br /></td></tr>
<tr class="separator:a5e884d2686aff501ef589b0d1185492f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea2becd904e2e7d22f23a001b444469" id="r_a9ea2becd904e2e7d22f23a001b444469"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9ea2becd904e2e7d22f23a001b444469">erase</a> (int k)</td></tr>
<tr class="memdesc:a9ea2becd904e2e7d22f23a001b444469"><td class="mdescLeft">&#160;</td><td class="mdescRight">Erase element (External method) <br /></td></tr>
<tr class="separator:a9ea2becd904e2e7d22f23a001b444469"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2db3ad3aecc240011e0c8b8604d2c69" id="r_ab2db3ad3aecc240011e0c8b8604d2c69"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab2db3ad3aecc240011e0c8b8604d2c69">get_k_th</a> (int k)</td></tr>
<tr class="memdesc:ab2db3ad3aecc240011e0c8b8604d2c69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the KTH largest value (External method) <br /></td></tr>
<tr class="separator:ab2db3ad3aecc240011e0c8b8604d2c69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac94e9d69305940f6d8804031455af039" id="r_ac94e9d69305940f6d8804031455af039"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac94e9d69305940f6d8804031455af039">get_rank</a> (int k)</td></tr>
<tr class="memdesc:ac94e9d69305940f6d8804031455af039"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the rank of specified element (External method) <br /></td></tr>
<tr class="separator:ac94e9d69305940f6d8804031455af039"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
<tr class="heading"><td colspan="2"><h2 id="header-pub-attribs" class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a3081969b2714a8101f7df28b1ce5ed2c" id="r_a3081969b2714a8101f7df28b1ce5ed2c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3081969b2714a8101f7df28b1ce5ed2c">root</a> = 0</td></tr>
<tr class="memdesc:a3081969b2714a8101f7df28b1ce5ed2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">root of the treap <br /></td></tr>
<tr class="separator:a3081969b2714a8101f7df28b1ce5ed2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ab082fe0aa95a238bbbc68ab6a72425" id="r_a1ab082fe0aa95a238bbbc68ab6a72425"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1ab082fe0aa95a238bbbc68ab6a72425">treapCnt</a> = 0</td></tr>
<tr class="memdesc:a1ab082fe0aa95a238bbbc68ab6a72425"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total number of current nodes in the treap. <br /></td></tr>
<tr class="separator:a1ab082fe0aa95a238bbbc68ab6a72425"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32db3ba3b2630943faacd27b2ecd1b04" id="r_a32db3ba3b2630943faacd27b2ecd1b04"><td class="memItemLeft" align="right" valign="top">std::array&lt; int, <a class="el" href="../../dd/d2e/namespacedata__structures_1_1treap.html#ad939ec178d0069aeea14b7d6d7d12099">maxNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a32db3ba3b2630943faacd27b2ecd1b04">key</a> = {}</td></tr>
<tr class="memdesc:a32db3ba3b2630943faacd27b2ecd1b04"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="../../d9/d49/structdata__structures_1_1_node.html">Node</a> identifier. <br /></td></tr>
<tr class="separator:a32db3ba3b2630943faacd27b2ecd1b04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8be70f0a25e53e870e97d8d23968d723" id="r_a8be70f0a25e53e870e97d8d23968d723"><td class="memItemLeft" align="right" valign="top">std::array&lt; int, <a class="el" href="../../dd/d2e/namespacedata__structures_1_1treap.html#ad939ec178d0069aeea14b7d6d7d12099">maxNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8be70f0a25e53e870e97d8d23968d723">priority</a> = {}</td></tr>
<tr class="memdesc:a8be70f0a25e53e870e97d8d23968d723"><td class="mdescLeft">&#160;</td><td class="mdescRight">Random priority. <br /></td></tr>
<tr class="separator:a8be70f0a25e53e870e97d8d23968d723"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab99f68b79e1c4ff0f1cd6f2f0b6a545f" id="r_ab99f68b79e1c4ff0f1cd6f2f0b6a545f"><td class="memItemLeft" align="right" valign="top">std::array&lt; std::array&lt; int, 2 &gt;, <a class="el" href="../../dd/d2e/namespacedata__structures_1_1treap.html#ad939ec178d0069aeea14b7d6d7d12099">maxNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab99f68b79e1c4ff0f1cd6f2f0b6a545f">childs</a></td></tr>
<tr class="separator:ab99f68b79e1c4ff0f1cd6f2f0b6a545f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7e6c6620ab32bc96633d101245fa919" id="r_af7e6c6620ab32bc96633d101245fa919"><td class="memItemLeft" align="right" valign="top">std::array&lt; int, <a class="el" href="../../dd/d2e/namespacedata__structures_1_1treap.html#ad939ec178d0069aeea14b7d6d7d12099">maxNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af7e6c6620ab32bc96633d101245fa919">cnt</a></td></tr>
<tr class="memdesc:af7e6c6620ab32bc96633d101245fa919"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maintains the subtree size for ranking query. <br /></td></tr>
<tr class="separator:af7e6c6620ab32bc96633d101245fa919"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5f0b8263339485989f8a02ae026114c" id="r_af5f0b8263339485989f8a02ae026114c"><td class="memItemLeft" align="right" valign="top">std::array&lt; int, <a class="el" href="../../dd/d2e/namespacedata__structures_1_1treap.html#ad939ec178d0069aeea14b7d6d7d12099">maxNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af5f0b8263339485989f8a02ae026114c">size</a> = {}</td></tr>
<tr class="memdesc:af5f0b8263339485989f8a02ae026114c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of copies per node. <br /></td></tr>
<tr class="separator:af5f0b8263339485989f8a02ae026114c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Struct representation of the treap. </p>
<p class="definition">Definition at line <a class="el" href="../../d0/dd2/treap_8cpp_source.html#l00040">40</a> of file <a class="el" href="../../d0/dd2/treap_8cpp_source.html">treap.cpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
</div><a name="doc-constructors" id="doc-constructors"></a><h2 id="header-doc-constructors" class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5d200493aeaa02a269f6b6deda39a683" name="a5d200493aeaa02a269f6b6deda39a683"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d200493aeaa02a269f6b6deda39a683">&#9670;&#160;</a></span>Treap()</h2>
@@ -243,7 +211,7 @@ Public Attributes</h2></td></tr>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Member Function Documentation</h2>
<a id="aeb4bb0db68c7c04ef9498c88c3777887" name="aeb4bb0db68c7c04ef9498c88c3777887"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb4bb0db68c7c04ef9498c88c3777887">&#9670;&#160;</a></span>_erase()</h2>
@@ -809,7 +777,7 @@ Public Attributes</h2></td></tr>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a name="doc-variable-members" id="doc-variable-members"></a><h2 id="header-doc-variable-members" class="groupheader">Member Data Documentation</h2>
<a id="ab99f68b79e1c4ff0f1cd6f2f0b6a545f" name="ab99f68b79e1c4ff0f1cd6f2f0b6a545f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab99f68b79e1c4ff0f1cd6f2f0b6a545f">&#9670;&#160;</a></span>childs</h2>
@@ -950,11 +918,19 @@ Public Attributes</h2></td></tr>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- 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/d2e/namespacedata__structures_1_1treap.html">treap</a></li><li class="navelem"><a class="el" href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">Treap</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.13.2 </li>
<li class="navelem"><a href="../../d5/d3c/namespacedata__structures.html">data_structures</a></li><li class="navelem"><a href="../../dd/d2e/namespacedata__structures_1_1treap.html">treap</a></li><li class="navelem"><a href="../../d5/d95/structdata__structures_1_1treap_1_1_treap.html">Treap</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.14.0 </li>
</ul>
</div>
</body>