Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7085789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:28:06+00:00 2026-05-28T07:28:06+00:00

Some time ago I’ve written a Wa-Tor like cellular automata ( see Wikipedia )

  • 0

Some time ago I’ve written a Wa-Tor like cellular automata (see Wikipedia) but with a few more species and a little smarter species. Except for a lot of fine tuning to get a stable system it was quite simple and worked well. However since that time I’m asking myself (and now you) how to update the cells “realistically”.

My ‘world’ was a grid and was always updated from the top-left to the bottom-right. IMO that also means that the cells that are closer to the top and left are always faster. So e.g. a fish in cell [3, 3] can be eaten by a shark in [3, 2] before being updated. If the cells would have the opposite positions the fish would always escape from the shark since it can move away from the shark before it is updated.

Am I correct that this is a ‘problem’ (or at least unrealistic)?

IMO in a realistic setting all cells should be updated simultaneously but I don’t know how to implement something like that. Another method I can imagine is to evaluate the cells in a ‘shuffled’ order.

How would you solve this problem / how are such problems usually solved?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:28:07+00:00Added an answer on May 28, 2026 at 7:28 am

    As @Rogach mentions, simultaneous updates won’t work. Because your cellular automata is non-deterministic, two fish won’t know the next position of each other and may collide.

    I think the best solution, given that your cellular automata is non-deterministic, is to update your grid in a non-deterministic way, ie. randomly. Pick random cells to update. Either pick cells randomly and keep track of which one’s you’ve updated, so each cell is updated exactly once per tick, or pick cells randomly and don’t bother keeping track. The second approach would be easier, but risks some cells being updated slightly more often. On average all cells would be updated the same amount, if you had an evenly distributed random function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some time ago I observed a few people trying to start an open source
Some time ago declarations like the following were defined by poor performance: var a
I've read some time ago about the difference in 'Core JSF' but now I
Some time ago I used instruments to see the FPS of an iPad application
Some time ago I installed my PFX key into Container using command like this:
Some time ago i've made a simple dialog. Everything looks fine, but i'm meeting
Some time ago I read following rules: local variables, parameters are written with Camel
I learned java generics some time ago, but now I'm learning collections and found
Some time ago I used the regular method of loading Google Maps API like
some time ago someone already asked this question and a few answers were given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.