Quote (oOn @ Jun 23 2013 12:17pm)
Oh I misunderstood, i thought by variableI * variableJ * variableT you meant it is N * N * N thus order n^3, so i guess its different?
Why would you think that? you have three separate variables, not a single one. it's like saying 5 * 12 * 44 is the same as 5^3
"n" is a generic variable in math (and cs) that represents the size of a problem. your size depends on three variables. you can call them whatever you want (n1, n2, n3 or variableI, variableJ, variableT, etc)
Quote
So it is doubling the size of a 2 dimensional matrix (rows and cols), but I am doubling all three variables (variableI, variableJ , and variableT)
I know that 3 variable thing might be confusing, kinda hard to explain, but it is just a 2d matrix that is essentially being doubled.
there's nothing confusing about 3 variables. i think you're not doubling the size of a matrix, i think you're quadrupling it. consider a matrix with r rows and c columns. this has r * c entries. if you double the rows and double the columns, then you have 2r * 2c entries, which is 4 * r * c entries which is 4 times as large.
Quote
int variableI = varI();
int variableJ = varJ();
int variable t = varT();
int p = varP();
for (int i = 0; i < variableI; i++ ) {
for (int j = 0; j < variableJ; j++) {
for (int t = 0; t < variableT; t++) {
p = a[i][j] + a [t+1][j] * a[t][j];
System.out.println(p);
} } }
i assume the bolded lines are the only ones you care about, and everything else is irrelevant. post what values of variableI, variableJ, and variableT are before and after doubling.
i have no idea what varI(), varJ(), varT(), and varP() do. make sure your timings dont include them. your p calculation should also be irrelevant.
also, dont base these correlations on just two data points of a single trial. run each tuple 10-20 times, and use different tuples.
eg: instead of just [variableI, variableJ, variableT] = [1, 1, 1] you should also try [2, 2, 2], [4, 2, 2] [2, 8, 2], etc and do 10-20 trials of each
This post was edited by carteblanche on Jun 23 2013 10:36am