Hi guys,
This should be really simple, but for some reason I'm having a brain freeze today and I can't come-up with the right algorithm.
I have 17 living cells, which will die over time. The main cycle repeats until all cells are dead.
In this main cycle I have two arrays Cell_Status(17) and Living_Cells(17) as seen in the example below.
What's the fastest way to update the second array without creating (if possible) anymore (FOR / DO) cycles, than the one already present?
Please note that for my specific case, this cannot be done with LISTS or MYSQL.
Many thanks in advance for your help.
This should be really simple, but for some reason I'm having a brain freeze today and I can't come-up with the right algorithm.
I have 17 living cells, which will die over time. The main cycle repeats until all cells are dead.
In this main cycle I have two arrays Cell_Status(17) and Living_Cells(17) as seen in the example below.
What's the fastest way to update the second array without creating (if possible) anymore (FOR / DO) cycles, than the one already present?
Please note that for my specific case, this cannot be done with LISTS or MYSQL.
Many thanks in advance for your help.