Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/guava/src/leon/src/   (GAP Algebra Version 4.15.1©)  Datei vom 1.1.2025 mit Größe 1 kB image not shown  

Quelle  orbit.c

  Sprache: C
 

/* File orbit.c.  Contains miscellaneous functions for orbit computations. */

#include "group.h"

#include "cstborb.h"

CHECK( orbit)

/* Bug fix for Waterloo C (IBM 370). */
#if defined(IBM_CMS_WATERLOOC) && !defined(SIGNED) && !defined(EXTRA_LARGE)
#define FIXUP1 short
#define FIXUP2 (short)
#else
#define FIXUP1 Unsigned
#define FIXUP2
#endif
FIXUP1 minimalPointOfOrbit(
   PermGroup *G,
   Unsigned level,
   Unsigned point,
   UnsignedS *minPointOfOrbit,
   UnsignedS *minPointKnown,
   UnsignedS *minPointKnownCount,
   UnsignedS *invOmega)
{
   Unsigned i, found, processed, pt, img, smallestSoFar;
   Permutation *gen, *firstGen;

   if ( minPointOfOrbit[point] != 0 )
      return FIXUP2 minPointOfOrbit[point];
   else {

      /* Construct the orbit of point. */
      firstGen = linkEssentialGensAtLevel( G, level);
      found = processed = *minPointKnownCount;
      minPointKnown[++found] = point;
      minPointOfOrbit[point] = UNKNOWN;
      smallestSoFar = point;
      while ( processed < found ) {
         pt = minPointKnown[++processed];
         for ( gen = firstGen ; gen ; gen = gen->xNext ) {
            img = gen->image[pt];
            if ( !minPointOfOrbit[img] ) {
               minPointOfOrbit[img] = UNKNOWN;
               minPointKnown[++found] = img;
               if ( invOmega[img] < invOmega[smallestSoFar] )
                  smallestSoFar = img;
            }
         }
      }

      /* Mark minimum for each element in orbit of point. */
      for ( i = *minPointKnownCount+1 ; i <= found ; ++i )
         minPointOfOrbit[minPointKnown[i]] = smallestSoFar;
      *minPointKnownCount = found;

      return  FIXUP2 smallestSoFar;
   }
}

Messung V0.5 in Prozent
C=93 H=79 G=86

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.