Speeding up permutations generation

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Mar 6 03:34:17 EST 2015


On 06/03/2015 06:44, Abhiram R wrote:
> Hi all,
> Is there a way to generate permutations of large arrays of sizes say,in
> the hundreds, faster than in the time itertools.permutations() can return?
>
> ​-Abhiram.R
> /~Never give up/
>

If there is I'd guess that you'd use numpy http://www.numpy.org/.  The 
more mathematically minded may well be able to give better answers.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list