Giter VIP home page Giter VIP logo

smallworldnetca's Introduction

SmallWorldNetCA

1D Cellular Automata (CA) for any rule in the range of 0 to 255 can be drawn using this code.

Prameters

  • p - probability of CA-world to follow given CA rule
  • q - probability of choosing on or off state of the cell randomly when p>0
  • f - fraction of cells in CA-world which will choose neighbors randomly
  • config - random or uniform

Along with well known 1d cellular automata rules, there are implementations of few interesting variations described below

Introduction of NOISE in 1D Cellular Automata

One can analyze the effect of noise in the CA-world. It is interesting to observe how a simple rule starting in a uniform CA-world can also result in a chaotic behavior with beautiful patterns.

I have shown Rule 129 and Rule 161 as an example. Both the rules show same fractal pattern of Sierpinski triangle but both result in completely different result when noise is inserted.

Small World Network

For this to be implemented, a small change in neighborhood of CA-cell in each rule is made. The fraction f of cells are selected randomly and neighbors are assigned randomly to these selected cells. Based on neighborhood changes, if one uses a deterministic CA rule (without any noise p=0), the results show variation of patterns. Even with small value of f, huge changes can be observed.

Sample Results

RULE 126 RULE 126 - SMALL WORLD NETWORK

RULE 129 RULE 129 - SMALL WORLD NETWORK

RULE 129 - PARAMETER VARIATIONS RULE 129 - PARAMETER VARIATIONS RULE 129 SMALL WORLD NETWORK - PARAMETER VARIATIONS

RULE 109 - PARAMETER VARIATIONS RULE 109 - PARAMETER VARIATIONS RULE 109 SMALL WORLD NETWORK - PARAMETER VARIATIONS

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.