Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/tst/testbugfix/   (GAP Algebra Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 738 B image not shown  

Quelle  2024-10-11-orbit-hash.tst   Sprache: unbekannt

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

# Fix a bug reported by Leonard Soicher caused by a bug in
# the hash function for lists of small positive integers.
gap> n:=280;;
gap> G:=OnePrimitiveGroup(NrMovedPoints,n,Size,604800*2);
J_2.2
gap> blocks := [ [ 12328108119155198216226 ],
>  [ 123118119140193213218226 ] ];;
gap> Append(blocks[2],[1..1000]); for i in [1..1000] do Remove(blocks[2]); od;
gap> Append(blocks[2],[1..1000]); for i in [1..1000] do Remove(blocks[2]); od;
gap> ForAll(blocks,IsSet);
true
gap> orb1:=Orbit(G,blocks[1],OnSets);;
gap> Length(orb1);
12096
gap> orb2:=Orbit(G,blocks[2],OnSets);;
gap> Length(orb2);
1008
gap> orbs:=Orbits(G,blocks,OnSets);;
gap> List(orbs,Length); # this code gave wrong results
120961008 ]

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