<p>This is very inefficient, as it requires enumerating all members of G. The images package produces a function MinimalImage, which performs this same operation more efficiently.</p>
<p>The most common use of MinimalImage is to categorise objects into equivalence classes. This next example shows [2,3,5,7] and [1,6,7,8] are in the same orbit, while [3,5,7,8] is in a different orbit.</p>
<p>In this situation, we do not really need the minimal image, just a method of telling if two sets are in the same equivalence class.</p>
<p>Motivated by this, this package provides CanonicalImage. CanonicalImage(G,O,A) returns some image of O by an element of G under the action A, guaranteeing that if two objects O1 and O2 are in the same orbit of G then CanonicalImage(G,O1,A) = CanonicalImage(G,O2,A). However, the canonical image is not "minimal" under any sensible ordering. The advantage of CanonicalImage is that it is much faster than MinimalImage, often by orders of magnitude.</p>
<p><strong class="button">WARNING:</strong> The value of MinimalImage will remain identical between versions of GAP and the Images package, unless bugs are discovered. This is NOT true for CanonicalImage.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsMinimalImageLessThan</code>( <var class="Arg">G</var>, <var class="Arg">A</var>, <var class="Arg">B</var>[, <var class="Arg">act</var>][, <var class="Arg">config</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">IsMinimalImageLessThan</code> checks if the minimal image of <var class="Arg">A</var> under the group <var class="Arg">G</var> is smaller than <var class="Arg">B</var>.</p>
<p>It returns MinImage.Smaller, MinImage.Equal or MinImage.Larger, if the minimal image of <var class="Arg">A</var> is smaller, equal or larger than <var class="Arg">B</var>.</p>
<p>The option <var class="Arg">Config</var> defines a number of advanced configuration options, which are described in 'ImagesAdvancedConfig'.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ CanonicalImage</code>( <var class="Arg">G</var>[, <var class="Arg">pnt</var>][, <var class="Arg">act</var>][, <var class="Arg">Config</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ IsCanonicalImage</code>( <var class="Arg">G</var>[, <var class="Arg">pnt</var>][, <var class="Arg">act</var>][, <var class="Arg">Config</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ CanonicalImagePerm</code>( <var class="Arg">G</var>[, <var class="Arg">pnt</var>][, <var class="Arg">act</var>][, <var class="Arg">Config</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">CanonicalImage</code> returns a canonical image of <var class="Arg">pnt</var> under the group <var class="Arg">G</var>. <code class="func">IsCanonicalImage</code> returns a boolean which is <code class="keyw">true</code> if <code class="func">CanonicalImage</code> would return <var class="Arg">pnt</var> (so the value is it's own minimal image).
<p><code class="func">CanonicalImagePerm</code> returns the permutation which maps <var class="Arg">pnt</var> to its minimal image.</p>
<p>By default, these functions use the fastest algorithm for calculating canonical images, which is often changed in new versions of the package. The option <var class="Arg">Config</var> defines a number of advanced configuration options, which are described in 'ImagesAdvancedConfig'. These include the ability to choose the canonicalising algorithm used.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ImagesAdvancedConfig</code></td><td class="tdright">( global variable )</td></tr></table></div>
<p>This section describes the advanced configuration options for both <code class="func">MinimalImage</code> (<a href="chap2_mj.html#X7E9EFA0E7A997586"><span class="RefLink">2.1-1</span></a>) and <code class="func">CanonicalImage</code> (<a href="chap2_mj.html#X780189E3873B7A42"><span class="RefLink">2.1-3</span></a>). Assume we have called <code class="func">MinimalImage</code> (<a href="chap2_mj.html#X7E9EFA0E7A997586"><span class="RefLink">2.1-1</span></a>) or <codeclass="func">CanonicalImage</code> (<a href="chap2_mj.html#X780189E3873B7A42"><span class="RefLink">2.1-3</span></a>) with arguments <code class="code">(<var class="Arg">G</var>,<var class="Arg">O</var>,<var class="Arg">A</var>)</code>.</p>
<dl>
<dt><strong class="Mark"><code class="code">order</code></strong></dt>
<dd><p>The search ordering used while building the image. There are many configuration options available. We shall list here just the three most useful ones. A full list is in the paper "Minimal and Canonical Images" by the authors of this package.</p>
<dl>
<dt><strong class="Mark"><code class="code">CanonicalConfig_Minimum</code></strong></dt>
<dd><p>Lexicographically smallest set -- same as using MinimalImage.</p>
</dd>
<dt><strong class="Mark"><code class="code">CanonicalConfig_FixedMinOrbit</code></strong></dt>
<dd><p>Lexicographically smallest set under the ordering of the integers given by the MinOrbitPerm function.</p>
</dd>
<dt><strong class="Mark"><code class="code">CanonicalConfig_RareRatioOrbitFixPlusMin</code></strong></dt>
<dd><p>The current best algorithm (default)</p>
</dd>
</dl>
</dd>
<dt><strong class="Mark"><code class="code">stabilizer</code></strong></dt>
<dd><p>The group <code class="code">Stabilizer(<var class="Arg">G</var>,<var class="Arg">O</var>,<var class="Arg">A</var>)</code>, or a subgroup of this group; see <code class="func">Stabilizer</code> (<a href="../../../doc/ref/chap41_mj.html#X86FB962786397E02"><span class="RefLink">Reference: Stabilizer</span></a>). If this group is large, it is more efficient to pre-calculate it. Default behaviour is to calculate the group, pass <code class="code">Group(())</code> to disable this behaviour. This is not checked, and passing an incorrect group will produce incorrect answers.</p>
</dd>
<dt><strong class="Mark"><code class="code">disableStabilizerCheck</code> (default <code class="keyw">false</code>)</strong></dt>
<dd><p>By default, during search we perform cheap checks to try to find extra elements of the stabilizer. Pass true to disable this check, this will make the algorithm MUCH slower if the stabilizer argument is a subgroup.</p>
</dd>
<dt><strong class="Mark"><code class="code">getStab</code> (default <code class="keyw">false</code>)</strong></dt>
<dd><p>Return the calculated value of <code class="code">Stabilizer(<var class="Arg">G</var>,<var class="Arg">O</var>,<var class="Arg">A</var>)</code>. This may return a subgroup rather than the whole stabilizer.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.