Code Monkey home page Code Monkey logo

cellular-automata's Introduction

Cellular Automata Project: Lorenz 96 and Conway's Game of Life

Overview

This repository contains my improved implementations of two significant cellular automata: Lorenz 96, a model simulating atmospheric turbulence, and Conway's Game of Life, a zero-player game demonstrating cellular automaton complexity. These implementations were part of an academic assignment aimed at learning modern programming methods and enhancing code quality, performance, and understanding of complex systems.

Lorenz 96

The Lorenz 96 model is a simplified representation of atmospheric dynamics. It was initially devised by Edward Lorenz in 1996 to provide a more straightforward framework for studying atmospheric predictability and data assimilation. My implementation focuses on optimizing the model for efficiency and accuracy, making it suitable for various simulations and studies.

Key Enhancements

  • Data type optimization for increased calculation speed.
  • Strategic use of vectorization to enhance performance.
  • Memory management improvements to ensure efficient resource utilization.

Conway's Game of Life

Conway's Game of Life is a famous cellular automaton devised by mathematician John Horton Conway. It's a zero-player game, meaning its evolution is determined by its initial state, requiring no further input. It consists of a grid of cells that live, die, or multiply based on a set of rules.

Key Enhancements

  • Modularization of code for better maintainability and readability.
  • Optimized handling of edge cases and boundary conditions.
  • Extensive testing and validation to ensure reliable performance.

Project Structure

This repository is structured as follows:

  • README.md: The project's README file with introduction and instructions.
  • automata.py: The main script for Lorenz 96 and Conway's Game of Life implementations.
  • discussion.ipynb: Jupyter Notebook discussing the implementation details and improvements.
  • requirements.txt: Required libraries and dependencies for the project.
  • tests/: Directory containing test cases and scripts.
    • [test files]: Individual test files for different parts of the project.

Usage

Instructions on how to run and use the implementations are provided in the discussion notebook.

Contributions

As this is an educational project aimed at continuous learning and improvement, contributions, suggestions, and discussions are welcome.

License

This project is open-sourced under the MIT License. See the LICENSE file for more details.

Thank you for visiting my project!

cellular-automata's People

Contributors

acse-tg1523 avatar github-classroom[bot] avatar

Watchers

Tehmoor Gull avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.