[GAP Forum] how many memory needed to run a full combination of matrix with element 0 and 1
Alexander Konovalov
alexk at mcs.st-andrews.ac.uk
Wed Sep 24 22:08:32 BST 2014
P.S. Please also note that these two commands return the same output:
gap> Tuples([0,1],4);
[ [ 0, 0, 0, 0 ], [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 0, 1, 1 ],
[ 0, 1, 0, 0 ], [ 0, 1, 0, 1 ], [ 0, 1, 1, 0 ], [ 0, 1, 1, 1 ],
[ 1, 0, 0, 0 ], [ 1, 0, 0, 1 ], [ 1, 0, 1, 0 ], [ 1, 0, 1, 1 ],
[ 1, 1, 0, 0 ], [ 1, 1, 0, 1 ], [ 1, 1, 1, 0 ], [ 1, 1, 1, 1 ] ]
gap> Tuples([0,1,0,1,0,1,0,1],4);
[ [ 0, 0, 0, 0 ], [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 0, 1, 1 ],
[ 0, 1, 0, 0 ], [ 0, 1, 0, 1 ], [ 0, 1, 1, 0 ], [ 0, 1, 1, 1 ],
[ 1, 0, 0, 0 ], [ 1, 0, 0, 1 ], [ 1, 0, 1, 0 ], [ 1, 0, 1, 1 ],
[ 1, 1, 0, 0 ], [ 1, 1, 0, 1 ], [ 1, 1, 1, 0 ], [ 1, 1, 1, 1 ] ]
so you either may specify a set of values, or you may have in mind something different.
BW,
Alexander
On 24 Sep 2014, at 18:06, Lee Martin CCNP <tesleft at hotmail.com> wrote:
> Hi
> how many memory needed to run the code below?
> do gap system have memory limit when run the code below ?
> since got out of memory in maple, i try full combination in gap system in 32bit virtual machine
> my notebook has 8GB ram and assign 2 GB to 4 GB ram for virtual machine
> then i know that 64bit do not have memory limit, then i plan and wait to buy a intel 61 cores for more than 128GB ram in future if i meet memory limit tomorrow.
> it is just full combination of ideals, i can not imagine how much memory need for full combination of modules and whether can run with 61 cores
> onelist := Tuples([0,1,0,1,0,1],3);onelist2 := [];Append( onelist2, onelist );Append( onelist2, onelist );Append( onelist2, onelist );matrixlist := Tuples(onelist2,3);
> ideallist2 := [];Append( ideallist2, matrixlist );Append( ideallist2, matrixlist );Append( ideallist2, matrixlist );ideallist := Tuples(ideallist2,3);
> ___________________________________________actually i expect to try onelist := Tuples([0,1,0,1,0,1,0,1],4);onelist := Tuples([0,1,0,1,0,1,0,1,0,1],5);
> onelist := Tuples([0,1,2,0,1,2,0,1,2],3);onelist := Tuples([0,1,2,0,1,2,0,1,2,0,1,2],4);onelist := Tuples([0,1,2,0,1,2,0,1,2,0,1,2,0,1,2],5);
> for above code too
> Regards,
> Martin
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list