Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 91213ddcfbe7f54821d42c2d9e091326 > files > 2090

gap-system-packages-4.4.12-5mdv2010.0.i586.rpm

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (NumericalSgps) - Appendix B: Random functions</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
</head>
<body>


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chapA.html">A</a>  <a href="chapB.html">B</a>  <a href="chapC.html">C</a>  <a href="chapBib.html">Bib</a>  <a href="chapInd.html">Ind</a>  </div>

<div class="chlinkprevnexttop">&nbsp;<a href="chap0.html">Top of Book</a>&nbsp;  &nbsp;<a href="chapA.html">Previous Chapter</a>&nbsp;  &nbsp;<a href="chapC.html">Next Chapter</a>&nbsp;  </div>

<p><a id="X86746B487B54A2D6" name="X86746B487B54A2D6"></a></p>
<div class="ChapSects"><a href="chapB.html#X86746B487B54A2D6">B <span class="Heading">Random functions</span></a>
<div class="ContSect"><span class="nocss">&nbsp;</span><a href="chapB.html#X86746B487B54A2D6">B.1 <span class="Heading">Random functions</span></a>
<span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chapB.html#X7CC477867B00AD13">B.1-1 RandomNumericalSemigroup</a></span>
<span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chapB.html#X79E73F8787741190">B.1-2 RandomListForNS</a></span>
<span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chapB.html#X82E22E9B843DF70F">B.1-3 RandomModularNumericalSemigroup</a></span>
<span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chapB.html#X8598F10A7CD4A135">B.1-4 RandomProportionallyModularNumericalSemigroup</a></span>
<span class="ContSS"><br /><span class="nocss">&nbsp;&nbsp;</span><a href="chapB.html#X8665F6B08036AFFB">B.1-5 RandomListRepresentingSubAdditiveFunction</a></span>
</div>
</div>

<h3>B <span class="Heading">Random functions</span></h3>

<p>Here we describe some functions which allow to create several "random" objects.</p>

<p><a id="X86746B487B54A2D6" name="X86746B487B54A2D6"></a></p>

<h4>B.1 <span class="Heading">Random functions</span></h4>

<p><a id="X7CC477867B00AD13" name="X7CC477867B00AD13"></a></p>

<h5>B.1-1 RandomNumericalSemigroup</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&gt; RandomNumericalSemigroup</code>( <var class="Arg">n, m</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns a ``random" numerical semigroup with no more than <var class="Arg">n</var> generators in [1..<var class="Arg">m</var>].</p>


<table class="example">
<tr><td><pre>
gap&gt; RandomNumericalSemigroup(3,9);
&lt;Numerical semigroup with 3 generators&gt;
</pre></td></tr></table>

<p><a id="X79E73F8787741190" name="X79E73F8787741190"></a></p>

<h5>B.1-2 RandomListForNS</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&gt; RandomListForNS</code>( <var class="Arg">n, m</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns a set of length not greater than <var class="Arg">n</var> of random integers in <var class="Arg">[1..m]</var> whose GCD is 1. It is used to create "random" numerical semigroups.</p>


<table class="example">
<tr><td><pre>
gap&gt; RandomListForNS(13,79);
[ 22, 26, 29, 31, 34, 46, 53, 61, 62, 73, 76 ]
</pre></td></tr></table>

<p><a id="X82E22E9B843DF70F" name="X82E22E9B843DF70F"></a></p>

<h5>B.1-3 RandomModularNumericalSemigroup</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&gt; RandomModularNumericalSemigroup</code>( <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns a ``random" modular numerical semigroup.</p>


<table class="example">
<tr><td><pre>
gap&gt; RandomModularNumericalSemigroup(9);
&lt;Modular numerical semigroup satisfying 5x mod 6 &lt;= x &gt;
</pre></td></tr></table>

<p><a id="X8598F10A7CD4A135" name="X8598F10A7CD4A135"></a></p>

<h5>B.1-4 RandomProportionallyModularNumericalSemigroup</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&gt; RandomProportionallyModularNumericalSemigroup</code>( <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Returns a ``random" proportionally modular numerical semigroup (see <a href="chap1.html#X7DFB63A97E67C0A1"><b>1.</b></a>).</p>


<table class="example">
<tr><td><pre>
gap&gt; RandomProportionallyModularNumericalSemigroup(9);
&lt;Proportionally modular numerical semigroup satisfying 2x mod 3 &lt;= 2x &gt;
</pre></td></tr></table>

<p><a id="X8665F6B08036AFFB" name="X8665F6B08036AFFB"></a></p>

<h5>B.1-5 RandomListRepresentingSubAdditiveFunction</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&gt; RandomListRepresentingSubAdditiveFunction</code>( <var class="Arg">m, a</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>Produces a ``random" list representing a subadditive function (see <a href="chap1.html#X7DFB63A97E67C0A1"><b>1.</b></a>) which is periodic with period <var class="Arg">m</var> (or less). When possible, the images are in <var class="Arg">[a..20*a]</var>. (Otherwise, the list of possible images is enlarged.)</p>


<table class="example">
<tr><td><pre>
gap&gt; RandomListRepresentingSubAdditiveFunction(7,9);
[ 173, 114, 67, 0 ]
gap&gt; RepresentsPeriodicSubAdditiveFunction(last);
true
</pre></td></tr></table>


<div class="chlinkprevnextbot">&nbsp;<a href="chap0.html">Top of Book</a>&nbsp;  &nbsp;<a href="chapA.html">Previous Chapter</a>&nbsp;  &nbsp;<a href="chapC.html">Next Chapter</a>&nbsp;  </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chapA.html">A</a>  <a href="chapB.html">B</a>  <a href="chapC.html">C</a>  <a href="chapBib.html">Bib</a>  <a href="chapInd.html">Ind</a>  </div>

<hr />
<p class="foot">generated by <a href="http://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>