<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="Up" href="Strat.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Sig" rel="Chapter" href="Sig.html"> <link title="Sig_pack" rel="Chapter" href="Sig_pack.html"> <link title="Dot_ast" rel="Chapter" href="Dot_ast.html"> <link title="Util" rel="Chapter" href="Util.html"> <link title="Persistent" rel="Chapter" href="Persistent.html"> <link title="Imperative" rel="Chapter" href="Imperative.html"> <link title="Delaunay" rel="Chapter" href="Delaunay.html"> <link title="Builder" rel="Chapter" href="Builder.html"> <link title="Classic" rel="Chapter" href="Classic.html"> <link title="Rand" rel="Chapter" href="Rand.html"> <link title="Oper" rel="Chapter" href="Oper.html"> <link title="Path" rel="Chapter" href="Path.html"> <link title="Traverse" rel="Chapter" href="Traverse.html"> <link title="Coloring" rel="Chapter" href="Coloring.html"> <link title="Topological" rel="Chapter" href="Topological.html"> <link title="Components" rel="Chapter" href="Components.html"> <link title="Kruskal" rel="Chapter" href="Kruskal.html"> <link title="Flow" rel="Chapter" href="Flow.html"> <link title="Graphviz" rel="Chapter" href="Graphviz.html"> <link title="Gml" rel="Chapter" href="Gml.html"> <link title="Dot" rel="Chapter" href="Dot.html"> <link title="Pack" rel="Chapter" href="Pack.html"> <link title="Gmap" rel="Chapter" href="Gmap.html"> <link title="Minsep" rel="Chapter" href="Minsep.html"> <link title="Cliquetree" rel="Chapter" href="Cliquetree.html"> <link title="Mcs_m" rel="Chapter" href="Mcs_m.html"> <link title="Md" rel="Chapter" href="Md.html"> <link title="Strat" rel="Chapter" href="Strat.html"><title>Strat.Algo</title> </head> <body> <div class="navbar"> <a href="Strat.html">Up</a> </div> <center><h1>Functor <a href="type_Strat.Algo.html">Strat.Algo</a></h1></center> <br> <pre><span class="keyword">module</span> Algo: <div class="sig_block"><code class="code">functor (</code><code class="code">G</code><code class="code"> : </code><code class="type"><a href="Strat.G.html">G</a></code><code class="code">) -> </code><div class="sig_block"><code class="code">functor (</code><code class="code">P</code><code class="code"> : </code><code class="type"><a href="Strat.PLAYER.html">PLAYER</a></code><code class="type"> with type vertex = G.vertex</code><code class="code">) -> </code><div class="sig_block"><code class="code">functor (</code><code class="code">S</code><code class="code"> : </code><code class="type"><a href="Strat.STRAT.html">STRAT</a></code><code class="type"> with type vertex = G.vertex</code><code class="code">) -> </code><code class="code">sig</code> <a href="Strat.Algo.html">..</a> <code class="code">end</code></div></div></div></pre>Implements strategy algorithms on graphs<br> <table border="0" cellpadding="3" width="100%"> <tr> <td align="left" valign="top" width="1%%"><b>Parameters: </b></td> <td> <table class="paramstable"> <tr> <td align="center" valign="top" width="15%"> <code>G</code></td> <td align="center" valign="top">:</td> <td><code class="type"><a href="Strat.G.html">G</a></code> <tr> <td align="center" valign="top" width="15%"> <code>P</code></td> <td align="center" valign="top">:</td> <td><code class="type">PLAYER with type vertex = G.vertex</code> <tr> <td align="center" valign="top" width="15%"> <code>S</code></td> <td align="center" valign="top">:</td> <td><code class="type">STRAT with type vertex = G.vertex</code> </table> </td> </tr> </table> <hr width="100%"> <pre><span class="keyword">val</span> <a name="VALcoherent_player"></a>coherent_player : <code class="type"><a href="Strat.G.html#TYPEt">Strat.G.t</a> -> P.t -> bool</code></pre><div class="info"> <code class="code">coherent_player g p</code> returns <code class="code">true</code> iff the completion <code class="code">p</code> is coherent w.r.t. the graph g<br> </div> <pre><span class="keyword">val</span> <a name="VALcoherent_strat"></a>coherent_strat : <code class="type"><a href="Strat.G.html#TYPEt">Strat.G.t</a> -> S.t -> bool</code></pre><div class="info"> <code class="code">coherent_strat g s</code> returns <code class="code">true</code> iff the strategy <code class="code">s</code> is coherent w.r.t. the graph <code class="code">g</code><br> </div> <pre><span class="keyword">val</span> <a name="VALgame"></a>game : <code class="type"><a href="Strat.G.html#TYPEt">Strat.G.t</a> -> P.t -> S.t -> S.t -> bool</code></pre><div class="info"> <code class="code">game g p a b</code> returns <code class="code">true</code> iff <code class="code">a</code> wins in <code class="code">g</code> given the completion <code class="code">p</code> (i.e. the game goes through a final state).<br> </div> <pre><span class="keyword">val</span> <a name="VALstrategy"></a>strategy : <code class="type"><a href="Strat.G.html#TYPEt">Strat.G.t</a> -> P.t -> S.t -> bool</code></pre><div class="info"> <code class="code">strategy g p s</code> returns <code class="code">true</code> iff <code class="code">s</code> wins in <code class="code">g</code> given the completion <code class="code">p</code>, whatever strategy plays the other player.<br> </div> <pre><span class="keyword">val</span> <a name="VALstrategyA"></a>strategyA : <code class="type"><a href="Strat.G.html#TYPEt">Strat.G.t</a> -> P.t -> bool * S.t</code></pre><div class="info"> <code class="code">strategyA g p</code> returns <code class="code">true</code> iff there exists <code class="code">a</code> winning stragegy for the true player. In this case, the winning strategy is provided.<br> </div> </body></html>