Why use one dimensional array instead of a two dimensional arrray?
Posted
by
user3869145
on Stack Overflow
See other posts from Stack Overflow
or by user3869145
Published on 2014-08-19T21:48:39Z
Indexed on
2014/08/19
22:20 UTC
Read the original article
Hit count: 123
I was doing some work handling a lot of information and my partner told me that I was using too many matrices to manipulate the variables of the problem. The idea was to use one dimension arrays int a[]
instead of the 2 dimensional arrays int b[][]
, to save memory and processing speed of the algorithm. How certain is that this change will accelerate the speed of execution or compilation of my code in c ++?
© Stack Overflow or respective owner