Added: 2 years ago
From: pballet
Views: 582
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (3)

Sign In or Sign Up now to post a comment!
  • What exactly is it doing? The green guys are eating the red ones, this much I gather. but could you explain this more precisely?

  • @joertjoert, the algorithm is:

    1- choose 1 pixel at random.

    2-if the pixel is red (prey) it can die with a probability 0.01 (the pixel is then black); go to 1

    3-if the pixel is green (pred) it can die with a probability 0.02 (the pixel becomes black); go to 1

    4-eaten prey: if the pixel is red (prey) and surrounded by n1 green pixels (predator), the red pixel becomes green with proba p1=n1*0.1

    5-reproduction: if the pixel is black and surrounded by n2 reds, it becomes red with proba p2=n2*0.01

  • @joertjoert The predator eats till there is little to eat then dies off. Then the prey grows back dew to lack of predators. After the predators grow back dew to an abundance of food... Keeps repeating.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more