Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/patternclass/tst/   (GAP Algebra Version 4.15.1©)  Datei vom 30.7.2024 mit Größe 2 kB image not shown  

Quelle  chap8.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#############################################################################
##
#A  chap8.tst            PatternClass package                 Ruth Hoffmann
##
gap> START_TEST("PatternClass");
gap> LoadPackage("patternclass",false);
true
gap> SetAssertionLevel(1);
gap> IsInterval([3,6,9,2]);
false
gap> IsInterval([2,6,5,3,4]);
true
gap> IsSimplePerm([2,3,4,5,1,1,1,1]);
true
gap> IsSimplePerm([2,4,6,8,1,3,5,7]);
true
gap> IsSimplePerm([3,2,8,6,7,1,5,4]);
false
gap> IsSimplePerm([1,1,1,1]);
false
gap> OnePointDelete([5,2,3,1,2,1]);
[ [ 23121 ], [ 41221 ] ]
gap> OnePointDelete([5,2,4,1,6,3]);
[ [ 23121 ], [ 41221 ] ]
gap> OnePointDelete([2,4,6,8,1,3,5,7]);
24681357 
 ] is an exceptional permutation and needs 2 point deletion.
fail
gap> OnePointDelete([1,2,4,6,8,3,5,7]);
12468357 ] is not simple.
fail
gap> TwoPointDelete([2,4,6,8,1,3,5,7]);
[ [ 234111 ] ]
gap> TwoPointDelete([2,3,4,5,1,1,1,1]);
[ [ 234111 ] ]
gap> TwoPointDelete([7,5,3,1,8,6,4,2]);
[ [ 531321 ] ]
gap> TwoPointDelete([5,1,6,2,7,3,8,4]);
[ [ 413121 ] ]
gap> TwoPointDelete([4,8,3,7,2,6,1,5]);
[ [ 352311 ] ]
gap> TwoPointDelete([1,2,4,6,8,3,5,7]);
The input permutation is not an exceptional permutation.
fail
gap> PointDeletion([5,2,3,1,2,1]);
[ [ 23121 ], [ 41221 ] ]
gap> PointDeletion([5,2,4,1,6,3]);
[ [ 23121 ], [ 41221 ] ]
gap> PointDeletion([2,4,6,8,1,3,5,7]);
[ [ 234111 ] ]
gap> PointDeletion([2,3,4,5,1,1,1,1]);
[ [ 234111 ] ]
gap> PointDeletion([1,2,3,4,5]);
12345 ] is not simple.
fail
gap> Inflation([[3,2,1],[1],[1,2],[1,2,3]]);
645123 ]
gap> Inflation([[1,2],[1],[4,2,1,3]]);
15324 ]
gap> Inflation([[2,4,1,3],[2,1],[3,1,2],[1],[2,4,1,3]]);
32108915746 ]
gap> BlockDecomposition([3,2,10,8,9,1,5,7,4,6]);
[ [ 2413 ], [ 21 ], [ 312 ], [ 1 ], [ 2413 ] ]
gap> BlockDecomposition([1,2,3,4,5]);
[ [ 12 ], [ 1234 ], [ 1 ] ]
gap> BlockDecomposition([5,4,3,2,1]);
[ [ 21 ], [ 4321 ], [ 1 ] ]
gap> IsPlusDecomposable([3,3,2,3,2,2,1,1]);
true
gap> IsPlusDecomposable([3,2,8,6,7,1,5,4]);
false
gap> IsPlusDecomposable([3,4,2,6,5,7,1,8]);
true
gap> IsMinusDecomposable([3,3,3,3,3,3,2,1]);
true
gap> IsMinusDecomposable([3,4,5,6,7,8,2,1]);
true
gap> IsMinusDecomposable([3,2,8,6,7,1,5,4]);
false
gap> IsMinusDecomposable([1,2,6,5,4,3]);
false
gap> PermDirectSum([2,4,1,3],[2,5,4,1,3]);
241369857 ]
gap> PermDirectSum([2,3,1,1],[2,4,3,1,1]);
231124311 ]
gap> PermSkewSum([2,4,1,3],[2,5,4,1,3]);
796825413 ]
gap> PermSkewSum([2,3,1,1],[2,4,3,1,1]);
786624311 ]
gap> STOP_TEST( "chap8.tst", 10000 );

[Dauer der Verarbeitung: 0.11 Sekunden, vorverarbeitet 2026-06-05]