[GAP Forum] Looping over (double)coset representatives without creating the WHOLE list first

Benjamin Sambale bsambale at gmx.de
Wed Jan 12 07:51:24 GMT 2011


Am 12.01.2011 00:44, schrieb Pornrat Ruengrot:
> I think it's because the program is trying to build the whole list D first
> before running over each
> element. But I just want the program to start right away without building
> the whole list first. For
> example it can choose a random first element then at the end of the loop
> find the next (random)
> representative and so on.

Hi,

maybe the following code is helpful:

D:=G;
while ... do
     x:=Random(D);
     D:=Difference(D,DoubleCoset(P,x,P));
od;

Best wishes,
Benjamin Sambale



More information about the Forum mailing list