Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Prey predator system with openCL

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
579 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 7, 2010

Prey predator system with openCL

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (pballet)

  • 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

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • @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