mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-17 12:02:22 +08:00
Documentation for 2dadbf73f4
This commit is contained in:
@@ -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 Namespace 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&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&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&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('db/dc0/namespacebacktracking.html','../../'); initResizable(); });
|
||||
$(function(){initNavTree('db/dc0/namespacebacktracking.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
@@ -105,7 +107,7 @@ $(document).ready(function(){initNavTree('db/dc0/namespacebacktracking.html','..
|
||||
<div class="contents">
|
||||
|
||||
<p>for vector container
|
||||
<a href="../../db/dc0/namespacebacktracking.html#details">More...</a></p>
|
||||
<a href="#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
@@ -116,7 +118,7 @@ Classes</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<size_t T> </td></tr>
|
||||
<tr class="memitem:a78540bcb5ef3473b2348cbc34748ec50"><td class="memTemplItemLeft" align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../db/dc0/namespacebacktracking.html#a78540bcb5ef3473b2348cbc34748ec50">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>< int, T > &scores, double height)</td></tr>
|
||||
<tr class="memitem:a78540bcb5ef3473b2348cbc34748ec50"><td class="memTemplItemLeft" align="right" valign="top">int </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a78540bcb5ef3473b2348cbc34748ec50">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>< int, T > &scores, double <a class="el" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>)</td></tr>
|
||||
<tr class="memdesc:a78540bcb5ef3473b2348cbc34748ec50"><td class="mdescLeft"> </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"> </td></tr>
|
||||
</table>
|
||||
@@ -155,37 +157,27 @@ template<size_t T> </div>
|
||||
<tr>
|
||||
<td class="memname">int backtracking::minimax </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>depth</em>, </td>
|
||||
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>depth</em>, </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>node_index</em>, </td>
|
||||
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>node_index</em>, </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>is_max</em>, </td>
|
||||
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>is_max</em>, </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>< int, T > & </td>
|
||||
<td class="paramname"><em>scores</em>, </td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>< int, T > &</td> <td class="paramname"><span class="paramname"><em>scores</em>, </span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">double </td>
|
||||
<td class="paramname"><em>height</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
<td class="paramtype">double</td> <td class="paramname"><span class="paramname"><em>height</em></span> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
@@ -203,21 +195,22 @@ template<size_t T> </div>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the maximum or minimum number </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 40</span> {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> <span class="keywordflow">if</span> (depth == height) {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> <span class="keywordflow">if</span> (depth == <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>) {</div>
|
||||
<div class="line"><span class="lineno"> 42</span> <span class="keywordflow">return</span> scores[node_index];</div>
|
||||
<div class="line"><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><span class="lineno"> 45</span> <span class="keywordtype">int</span> v1 = minimax(depth + 1, node_index * 2, !is_max, scores, height);</div>
|
||||
<div class="line"><span class="lineno"> 46</span> <span class="keywordtype">int</span> v2 = minimax(depth + 1, node_index * 2 + 1, !is_max, scores, height);</div>
|
||||
<div class="line"><span class="lineno"> 45</span> <span class="keywordtype">int</span> v1 = minimax(depth + 1, node_index * 2, !is_max, scores, <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>);</div>
|
||||
<div class="line"><span class="lineno"> 46</span> <span class="keywordtype">int</span> v2 = minimax(depth + 1, node_index * 2 + 1, !is_max, scores, <a class="code hl_function" href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83">height</a>);</div>
|
||||
<div class="line"><span class="lineno"> 47</span> </div>
|
||||
<div class="line"><span class="lineno"> 48</span> <span class="keywordflow">return</span> is_max ? <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a>(v1, v2) : <a class="code hl_namespace" href="../../d8/dcc/namespacestd.html">std</a>::min(v1, v2);</div>
|
||||
<div class="line"><span class="lineno"> 49</span>}</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="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="anamespacestd_html"><div class="ttname"><a href="../../d8/dcc/namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</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="../../db/dc0/namespacebacktracking_a78540bcb5ef3473b2348cbc34748ec50_cgraph.svg" width="284" height="86"><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="../../db/dc0/namespacebacktracking_a78540bcb5ef3473b2348cbc34748ec50_cgraph.svg" width="400" height="162"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -228,7 +221,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="../../db/dc0/namespacebacktracking.html">backtracking</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>
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
<map id="backtracking::minimax" name="backtracking::minimax">
|
||||
<area shape="rect" id="Node000001" title="Check which is the maximum/minimum number in the array." alt="" coords="5,31,158,56"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000001" title=" " alt="" coords="54,32,49,22,52,12,63,6,82,4,101,7,111,13,109,18,99,12,81,9,65,11,56,16,54,21,59,29"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="206,5,278,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="158,29,190,24,191,29,158,34"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="208,55,276,80"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="158,52,193,58,192,63,158,58"/>
|
||||
<area shape="rect" id="Node000001" title="Check which is the maximum/minimum number in the array." alt="" coords="5,80,158,106"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000001" title=" " alt="" coords="54,81,49,71,52,62,63,56,82,53,101,56,111,63,108,67,99,61,81,59,65,61,56,65,55,71,59,78"/>
|
||||
<area shape="rect" id="Node000002" href="$d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" title=" " alt="" coords="212,29,268,55"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="123,77,196,53,198,58,125,82"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="322,55,394,80"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000003" title=" " alt="" coords="158,83,306,70,307,75,158,89"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/min.html#" title=" " alt="" coords="206,131,274,156"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000004" title=" " alt="" coords="125,104,192,126,190,131,123,109"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000002" title=" " alt="" coords="219,30,215,21,217,11,226,5,240,3,255,5,263,12,259,16,252,10,240,8,228,10,222,14,220,20,224,28"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000003" title=" " alt="" coords="269,46,307,54,306,59,268,51"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6311f3ecfa6f7e53dc7849932e0a0ef8
|
||||
c8b7a04cbe2bf55b877010b7c942dac6
|
||||
@@ -4,8 +4,8 @@
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: backtracking::minimax Pages: 1 -->
|
||||
<svg width="213pt" height="64pt"
|
||||
viewBox="0.00 0.00 212.50 64.25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="300pt" height="121pt"
|
||||
viewBox="0.00 0.00 299.75 121.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,32 +16,32 @@
|
||||
]]></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 60.25)">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 117.25)">
|
||||
<title>backtracking::minimax</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Check which is the maximum/minimum number in the array.">
|
||||
<polygon fill="#999999" stroke="#666666" points="114.25,-37.25 0,-37.25 0,-18 114.25,-18 114.25,-37.25"/>
|
||||
<text text-anchor="middle" x="57.12" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="114.25,-57.25 0,-57.25 0,-38 114.25,-38 114.25,-57.25"/>
|
||||
<text text-anchor="middle" x="57.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge3_Node000001_Node000001" class="edge">
|
||||
<g id="edge6_Node000001_Node000001" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<g id="a_edge3_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.3,-37.54C29.71,-46.15 35.99,-55.25 57.12,-55.25 68.68,-55.25 75.8,-52.53 78.47,-48.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.91,-47.99 76.29,-39.01 75.08,-49.54 81.91,-47.99"/>
|
||||
<g id="a_edge6_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.53,-57.54C30.05,-66.15 36.25,-75.25 57.12,-75.25 68.54,-75.25 75.57,-72.53 78.2,-68.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.65,-68.01 76.05,-59.02 74.81,-69.54 81.65,-68.01"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="204.5,-56.25 150.25,-56.25 150.25,-37 204.5,-37 204.5,-56.25"/>
|
||||
<text text-anchor="middle" x="177.38" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
<g id="a_Node000002"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="197,-95.25 154.75,-95.25 154.75,-76 197,-76 197,-95.25"/>
|
||||
<text text-anchor="middle" x="175.88" y="-81.75" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -49,26 +49,62 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.48,-36.68C122.7,-38 130.98,-39.33 138.71,-40.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.99,-44 148.42,-42.13 139.1,-37.09 137.99,-44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.11,-57.71C106.06,-63.23 127.01,-70.05 143.96,-75.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="142.4,-78.74 152.99,-78.5 144.57,-72.08 142.4,-78.74"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="203,-19.25 151.75,-19.25 151.75,0 203,0 203,-19.25"/>
|
||||
<text text-anchor="middle" x="177.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="291.75,-76.25 237.5,-76.25 237.5,-57 291.75,-57 291.75,-76.25"/>
|
||||
<text text-anchor="middle" x="264.62" y="-62.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<g id="edge4_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.48,-19.05C123.19,-17.72 131.99,-16.38 140.1,-15.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.56,-18.62 149.92,-13.65 139.51,-11.7 140.56,-18.62"/>
|
||||
<g id="a_edge4_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.55,-52.84C149.95,-56.12 194.63,-60.25 225.8,-63.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.26,-66.59 235.54,-64.03 225.9,-59.62 225.26,-66.59"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="201.5,-19.25 150.25,-19.25 150.25,0 201.5,0 201.5,-19.25"/>
|
||||
<text text-anchor="middle" x="175.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge5_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge5_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M89.11,-37.54C104.58,-32.5 123.39,-26.38 139.44,-21.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.17,-24.6 148.59,-18.18 138,-17.95 140.17,-24.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node2 -->
|
||||
<g id="edge2_Node000002_Node000002" class="edge">
|
||||
<title>Node2->Node2</title>
|
||||
<g id="a_edge2_Node000002_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M161.98,-95.54C155.64,-104.15 160.27,-113.25 175.88,-113.25 184.41,-113.25 189.66,-110.53 191.63,-106.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="195.12,-106.32 190.02,-97.03 188.22,-107.47 195.12,-106.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge3_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge3_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M197.43,-81.12C206,-79.25 216.24,-77 226.06,-74.85"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.79,-78.28 235.81,-72.72 225.29,-71.44 226.79,-78.28"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -4,34 +4,34 @@
|
||||
<!-- Generated by graphviz version 9.0.0 (20230911.1827)
|
||||
-->
|
||||
<!-- Title: backtracking::minimax Pages: 1 -->
|
||||
<svg width="213pt" height="64pt"
|
||||
viewBox="0.00 0.00 212.50 64.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 60.25)">
|
||||
<svg width="300pt" height="121pt"
|
||||
viewBox="0.00 0.00 299.75 121.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 117.25)">
|
||||
<title>backtracking::minimax</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Check which is the maximum/minimum number in the array.">
|
||||
<polygon fill="#999999" stroke="#666666" points="114.25,-37.25 0,-37.25 0,-18 114.25,-18 114.25,-37.25"/>
|
||||
<text text-anchor="middle" x="57.12" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="114.25,-57.25 0,-57.25 0,-38 114.25,-38 114.25,-57.25"/>
|
||||
<text text-anchor="middle" x="57.12" y="-43.75" font-family="Helvetica,sans-Serif" font-size="10.00">backtracking::minimax</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge3_Node000001_Node000001" class="edge">
|
||||
<g id="edge6_Node000001_Node000001" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<g id="a_edge3_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.3,-37.54C29.71,-46.15 35.99,-55.25 57.12,-55.25 68.68,-55.25 75.8,-52.53 78.47,-48.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.91,-47.99 76.29,-39.01 75.08,-49.54 81.91,-47.99"/>
|
||||
<g id="a_edge6_Node000001_Node000001"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.53,-57.54C30.05,-66.15 36.25,-75.25 57.12,-75.25 68.54,-75.25 75.57,-72.53 78.2,-68.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.65,-68.01 76.05,-59.02 74.81,-69.54 81.65,-68.01"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="204.5,-56.25 150.25,-56.25 150.25,-37 204.5,-37 204.5,-56.25"/>
|
||||
<text text-anchor="middle" x="177.38" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
<g id="a_Node000002"><a xlink:href="../../d8/dee/avltree_8cpp.html#ae4a66d8b0c2b0d626aea45977e358c83" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="197,-95.25 154.75,-95.25 154.75,-76 197,-76 197,-95.25"/>
|
||||
<text text-anchor="middle" x="175.88" y="-81.75" font-family="Helvetica,sans-Serif" font-size="10.00">height</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
@@ -39,26 +39,62 @@
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.48,-36.68C122.7,-38 130.98,-39.33 138.71,-40.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.99,-44 148.42,-42.13 139.1,-37.09 137.99,-44"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M89.11,-57.71C106.06,-63.23 127.01,-70.05 143.96,-75.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="142.4,-78.74 152.99,-78.5 144.57,-72.08 142.4,-78.74"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="203,-19.25 151.75,-19.25 151.75,0 203,0 203,-19.25"/>
|
||||
<text text-anchor="middle" x="177.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="291.75,-76.25 237.5,-76.25 237.5,-57 291.75,-57 291.75,-76.25"/>
|
||||
<text text-anchor="middle" x="264.62" y="-62.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<g id="edge4_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.48,-19.05C123.19,-17.72 131.99,-16.38 140.1,-15.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.56,-18.62 149.92,-13.65 139.51,-11.7 140.56,-18.62"/>
|
||||
<g id="a_edge4_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M114.55,-52.84C149.95,-56.12 194.63,-60.25 225.8,-63.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="225.26,-66.59 235.54,-64.03 225.9,-59.62 225.26,-66.59"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/min.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="201.5,-19.25 150.25,-19.25 150.25,0 201.5,0 201.5,-19.25"/>
|
||||
<text text-anchor="middle" x="175.88" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::min</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge5_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge5_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M89.11,-37.54C104.58,-32.5 123.39,-26.38 139.44,-21.16"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="140.17,-24.6 148.59,-18.18 138,-17.95 140.17,-24.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node2 -->
|
||||
<g id="edge2_Node000002_Node000002" class="edge">
|
||||
<title>Node2->Node2</title>
|
||||
<g id="a_edge2_Node000002_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M161.98,-95.54C155.64,-104.15 160.27,-113.25 175.88,-113.25 184.41,-113.25 189.66,-110.53 191.63,-106.65"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="195.12,-106.32 190.02,-97.03 188.22,-107.47 195.12,-106.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge3_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge3_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M197.43,-81.12C206,-79.25 216.24,-77 226.06,-74.85"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.79,-78.28 235.81,-72.72 225.29,-71.44 226.79,-78.28"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 4.6 KiB |
Reference in New Issue
Block a user