efficiency vs storage

2 views (last 30 days)
Jerry
Jerry on 12 Aug 2011
L=12000, I have two methods to do an optimization problem. The first method needs to store L^2 double complex numbers in total, and requires L^2 multiplications of double complex numbers in each iteration. The second method needs to store 5*L double complex numbers in total, and requires 3*L^2 multiplications of double complex numbers in each iteration. I wonder which one is better.

Accepted Answer

Titus Edelhofer
Titus Edelhofer on 12 Aug 2011
Hi,
it depends: L^2 would need about 2GB of storage. So if you have a 32 Bit machine this will definetely run into "out of memory", so the other is clearly better. On the other hand, if you happen to have a 64Bit operating system + 64 Bit MATLAB + say 8GB of memory, it's hard to say (the factor of "only" three might well be compensated by the lower time for accessing memory). My guess though will be, that the first one will be faster.
Titus

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!