B
Bob Cummings
Not sure if this is the correct place or not. Anyhow in school we were
taught that when trying to calculate the efficiency of an algorithm to
focus on something called FLOPs or Floating Point operations and
disregard all integer operations.
My question is this. I am writing a simulation for animal dispersement
through large landscapes. We are loading data from several different
files to simulate the environment the animals will be traveling through.
So for every time step for every day for every year for every animal I
will have to figure out the new location on the map for the animal, then
check to see what the chance is the animal was killed by a predator,
then if they survive that see what type of food is around and get a
chance on getting something to eat. Then what type of environment they
are moving through (Open prairie might have some species move relatively
straight while others might circle around and stay in the woods) and on
and on and on. Most of these decisions will be determined by comparing
a value against a random number from some (undetermined as of now)
random number generator. So should I have the values be between 0-100
and generate a random integer? Or have the values 0.0 to 1.0 and then
generate a random double in that range.
The scientist are not too worried about how fine a detail they have
available for stetting the value of find food or what ever(1 to 100 will
work I am told), so efficiency is the name of the game for this round.
Any suggestions or ideas welcome
thanks for your time
cheers
bob
taught that when trying to calculate the efficiency of an algorithm to
focus on something called FLOPs or Floating Point operations and
disregard all integer operations.
My question is this. I am writing a simulation for animal dispersement
through large landscapes. We are loading data from several different
files to simulate the environment the animals will be traveling through.
So for every time step for every day for every year for every animal I
will have to figure out the new location on the map for the animal, then
check to see what the chance is the animal was killed by a predator,
then if they survive that see what type of food is around and get a
chance on getting something to eat. Then what type of environment they
are moving through (Open prairie might have some species move relatively
straight while others might circle around and stay in the woods) and on
and on and on. Most of these decisions will be determined by comparing
a value against a random number from some (undetermined as of now)
random number generator. So should I have the values be between 0-100
and generate a random integer? Or have the values 0.0 to 1.0 and then
generate a random double in that range.
The scientist are not too worried about how fine a detail they have
available for stetting the value of find food or what ever(1 to 100 will
work I am told), so efficiency is the name of the game for this round.
Any suggestions or ideas welcome
thanks for your time
cheers
bob