Is it possible to parallelize permpos?
2 次查看(过去 30 天)
显示 更早的评论
I found this code on file exchange: http://www.mathworks.com/matlabcentral/fileexchange/11216-permpos
And it does exactly what I want. However, it stalls about when permpos(16,32) is there a way to parallelize this so that it will run faster?
0 个评论
采纳的回答
Jan
2012-7-25
编辑:Jan
2012-7-25
See Answers: generating exhaustive permutations for a list of C-Mex files for the memory efficient creation of large permutations/combinations. If your data have integer values, use an integer type to save memory and run-time.
You can create one permutation after the other without repetitions. See. e.g. FEX: nextperm, but as far as I can see, this does not allow repetitions of the elements.
Other useful submission:
You see, searching the FEX is a good idea.
更多回答(1 个)
Walter Roberson
2012-7-24
It appears to me that permpos(16,32) would be getting pretty close to the point of filling 32 bits worth of address space (4 Gb). How big do you need to go, and what are you going to do with the output when you get it? Are you using a 64 bit version of MATLAB ?
3 个评论
Walter Roberson
2012-7-24
And generating all of them at once is an efficient algorithm??
Anyhow you did not answer about what size you wanted to go to?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!