B
Bengt Kappner
Hi everyone,
for an art project we also want to print a few books that contain unique combinations of the letters a-z. I am looking for an efficient way to create a text file with those combinations.
My idea was to start with a loop from 1 to 2million, that generates combinations and writes adds them to an array. Before adding them, the array is iterated and checked if the combination already exists.
This process seems to become very slow when the array gets big. Also, what would be the best definition of that array? Is it possible at all for an array to contain 2 million values of 26 charactes each and write that in a text file at the end?
Any help is greatly appreciated!!
Bengt
for an art project we also want to print a few books that contain unique combinations of the letters a-z. I am looking for an efficient way to create a text file with those combinations.
My idea was to start with a loop from 1 to 2million, that generates combinations and writes adds them to an array. Before adding them, the array is iterated and checked if the combination already exists.
This process seems to become very slow when the array gets big. Also, what would be the best definition of that array? Is it possible at all for an array to contain 2 million values of 26 charactes each and write that in a text file at the end?
Any help is greatly appreciated!!
Bengt