146

**Living Room / Re: Where are my math wizards? Need help with algebraic set puzzle algorithm thing**

« **on:**April 08, 2010, 05:26 AM »

I guess you're saying to try an algorithm like this:

row 1: start counting from 1st element in row ie 1 2 3

row 2: keep counting , but this time start from second element in row and then cycle back to 1st element ie 6 4 5

row 3: keep counting , but this time start from third element in row and then cycle back to 1st element ie 8 9 7

That gives constant totals for each column... but what about randomness for each player for the game?

I guess you could

a. interchange columns randomly

b. add and subtract random amounts from random selections in a column -

the add would need to take the element to >x.y,

the subtract could take the balancing element to negative

then add a constant to all elements in the matrix to eliminate negatives

c. find minimum element in the matrix and reduce this, and all other elements by whats needed to get the min value to 1.

After making a nice cup of tea, voila, an apparently random matrix meeting requirements. Maybe.

row 1: start counting from 1st element in row ie 1 2 3

row 2: keep counting , but this time start from second element in row and then cycle back to 1st element ie 6 4 5

row 3: keep counting , but this time start from third element in row and then cycle back to 1st element ie 8 9 7

That gives constant totals for each column... but what about randomness for each player for the game?

I guess you could

a. interchange columns randomly

b. add and subtract random amounts from random selections in a column -

the add would need to take the element to >x.y,

the subtract could take the balancing element to negative

then add a constant to all elements in the matrix to eliminate negatives

c. find minimum element in the matrix and reduce this, and all other elements by whats needed to get the min value to 1.

After making a nice cup of tea, voila, an apparently random matrix meeting requirements. Maybe.