Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash tables? #145

Open
rafaqz opened this issue Apr 5, 2021 · 0 comments
Open

Hash tables? #145

rafaqz opened this issue Apr 5, 2021 · 0 comments

Comments

@rafaqz
Copy link
Member

rafaqz commented Apr 5, 2021

We never implemented these because we mostly use floating point grids with many unique values.

But, hashing can be great for

a) binary cellular automata where large areas are hashed
b) binary size-structured models where individual cells hold many species with many coohorts as binary values. See Landis Pro 6

Hashing could be pretty generic - it would need a hashing function, and a hash table. HashRule could update the hash table, which can be orders of magnitude faster than updating the grid. The main issue is it's a very limited approach in terms of adding layers of environmental heterogeneity - hash values are no longer located on the grid, instead representing many separate cells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant