Documentation for 2dadbf73f4

This commit is contained in:
github-actions
2024-02-12 20:07:08 +00:00
parent b5b4d78981
commit a1eb9bd385
1261 changed files with 30404 additions and 29974 deletions

View File

@@ -3,16 +3,18 @@
<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.8"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: backtracking/minimax.cpp File 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>
<script type="text/javascript" src="../../clipboard.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>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
@@ -41,7 +43,7 @@ MathJax.Hub.Config({
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
@@ -53,7 +55,7 @@ var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
$(function() { init_search(); });
});
/* @license-end */
</script>
@@ -71,7 +73,7 @@ $(function() {
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('df/dfb/minimax_8cpp.html','../../'); initResizable(); });
$(function(){initNavTree('df/dfb/minimax_8cpp.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
@@ -125,10 +127,10 @@ Namespaces</h2></td></tr>
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a78540bcb5ef3473b2348cbc34748ec50" id="r_a78540bcb5ef3473b2348cbc34748ec50"><td class="memTemplParams" colspan="2">template&lt;size_t T&gt; </td></tr>
<tr class="memitem:a78540bcb5ef3473b2348cbc34748ec50"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">backtracking::minimax</a> (int depth, int node_index, bool is_max, const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; int, T &gt; &amp;scores, double height)</td></tr>
<tr class="memitem:a78540bcb5ef3473b2348cbc34748ec50"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">backtracking::minimax</a> (int depth, int node_index, bool is_max, const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt; int, T &gt; &amp;scores, double <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
<tr class="memdesc:a78540bcb5ef3473b2348cbc34748ec50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check which is the maximum/minimum number in the array. <br /></td></tr>
<tr class="separator:a78540bcb5ef3473b2348cbc34748ec50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/dfb/minimax_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
@@ -148,8 +150,7 @@ Functions</h2></td></tr>
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td class="paramtype">void</td> <td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
@@ -159,13 +160,14 @@ Functions</h2></td></tr>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<div class="fragment"><div class="line"><span class="lineno"> 56</span> {</div>
<div class="line"><span class="lineno"> 57</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array&lt;int, 8&gt;</a> scores = {90, 23, 6, 33, 21, 65, 123, 34423};</div>
<div class="line"><span class="lineno"> 58</span> <span class="keywordtype">double</span> height = log2(scores.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array/size.html">size</a>());</div>
<div class="line"><span class="lineno"> 58</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a> = log2(scores.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array/size.html">size</a>());</div>
<div class="line"><span class="lineno"> 59</span> </div>
<div class="line"><span class="lineno"> 60</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;Optimal value: &quot;</span></div>
<div class="line"><span class="lineno"> 61</span> &lt;&lt; <a class="code hl_function" href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">backtracking::minimax</a>(0, 0, <span class="keyword">true</span>, scores, height) &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 61</span> &lt;&lt; <a class="code hl_function" href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">backtracking::minimax</a>(0, 0, <span class="keyword">true</span>, scores, <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>) &lt;&lt; <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
<div class="line"><span class="lineno"> 62</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><span class="lineno"> 63</span>}</div>
<div class="ttc" id="aarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a></div></div>
<div class="ttc" id="aavltree_8cpp_html_ae4a66d8b0c2b0d626aea45977e358c83"><div class="ttname"><a href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a></div><div class="ttdeci">int height(node *root)</div><div class="ttdef"><b>Definition</b> avltree.cpp:38</div></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
<div class="ttc" id="anamespacebacktracking_html_a78540bcb5ef3473b2348cbc34748ec50"><div class="ttname"><a href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">backtracking::minimax</a></div><div class="ttdeci">int minimax(int depth, int node_index, bool is_max, const std::array&lt; int, T &gt; &amp;scores, double height)</div><div class="ttdoc">Check which is the maximum/minimum number in the array.</div><div class="ttdef"><b>Definition</b> minimax.cpp:39</div></div>
@@ -173,7 +175,7 @@ Functions</h2></td></tr>
</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="../../df/dfb/minimax_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="382" height="159"><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" frameborder="0" src="../../df/dfb/minimax_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="498" height="211"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
@@ -184,7 +186,7 @@ Here is the call graph for this function:</div>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_c11585dfcef32a26e29098facab6c144.html">backtracking</a></li><li class="navelem"><a class="el" href="../../df/dfb/minimax_8cpp.html">minimax.cpp</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </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.10.0 </li>
</ul>
</div>
</body>

View File

@@ -1,14 +1,19 @@
<map id="main" name="main">
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,79,55,104"/>
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,93,55,119"/>
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="143,5,215,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="46,76,71,58,101,40,127,29,129,34,104,45,74,62,49,80"/>
<area shape="rect" id="Node000003" href="$db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" title="Check which is the maximum/minimum number in the array." alt="" coords="103,79,255,104"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="55,89,87,89,87,94,55,94"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/array/size.html#" title=" " alt="" coords="125,128,233,154"/>
<area shape="poly" id="edge6_Node000001_Node000006" title=" " alt="" coords="56,98,104,114,121,120,119,125,102,119,54,103"/>
<area shape="poly" id="edge5_Node000003_Node000003" title=" " alt="" coords="153,80,148,70,151,61,162,54,179,52,197,55,207,61,204,66,195,60,179,57,164,59,155,64,154,70,158,77"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="303,55,375,80"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="255,77,287,73,288,78,256,83"/>
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="305,104,373,130"/>
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="256,101,290,106,289,112,255,106"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="44,91,70,70,101,48,128,34,130,39,104,52,73,74,48,95"/>
<area shape="rect" id="Node000003" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="309,68,365,94"/>
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="55,99,102,92,205,83,293,79,293,85,205,88,103,97,55,104"/>
<area shape="rect" id="Node000005" href="$db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" title="Check which is the maximum/minimum number in the array." alt="" coords="103,131,255,156"/>
<area shape="poly" id="edge5_Node000001_Node000005" title=" " alt="" coords="55,110,111,124,110,129,54,115"/>
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/array/size.html#" title=" " alt="" coords="125,180,233,206"/>
<area shape="poly" id="edge10_Node000001_Node000007" title=" " alt="" coords="45,118,71,142,104,167,113,171,111,176,101,171,67,146,41,121"/>
<area shape="poly" id="edge3_Node000003_Node000003" title=" " alt="" coords="316,69,312,59,315,50,323,44,337,41,352,44,360,51,356,55,350,49,337,47,325,49,319,53,318,59,321,67"/>
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="419,93,492,119"/>
<area shape="poly" id="edge4_Node000003_Node000004" title=" " alt="" coords="366,84,405,93,404,98,365,89"/>
<area shape="poly" id="edge6_Node000005_Node000003" title=" " alt="" coords="213,128,294,95,296,100,215,133"/>
<area shape="poly" id="edge7_Node000005_Node000004" title=" " alt="" coords="255,131,403,110,404,116,256,136"/>
<area shape="poly" id="edge9_Node000005_Node000005" title=" " alt="" coords="153,132,148,122,151,113,162,106,179,104,197,107,207,113,204,118,195,112,179,109,164,111,155,116,154,122,158,129"/>
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="303,169,371,195"/>
<area shape="poly" id="edge8_Node000005_Node000006" title=" " alt="" coords="235,154,289,168,287,173,234,160"/>
</map>

View File

@@ -1 +1 @@
da93c30b761d011adaa0883495ff7037
5733f15115d6a3b35636bada4c01d808

View File

@@ -4,8 +4,8 @@
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: main Pages: 1 -->
<svg width="286pt" height="119pt"
viewBox="0.00 0.00 285.50 119.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="373pt" height="158pt"
viewBox="0.00 0.00 372.75 158.25" 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" onload="init(evt)">
<style type="text/css"><![CDATA[
@@ -16,14 +16,14 @@
]]></style>
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
<svg id="graph" class="graph">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 115.25)">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 154.25)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-56.25 0,-56.25 0,-37 37,-37 37,-56.25"/>
<text text-anchor="middle" x="18.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#999999" stroke="#666666" points="37,-84.25 0,-84.25 0,-65 37,-65 37,-84.25"/>
<text text-anchor="middle" x="18.5" y="-70.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -31,8 +31,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="156.88,-111.25 103.38,-111.25 103.38,-92 156.88,-92 156.88,-111.25"/>
<text text-anchor="middle" x="130.12" y="-97.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
<polygon fill="white" stroke="#666666" points="156.88,-150.25 103.38,-150.25 103.38,-131 156.88,-131 156.88,-150.25"/>
<text text-anchor="middle" x="130.12" y="-136.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
@@ -40,17 +40,17 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M31.61,-56.55C42.05,-64.72 57.8,-76.14 73,-83.62 79.06,-86.61 85.72,-89.25 92.28,-91.53"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.05,-94.81 101.64,-94.55 93.19,-88.15 91.05,-94.81"/>
<path fill="none" stroke="#63b8ff" d="M30.36,-84.55C40.75,-93.69 57.15,-107.24 73,-116.62 79.16,-120.28 85.98,-123.67 92.69,-126.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.05,-129.8 101.62,-130.52 93.8,-123.36 91.05,-129.8"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" target="_top" xlink:title="Check which is the maximum/minimum number in the array.">
<polygon fill="white" stroke="#666666" points="187.25,-56.25 73,-56.25 73,-37 187.25,-37 187.25,-56.25"/>
<text text-anchor="middle" x="130.12" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
<g id="a_Node000003"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="270,-103.25 227.75,-103.25 227.75,-84 270,-84 270,-103.25"/>
<text text-anchor="middle" x="248.88" y="-89.75" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
@@ -58,35 +58,53 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.11,-46.62C44.01,-46.62 52.39,-46.62 61.25,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.15,-50.13 71.15,-46.63 61.15,-43.13 61.15,-50.13"/>
<path fill="none" stroke="#63b8ff" d="M37.26,-78.12C47.64,-80.03 61.02,-82.28 73,-83.62 122.74,-89.21 180.81,-91.75 215.94,-92.85"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.74,-96.34 225.84,-93.14 215.95,-89.35 215.74,-96.34"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/array/size.html#" xlink:title=" ">
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" target="_top" xlink:title="Check which is the maximum/minimum number in the array.">
<polygon fill="white" stroke="#666666" points="187.25,-56.25 73,-56.25 73,-37 187.25,-37 187.25,-56.25"/>
<text text-anchor="middle" x="130.12" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge5_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.11,-70.13C48.51,-67.22 63.97,-63.27 78.96,-59.44"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="79.44,-62.93 88.26,-57.06 77.71,-56.15 79.44,-62.93"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/array/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="170.75,-19.25 89.5,-19.25 89.5,0 170.75,0 170.75,-19.25"/>
<text text-anchor="middle" x="130.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::array::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge6_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.29,-40.15C47.67,-36.41 61.05,-31.66 73,-27.62 77.24,-26.19 81.67,-24.72 86.1,-23.27"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="87.14,-26.62 95.57,-20.2 84.98,-19.96 87.14,-26.62"/>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge10_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge10_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M28.43,-64.65C38.36,-54.1 55.36,-37.62 73,-27.62 75.21,-26.37 77.51,-25.2 79.88,-24.09"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.2,-27.33 89.1,-20.27 78.52,-20.87 81.2,-27.33"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node3 -->
<g id="edge5_Node000003_Node000003" class="edge">
<g id="edge3_Node000003_Node000003" class="edge">
<title>Node3&#45;&gt;Node3</title>
<g id="a_edge5_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.65,-56.54C104.68,-65.15 110.5,-74.25 130.12,-74.25 140.86,-74.25 147.46,-71.53 149.94,-67.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.4,-67.08 147.91,-58.02 146.55,-68.53 153.4,-67.08"/>
<g id="a_edge3_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.98,-103.54C228.64,-112.15 233.27,-121.25 248.88,-121.25 257.41,-121.25 262.66,-118.53 264.63,-114.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="268.12,-114.32 263.02,-105.03 261.22,-115.47 268.12,-114.32"/>
</a>
</g>
</g>
@@ -94,35 +112,62 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="277.5,-74.25 223.25,-74.25 223.25,-55 277.5,-55 277.5,-74.25"/>
<text text-anchor="middle" x="250.38" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
<polygon fill="white" stroke="#666666" points="364.75,-84.25 310.5,-84.25 310.5,-65 364.75,-65 364.75,-84.25"/>
<text text-anchor="middle" x="337.62" y="-70.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<g id="edge4_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.48,-55.2C195.7,-56.45 203.98,-57.72 211.71,-58.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="211,-62.32 221.41,-60.37 212.06,-55.4 211,-62.32"/>
<g id="a_edge4_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M270.43,-89.12C279,-87.25 289.24,-85 299.06,-82.85"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="299.79,-86.28 308.81,-80.72 298.29,-79.44 299.79,-86.28"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="276,-37.25 224.75,-37.25 224.75,-18 276,-18 276,-37.25"/>
<text text-anchor="middle" x="250.38" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
<!-- Node5&#45;&gt;Node3 -->
<g id="edge6_Node000005_Node000003" class="edge">
<title>Node5&#45;&gt;Node3</title>
<g id="a_edge6_Node000005_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M156.17,-56.71C173.98,-63.88 198.02,-73.55 217.01,-81.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.54,-84.38 226.13,-84.87 218.16,-77.89 215.54,-84.38"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4_Node000003_Node000005" class="edge">
<title>Node3&#45;&gt;Node5</title>
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.48,-37.57C196.19,-36.17 204.99,-34.76 213.1,-33.45"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="213.6,-36.92 222.92,-31.88 212.49,-30.01 213.6,-36.92"/>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge7_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge7_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.55,-54.31C222.95,-59.14 267.63,-65.22 298.8,-69.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.16,-72.92 308.54,-70.8 299.11,-65.98 298.16,-72.92"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node5 -->
<g id="edge9_Node000005_Node000005" class="edge">
<title>Node5&#45;&gt;Node5</title>
<g id="a_edge9_Node000005_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.65,-56.54C104.68,-65.15 110.5,-74.25 130.12,-74.25 140.86,-74.25 147.46,-71.53 149.94,-67.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.4,-67.08 147.91,-58.02 146.55,-68.53 153.4,-67.08"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="274.5,-27.25 223.25,-27.25 223.25,-8 274.5,-8 274.5,-27.25"/>
<text text-anchor="middle" x="248.88" y="-13.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge8_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge8_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M171.63,-36.56C184.74,-33.31 199.18,-29.72 211.94,-26.55"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="212.76,-29.95 221.62,-24.15 211.07,-23.16 212.76,-29.95"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@@ -4,16 +4,16 @@
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
-->
<!-- Title: main Pages: 1 -->
<svg width="286pt" height="119pt"
viewBox="0.00 0.00 285.50 119.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 115.25)">
<svg width="373pt" height="158pt"
viewBox="0.00 0.00 372.75 158.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 154.25)">
<title>main</title>
<!-- Node1 -->
<g id="Node000001" class="node">
<title>Node1</title>
<g id="a_Node000001"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="37,-56.25 0,-56.25 0,-37 37,-37 37,-56.25"/>
<text text-anchor="middle" x="18.5" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
<polygon fill="#999999" stroke="#666666" points="37,-84.25 0,-84.25 0,-65 37,-65 37,-84.25"/>
<text text-anchor="middle" x="18.5" y="-70.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
@@ -21,8 +21,8 @@
<g id="Node000002" class="node">
<title>Node2</title>
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="156.88,-111.25 103.38,-111.25 103.38,-92 156.88,-92 156.88,-111.25"/>
<text text-anchor="middle" x="130.12" y="-97.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
<polygon fill="white" stroke="#666666" points="156.88,-150.25 103.38,-150.25 103.38,-131 156.88,-131 156.88,-150.25"/>
<text text-anchor="middle" x="130.12" y="-136.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
</a>
</g>
</g>
@@ -30,17 +30,17 @@
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M31.61,-56.55C42.05,-64.72 57.8,-76.14 73,-83.62 79.06,-86.61 85.72,-89.25 92.28,-91.53"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.05,-94.81 101.64,-94.55 93.19,-88.15 91.05,-94.81"/>
<path fill="none" stroke="#63b8ff" d="M30.36,-84.55C40.75,-93.69 57.15,-107.24 73,-116.62 79.16,-120.28 85.98,-123.67 92.69,-126.69"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="91.05,-129.8 101.62,-130.52 93.8,-123.36 91.05,-129.8"/>
</a>
</g>
</g>
<!-- Node3 -->
<g id="Node000003" class="node">
<title>Node3</title>
<g id="a_Node000003"><a xlink:href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" target="_top" xlink:title="Check which is the maximum/minimum number in the array.">
<polygon fill="white" stroke="#666666" points="187.25,-56.25 73,-56.25 73,-37 187.25,-37 187.25,-56.25"/>
<text text-anchor="middle" x="130.12" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
<g id="a_Node000003"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="270,-103.25 227.75,-103.25 227.75,-84 270,-84 270,-103.25"/>
<text text-anchor="middle" x="248.88" y="-89.75" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
</a>
</g>
</g>
@@ -48,35 +48,53 @@
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.11,-46.62C44.01,-46.62 52.39,-46.62 61.25,-46.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.15,-50.13 71.15,-46.63 61.15,-43.13 61.15,-50.13"/>
<path fill="none" stroke="#63b8ff" d="M37.26,-78.12C47.64,-80.03 61.02,-82.28 73,-83.62 122.74,-89.21 180.81,-91.75 215.94,-92.85"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.74,-96.34 225.84,-93.14 215.95,-89.35 215.74,-96.34"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/array/size.html#" xlink:title=" ">
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a xlink:href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50" target="_top" xlink:title="Check which is the maximum/minimum number in the array.">
<polygon fill="white" stroke="#666666" points="187.25,-56.25 73,-56.25 73,-37 187.25,-37 187.25,-56.25"/>
<text text-anchor="middle" x="130.12" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node5 -->
<g id="edge5_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge5_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.11,-70.13C48.51,-67.22 63.97,-63.27 78.96,-59.44"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="79.44,-62.93 88.26,-57.06 77.71,-56.15 79.44,-62.93"/>
</a>
</g>
</g>
<!-- Node7 -->
<g id="Node000007" class="node">
<title>Node7</title>
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/array/size.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="170.75,-19.25 89.5,-19.25 89.5,0 170.75,0 170.75,-19.25"/>
<text text-anchor="middle" x="130.12" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::array::size</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge6_Node000001_Node000006" class="edge">
<title>Node1&#45;&gt;Node6</title>
<g id="a_edge6_Node000001_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.29,-40.15C47.67,-36.41 61.05,-31.66 73,-27.62 77.24,-26.19 81.67,-24.72 86.1,-23.27"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="87.14,-26.62 95.57,-20.2 84.98,-19.96 87.14,-26.62"/>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge10_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;Node7</title>
<g id="a_edge10_Node000001_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M28.43,-64.65C38.36,-54.1 55.36,-37.62 73,-27.62 75.21,-26.37 77.51,-25.2 79.88,-24.09"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.2,-27.33 89.1,-20.27 78.52,-20.87 81.2,-27.33"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node3 -->
<g id="edge5_Node000003_Node000003" class="edge">
<g id="edge3_Node000003_Node000003" class="edge">
<title>Node3&#45;&gt;Node3</title>
<g id="a_edge5_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.65,-56.54C104.68,-65.15 110.5,-74.25 130.12,-74.25 140.86,-74.25 147.46,-71.53 149.94,-67.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.4,-67.08 147.91,-58.02 146.55,-68.53 153.4,-67.08"/>
<g id="a_edge3_Node000003_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M234.98,-103.54C228.64,-112.15 233.27,-121.25 248.88,-121.25 257.41,-121.25 262.66,-118.53 264.63,-114.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="268.12,-114.32 263.02,-105.03 261.22,-115.47 268.12,-114.32"/>
</a>
</g>
</g>
@@ -84,35 +102,62 @@
<g id="Node000004" class="node">
<title>Node4</title>
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="277.5,-74.25 223.25,-74.25 223.25,-55 277.5,-55 277.5,-74.25"/>
<text text-anchor="middle" x="250.38" y="-60.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
<polygon fill="white" stroke="#666666" points="364.75,-84.25 310.5,-84.25 310.5,-65 364.75,-65 364.75,-84.25"/>
<text text-anchor="middle" x="337.62" y="-70.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<g id="edge4_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.48,-55.2C195.7,-56.45 203.98,-57.72 211.71,-58.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="211,-62.32 221.41,-60.37 212.06,-55.4 211,-62.32"/>
<g id="a_edge4_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M270.43,-89.12C279,-87.25 289.24,-85 299.06,-82.85"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="299.79,-86.28 308.81,-80.72 298.29,-79.44 299.79,-86.28"/>
</a>
</g>
</g>
<!-- Node5 -->
<g id="Node000005" class="node">
<title>Node5</title>
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="276,-37.25 224.75,-37.25 224.75,-18 276,-18 276,-37.25"/>
<text text-anchor="middle" x="250.38" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
<!-- Node5&#45;&gt;Node3 -->
<g id="edge6_Node000005_Node000003" class="edge">
<title>Node5&#45;&gt;Node3</title>
<g id="a_edge6_Node000005_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M156.17,-56.71C173.98,-63.88 198.02,-73.55 217.01,-81.2"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="215.54,-84.38 226.13,-84.87 218.16,-77.89 215.54,-84.38"/>
</a>
</g>
</g>
<!-- Node3&#45;&gt;Node5 -->
<g id="edge4_Node000003_Node000005" class="edge">
<title>Node3&#45;&gt;Node5</title>
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.48,-37.57C196.19,-36.17 204.99,-34.76 213.1,-33.45"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="213.6,-36.92 222.92,-31.88 212.49,-30.01 213.6,-36.92"/>
<!-- Node5&#45;&gt;Node4 -->
<g id="edge7_Node000005_Node000004" class="edge">
<title>Node5&#45;&gt;Node4</title>
<g id="a_edge7_Node000005_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M187.55,-54.31C222.95,-59.14 267.63,-65.22 298.8,-69.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.16,-72.92 308.54,-70.8 299.11,-65.98 298.16,-72.92"/>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node5 -->
<g id="edge9_Node000005_Node000005" class="edge">
<title>Node5&#45;&gt;Node5</title>
<g id="a_edge9_Node000005_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.65,-56.54C104.68,-65.15 110.5,-74.25 130.12,-74.25 140.86,-74.25 147.46,-71.53 149.94,-67.65"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.4,-67.08 147.91,-58.02 146.55,-68.53 153.4,-67.08"/>
</a>
</g>
</g>
<!-- Node6 -->
<g id="Node000006" class="node">
<title>Node6</title>
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
<polygon fill="white" stroke="#666666" points="274.5,-27.25 223.25,-27.25 223.25,-8 274.5,-8 274.5,-27.25"/>
<text text-anchor="middle" x="248.88" y="-13.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
</a>
</g>
</g>
<!-- Node5&#45;&gt;Node6 -->
<g id="edge8_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge8_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M171.63,-36.56C184.74,-33.31 199.18,-29.72 211.94,-26.55"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="212.76,-29.95 221.62,-24.15 211.07,-23.16 212.76,-29.95"/>
</a>
</g>
</g>

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB